From: Dmitry Gutov <dgutov@yandex.ru>
To: Jonathan Kotta <jpkotta@gmail.com>, 28995@debbugs.gnu.org
Subject: bug#28995: xref next-error breaks with with-selected-window in next-error-hook
Date: Wed, 25 Oct 2017 23:17:40 +0300 [thread overview]
Message-ID: <9c993b4f-b3b0-a14b-2336-48c282abbd42@yandex.ru> (raw)
In-Reply-To: <CALDneavfAB6rpkEsagFJwQ1=Dxy1EZtZVB1Kqt-Y+pQRmVjvxg@mail.gmail.com>
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.
next prev parent reply other threads:[~2017-10-25 20:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-25 16:17 bug#28995: xref next-error breaks with with-selected-window in next-error-hook Jonathan Kotta
2017-10-25 20:17 ` Dmitry Gutov [this message]
2018-04-17 20:30 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9c993b4f-b3b0-a14b-2336-48c282abbd42@yandex.ru \
--to=dgutov@yandex.ru \
--cc=28995@debbugs.gnu.org \
--cc=jpkotta@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.