unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "R. Diez" <rdiezmail-emacs@yahoo.de>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Enable 'compilation-auto-jump-to-first-error' for one 'compile' only.
Date: Fri, 28 Oct 2022 16:23:06 +0200	[thread overview]
Message-ID: <2b444025-dfc8-a815-a41d-3df3b3297c46@yahoo.de> (raw)
In-Reply-To: 2b444025-dfc8-a815-a41d-3df3b3297c46.ref@yahoo.de

Hi all:

I want to use 'compilation-auto-jump-to-first-error', but only on selected compilation windows.

If I set that option globally, too many other operations are affected, such as 'rgrep', and I personally find it disconcerting, because other non-source files are automatically and unexpectedly opened.

I can enable 'compilation-auto-jump-to-first-error' globally and disable it for a specific 'compile' call like this:

   (setq compilation-auto-jump-to-first-error t)

   (defun my-compile (cmd) ""
     (let ((compilation-auto-jump-to-first-error nil))
       (compile cmd)))

That works. However, I cannot do the opposite. That is, I cannot disable 'compilation-auto-jump-to-first-error' globally and enable it just for one 'compile' call. It just does not work.

Can someone help?

Thanks in advance,
   rdiez



           reply	other threads:[~2022-10-28 14:23 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <2b444025-dfc8-a815-a41d-3df3b3297c46.ref@yahoo.de>]

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=2b444025-dfc8-a815-a41d-3df3b3297c46@yahoo.de \
    --to=rdiezmail-emacs@yahoo.de \
    --cc=help-gnu-emacs@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.
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).