GNU bug report logs -
#20489
25.0.50; next-error-find-buffer chooses non-current buffer without good reason
Previous Next
Reported by: Dmitry Gutov <dgutov <at> yandex.ru>
Date: Sat, 2 May 2015 23:19:01 UTC
Severity: normal
Found in version 25.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #136 received at 20489 <at> debbugs.gnu.org (full text, mbox):
>> Could you arrange for the default value of this new *-function var not
>> to be nil so we can modify it with add-function?
> Then I guess the default function should return nil. Here is a new patch:
Fine by me. Tho, see comments below.
Stefan
> +(defun next-error-find-buffer-function-default (&optional avoid-current
> + extra-test-inclusive
> + extra-test-exclusive))
This looks like a syntax error to me (function without body). I know
it's accepted (because various parts of the byte-compiler need special
hacks to deal with it), but please always put a body (i.e. an explicit nil).
This said, I don't think you should define this function. Instead:
> +(defvar next-error-find-buffer-function 'next-error-find-buffer-function-default
should just say
(defvar next-error-find-buffer-function #'ignore
-- Stefan
This bug report was last modified 7 years and 72 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.