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


View this message in rfc822 format

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 37856 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#37856: 27.0.50; 'next-error' advised with 'recenter' signals error when run from "*grep*" buffer
Date: Mon, 21 Oct 2019 23:37:22 +0200
[Message part 1 (text/plain, inline)]
On Mon, Oct 21, 2019 at 10:13 PM Stefan Kangas <stefan <at> marxist.se> wrote:

> (defun my-next-error ()
>   (interactive)
>   (next-error)
>   (recenter))
>
> What am I missing?

What's wrong with

  (add-hook 'next-error-hook 'recenter)

?
[Message part 2 (text/html, inline)]

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.