bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#28995: xref next-error breaks with with-selected-window in next-erro


From: Dmitry Gutov
Subject: bug#28995: xref next-error breaks with with-selected-window in next-error-hook
Date: Wed, 25 Oct 2017 23:17:40 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0

On 10/25/17 7:17 PM, Jonathan Kotta wrote:
Evaluate:

(defun jpk/next-error-hook ()
   (let ((win (get-buffer-window next-error-last-buffer)))
     (when (window-live-p win)
       (with-selected-window win ;; breaks with xref
         (message "window: %s" win)))))
(add-hook 'next-error-hook #'jpk/next-error-hook)

Run xref-find-references on e.g. add-hook
Run next-error or previous-error at least twice.

Repeating next-error doesn't find the next match after the 2nd invocation. Running previous-error behaves similarly.  I can use a mouse to click on an any match, but next/previous-error will still only move between the clicked match and the next.  I can only cycle between two matches.

Can you reproduce this starting with 'emacs -Q'? I can't.





reply via email to

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