GNU bug report logs -
#27362
next-error-recenter doesn't work with occur
Previous Next
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 #16 received at 27362 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Ping!
I wrote this tiny patch a few months back; I hope someone can take a look
and
include it.
Nathan
On 18 August 2017 at 18:55, Jonathan Kotta <jpkotta <at> gmail.com> wrote:
> Yes, that works for me. My workaround was to save the current-buffer
> after occur-mode-goto-occurrence, and then set-buffer outside the
> with-current-buffer, but apparently that was overkill.
>
> On Thu, Aug 17, 2017 at 4:36 AM, Nathan Moreau <nathan.moreau <at> m4x.org>
> wrote:
>
>> 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
>>
>
>
>
> --
> Thanks,
>
> Jonathan Kotta
>
> Hofstadter's Law:
> It always takes longer than you expect, even
> when you take into account Hofstadter's Law.
>
[Message part 2 (text/html, inline)]
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.