GNU bug report logs - #37856
27.0.50; 'next-error' advised with 'recenter' signals error when run from "*grep*" buffer

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Mon, 21 Oct 2019 18:40:02 UTC

Severity: normal

Found in version 27.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #22 received at 37856 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 37856 <at> debbugs.gnu.org
Subject: Re: bug#37856: 27.0.50; 'next-error' advised with 'recenter' signals
 error when run from "*grep*" buffer
Date: Tue, 22 Oct 2019 05:28:07 +0300
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Mon, 21 Oct 2019 22:11:50 +0200
> Cc: 37856 <at> debbugs.gnu.org
> 
> It was surprising to me that this didn't work, and it's not clear what
> I should do instead.  For example, the following code exhibits the
> same problem:
> 
> (defun my-next-error ()
>   (interactive)
>   (next-error)
>   (recenter))
> 
> What am I missing?

The advice effectively "injects" your code into the advised function,
just before it returns.




This bug report was last modified 5 years and 215 days ago.

Previous Next


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