unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* compile.el legacy compatibility
@ 2019-03-23 13:55 Troy Hinckley
  2019-03-24 17:51 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Troy Hinckley @ 2019-03-23 13:55 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 854 bytes --]

I recently was adding a compilation error to
compilation-error-regexp-alist, and needed to use a custom function to
determine the line number. By inspection I was able to see that all the
primary fields (file, line, line-end, col, col-end) can take either a
subexpression number (for the regexp) or a function. However `line` is
handled differently then all the rest. If you define a function for line,
it ignores all your other fields and calls a legacy function handler
in compilation-parse-errors. It looks like this is to support "old
compile.el" from 2003. I see a lot of code marked obsolete since 24.1.

I was wondering what is your policy on removing obsolete content. I think
it would be a much better for current users if "line" was handled like all
the other fields instead of reverting the entire error to legacy mode in an
undocumented way.

[-- Attachment #2: Type: text/html, Size: 985 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-06 22:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-23 13:55 compile.el legacy compatibility Troy Hinckley
2019-03-24 17:51 ` Stefan Monnier
2019-03-25 19:23   ` Troy Hinckley
2019-03-26 14:05     ` Stefan Monnier
2019-03-30 10:11       ` Eli Zaretskii
2019-04-03 15:20         ` Stefan Monnier
2019-04-06 13:14           ` Troy Hinckley
2019-04-06 22:50             ` Stefan Monnier

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