* bug#32322: 27.0.50; Connect flymake to next-error-function when enabled
@ 2018-07-30 21:41 Terje Larsen
2022-05-18 12:14 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Terje Larsen @ 2018-07-30 21:41 UTC (permalink / raw)
To: 32322
I know that some other packages utilize the 'next-error-function' to get
support for 'next-error' and 'previous-error'. I wonder if it would make
sense to set this up by default when the flymake mode is enabled. I have
currently enabled it by:
(setq next-error-function 'flymake-goto-next-error)
And it seems to work flawlessly.
In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin13.4.0, NS
appkit-1265.21 Version 10.9.5 (Build 13F1911))
of 2018-05-07 built on builder10-9.local
Windowing system distributor 'Apple', version 10.3.1561
System Description: Mac OS X 10.13.6
Configured using:
'configure --with-ns '--enable-locallisppath=/Library/Application
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp' --with-modules'
Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS
Important settings:
value of $LANG: en_SE.UTF-8
locale-coding-system: utf-8
Major mode: Emacs-Lisp
--
// Terje Larsen
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#32322: 27.0.50; Connect flymake to next-error-function when enabled
2018-07-30 21:41 bug#32322: 27.0.50; Connect flymake to next-error-function when enabled Terje Larsen
@ 2022-05-18 12:14 ` Lars Ingebrigtsen
2022-05-18 18:12 ` Juri Linkov
0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-18 12:14 UTC (permalink / raw)
To: Terje Larsen; +Cc: 32322
Terje Larsen <terlar@gmail.com> writes:
> I know that some other packages utilize the 'next-error-function' to get
> support for 'next-error' and 'previous-error'. I wonder if it would make
> sense to set this up by default when the flymake mode is enabled. I have
> currently enabled it by:
>
> (setq next-error-function 'flymake-goto-next-error)
>
> And it seems to work flawlessly.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
I don't think it would be appropriate for flymake-mode to set that
itself, since that variable is mostly just meant for other
compilation-line major modes to set buffer-locally. But I can see how
it might be convenient for users that mainly just use flymake and not
the regular `M-x compile', so I've now mentioned this in the
flymake-mode doc string in Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#32322: 27.0.50; Connect flymake to next-error-function when enabled
2022-05-18 12:14 ` Lars Ingebrigtsen
@ 2022-05-18 18:12 ` Juri Linkov
0 siblings, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2022-05-18 18:12 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 32322, Terje Larsen
>> I know that some other packages utilize the 'next-error-function' to get
>> support for 'next-error' and 'previous-error'. I wonder if it would make
>> sense to set this up by default when the flymake mode is enabled. I have
>> currently enabled it by:
>>
>> (setq next-error-function 'flymake-goto-next-error)
>>
>> And it seems to work flawlessly.
>
> I don't think it would be appropriate for flymake-mode to set that
> itself, since that variable is mostly just meant for other
> compilation-line major modes to set buffer-locally. But I can see how
> it might be convenient for users that mainly just use flymake and not
> the regular `M-x compile', so I've now mentioned this in the
> flymake-mode doc string in Emacs 29.
The problem with enabling next-error-function in buffers
where flymake-mode is activated is that there is no evident
visual indication that next-error is used to navigate errors
in the current buffer. In other modes like compilation
the enabled next-error-function is usually indicated
by the presence of the compilation window with a list of errors
nearby.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-18 18:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-30 21:41 bug#32322: 27.0.50; Connect flymake to next-error-function when enabled Terje Larsen
2022-05-18 12:14 ` Lars Ingebrigtsen
2022-05-18 18:12 ` Juri Linkov
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).