unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Enable 'compilation-auto-jump-to-first-error' for one 'compile' only.
       [not found] <2b444025-dfc8-a815-a41d-3df3b3297c46.ref@yahoo.de>
@ 2022-10-28 14:23 ` R. Diez
  0 siblings, 0 replies; only message in thread
From: R. Diez @ 2022-10-28 14:23 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-28 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <2b444025-dfc8-a815-a41d-3df3b3297c46.ref@yahoo.de>
2022-10-28 14:23 ` Enable 'compilation-auto-jump-to-first-error' for one 'compile' only R. Diez

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