emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 450b0d1: * lisp/simple.el (next-error-find-buffer-f


From: Juri Linkov
Subject: [Emacs-diffs] master 450b0d1: * lisp/simple.el (next-error-find-buffer-function): Set default to #'ignore.
Date: Tue, 27 Feb 2018 16:38:19 -0500 (EST)

branch: master
commit 450b0d1c0dabc2a9f4a5e63db87590e9681b9319
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    * lisp/simple.el (next-error-find-buffer-function): Set default to #'ignore.
    
    (next-error-find-buffer): Don't check next-error-find-buffer-function
    for nil.  (Bug#20489)
---
 lisp/simple.el | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 2101cfe..edcb73c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -170,11 +170,11 @@ rejected, and the function returns nil."
           (and extra-test-inclusive
                (funcall extra-test-inclusive))))))
 
-(defcustom next-error-find-buffer-function nil
+(defcustom next-error-find-buffer-function #'ignore
   "Function called to find a `next-error' capable buffer."
   :type '(choice (const :tag "Single next-error capable buffer on selected 
frame"
                         next-error-buffer-on-selected-frame)
-                 (const :tag "No default" nil)
+                 (const :tag "No default" ignore)
                  (function :tag "Other function"))
   :group 'next-error
   :version "27.1")
@@ -212,10 +212,9 @@ that would normally be considered usable.  If it returns 
nil,
 that buffer is rejected."
   (or
    ;; 1. If a customizable function returns a buffer, use it.
-   (when next-error-find-buffer-function
-     (funcall next-error-find-buffer-function avoid-current
-                                              extra-test-inclusive
-                                              extra-test-exclusive))
+   (funcall next-error-find-buffer-function avoid-current
+                                            extra-test-inclusive
+                                            extra-test-exclusive)
    ;; 2. If next-error-last-buffer is an acceptable buffer, use that.
    (if (and next-error-last-buffer
             (next-error-buffer-p next-error-last-buffer avoid-current



reply via email to

[Prev in Thread] Current Thread [Next in Thread]