GNU bug report logs - #27362
next-error-recenter doesn't work with occur

Previous Next

Package: emacs;

Reported by: Jonathan Kotta <jpkotta <at> gmail.com>

Date: Wed, 14 Jun 2017 17:30:02 UTC

Severity: normal

Tags: patch

Merged with 30646

Found in version 27.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Nathan Moreau <nathan.moreau <at> m4x.org>
To: 27362 <at> debbugs.gnu.org
Subject: Bug #27362:
Date: Thu, 17 Aug 2017 11:36:15 +0200
[Message part 1 (text/plain, inline)]
Here  is a patch that fixes the reported problem.

A minimal reproduction test:

(ert-deftest totoro ()
  (set-buffer "*scratch*")
  (insert "setq")
  (setq next-error-recenter '(4))
  (occur "setq")
  (next-error))

It seems that occur-mode-goto-occurrence should be called after
restoring the original buffer.

Nathan
[0001-Fix-current-buffer-in-the-call-of-occur-next-error.patch (text/x-patch, attachment)]

This bug report was last modified 7 years and 36 days ago.

Previous Next


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