From e05d804f1f1d983b28d3fa1ad947ca564f856ba5 Mon Sep 17 00:00:00 2001 From: Nikita Bloshchanevich Date: Fri, 26 Feb 2021 22:06:41 +0100 Subject: [PATCH] Restore the old buffer when using `ivy-call' Without `deferred', the file selected in the `counsel-find-file' will only remain the current buffer afterwards when pressing RET on an item, not just `ivy-call'. --- modules/lang/emacs-lisp/autoload.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/emacs-lisp/autoload.el b/modules/lang/emacs-lisp/autoload.el index 01c53a87a..b7257add7 100644 --- a/modules/lang/emacs-lisp/autoload.el +++ b/modules/lang/emacs-lisp/autoload.el @@ -61,7 +61,7 @@ to a pop up buffer." (defun +emacs-lisp-lookup-definition (_thing) "Lookup definition of THING." (if-let (module (+emacs-lisp--module-at-point)) - (progn (doom/help-modules (car module) (cadr module) 'visit-dir) 'deferred) + (doom/help-modules (car module) (cadr module) 'visit-dir) (call-interactively #'elisp-def))) ;;;###autoload