[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Enable 'compilation-auto-jump-to-first-error' for one 'compile' only.
From: |
R. Diez |
Subject: |
Enable 'compilation-auto-jump-to-first-error' for one 'compile' only. |
Date: |
Fri, 28 Oct 2022 16:23:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Enable 'compilation-auto-jump-to-first-error' for one 'compile' only.,
R. Diez <=