unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Nathan Moreau <nathan.moreau@m4x.org>
To: 27362@debbugs.gnu.org
Subject: bug#27362: Bug #27362:
Date: Thu, 26 Oct 2017 23:38:05 +0200	[thread overview]
Message-ID: <CADDcBWW4hozNb7pUEAY4zwU8h=MQ0ot06M2URakjoe69ihjj7g@mail.gmail.com> (raw)
In-Reply-To: <CALDneavfLZk3AU48DveEgvu5G65kGLufk6kZPr7+Ne==sCHy7A@mail.gmail.com>

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

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@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@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.
>

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

      reply	other threads:[~2017-10-26 21:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-14 17:28 bug#27362: next-error-recenter doesn't work with occur Jonathan Kotta
2017-08-17  9:36 ` bug#27362: Bug #27362: Nathan Moreau
2017-08-18 16:55   ` Jonathan Kotta
2017-10-26 21:38     ` Nathan Moreau [this message]

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='CADDcBWW4hozNb7pUEAY4zwU8h=MQ0ot06M2URakjoe69ihjj7g@mail.gmail.com' \
    --to=nathan.moreau@m4x.org \
    --cc=27362@debbugs.gnu.org \
    /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).