unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Problem with compilation-start resetting default-directory
Date: Tue, 19 Nov 2019 15:01:59 +0000	[thread overview]
Message-ID: <87v9rfgba0.fsf@linaro.org> (raw)
In-Reply-To: <87y2wcez3u.fsf@linaro.org>


Alex Bennée <alex.bennee@linaro.org> writes:

> Hi,
>
> For a while I've been trying to track down an annoying bug where the
> default-directory of my code/magit buffers was getting reset. Thanks to
> the power of add-variable-watcher I've finally managed to track the
> culprit down to compilation-start however I'm unsure what is going on.
>
> I've instrumented compilation-start to illustrate the problem:
>
> (defun compilation-start (command &optional mode name-function highlight-regexp)
<snip>
> 	      (run-hook-with-args 'compilation-start-hook proc)
>               (compilation--update-in-progress-mode-line)
> 	      (push proc compilation-in-progress))
<snip>

Inevitably I solved my own problem shortly after posting. I had a hook
to hide the compilation window which did a delete-window which caused
the current active buffer to change.

Apologies for the noise.

--
Alex Bennée



      reply	other threads:[~2019-11-19 15:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-19 14:10 Problem with compilation-start resetting default-directory Alex Bennée
2019-11-19 15:01 ` Alex Bennée [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=87v9rfgba0.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=emacs-devel@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).