unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: 37856@debbugs.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	[thread overview]
Message-ID: <CAAeL0STcHtRp9Q_YSFB7_LtN6vEvPN=8bq=yvgDaTxeGD4kxnw@mail.gmail.com> (raw)
In-Reply-To: <CADwFkm=6ebZNpDYS=b6c+qud1oy2D_wCQPfuVVXLs5FY+_CMsA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

On Mon, Oct 21, 2019 at 10:13 PM Stefan Kangas <stefan@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)

?

[-- Attachment #2: Type: text/html, Size: 444 bytes --]

  reply	other threads:[~2019-10-21 21:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21 18:38 bug#37856: 27.0.50; 'next-error' advised with 'recenter' signals error when run from "*grep*" buffer Stefan Kangas
2019-10-21 19:30 ` Eli Zaretskii
2019-10-21 20:11   ` Stefan Kangas
2019-10-21 21:37     ` Juanma Barranquero [this message]
2019-10-21 22:19       ` Stefan Kangas
2019-10-22  7:56         ` Robert Pluim
2019-10-22  2:28     ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAeL0STcHtRp9Q_YSFB7_LtN6vEvPN=8bq=yvgDaTxeGD4kxnw@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=37856@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).