unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* bat-mode: Inconsistent fontification. Consider using font-lock-function-name-face
@ 2019-09-09  8:49 Jostein Kjønigsen
  2019-09-09 10:48 ` Andy Moreton
  2019-09-09 21:41 ` Stefan Monnier
  0 siblings, 2 replies; 15+ messages in thread
From: Jostein Kjønigsen @ 2019-09-09  8:49 UTC (permalink / raw)
  To: emacs-devel

Hey everyone.

Right now Emacs' bat-mode has an inconsistent use of faces, both 
internally and w.r.t. to the rest of the Emacs universe.

In batch files you can create "labels". A label is a line whose 
character is : followed by alpha-numerical characters.

    :EXAMPLE_LABEL

These labels are often used via GOTO-statements for direct control flow, 
but they can also be used via CALL-statements and then they work like 
functions/subroutines and control is eventually returned to the caller.

    CALL :subroutine param1 param2
    GOTO :EOF
    etc

Right now labels have one custom-face defined for bat-mode 
(bat-label-face), and all -uses- of this label via GOTO or 
CALL-statements has this label highlighted using font-lock-constant-face.

My proposal is that we change both these rules to instead be 
font-lock-function-name-face. This solves both constency-problems:

- internal consistency of label/function fontification
- external consistency of function-name fontification.

Does anyone have an issue with such a change?

--
Vennlig hilsen
*Jostein Kjønigsen*

jostein@kjonigsen.net 🍵 jostein@gmail.com
https://jostein.kjønigsen.no



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

end of thread, other threads:[~2019-09-18 19:21 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09  8:49 bat-mode: Inconsistent fontification. Consider using font-lock-function-name-face Jostein Kjønigsen
2019-09-09 10:48 ` Andy Moreton
2019-09-09 16:09   ` Eli Zaretskii
2019-09-09 17:34     ` Jostein Kjønigsen
2019-09-09 18:10       ` Eli Zaretskii
2019-09-09 19:26         ` Jostein Kjønigsen
2019-09-09 20:32           ` Clément Pit-Claudel
2019-09-09 21:41 ` Stefan Monnier
2019-09-10  4:29   ` Jostein Kjønigsen
2019-09-10 12:48     ` Stefan Monnier
2019-09-10 14:54     ` Eli Zaretskii
2019-09-10 16:56       ` Jostein Kjønigsen
2019-09-10 18:10         ` Eli Zaretskii
2019-09-10 19:49           ` Michael Albinus
2019-09-18 19:21             ` Jostein Kjønigsen

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