GNU bug report logs - #44611
Prefix arg for xref-goto-xref

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Fri, 13 Nov 2020 08:33:01 UTC

Severity: normal

Tags: fixed

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Juri Linkov <juri <at> linkov.net>
Cc: joaotavora <at> gmail.com, 44611 <at> debbugs.gnu.org
Subject: bug#44611: Prefix arg for xref-goto-xref
Date: Wed, 17 Mar 2021 01:38:10 +0200
Hi Juri,

Sorry for the late response. I was hoping to have made some progress on 
resolving other issues touched in this thread before answering, but none 
so far.

On 16.03.2021 20:07, Juri Linkov wrote:

>> So since 'C-u M-g n' is already taken, an alternative is 'C-0 M-g n'.
>> If 'C-0' makes no sense for 'C-0 M-g n', it could be used to close the window.
>> Or maybe 'C-0 M-g n' still makes sense, e.g. to redisplay the current location?
> 
> I withdraw this proposal because it's easy to do this in the init file:
> 
>    (defun next-error-quit-window ()
>      (when (and (eq current-prefix-arg 0)
>                 (not (eq next-error-last-buffer (current-buffer))))
>        (let ((window (get-buffer-window next-error-last-buffer)))
>          (when (window-live-p window)
>            (with-selected-window window
>              (quit-restore-window window))))))
> 
>    (add-hook 'next-error-hook 'next-error-quit-window)

Since next-error-hook is a defcustom, perhaps we can/should include this 
function as one of the advertised values in :type?

Even if we keep the list nil by default.

>> BTW, here are the commands that work like TAB in grep-mode.
>> I propose to install this patch, so at least users could bind them
>> in own init files:
> 
> Now pushed to master.

Looks good, of course.




This bug report was last modified 4 years and 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.