emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding conventions for `defface`


From: Tianxiang Xiong
Subject: Re: Coding conventions for `defface`
Date: Mon, 3 Apr 2017 00:58:22 -0700

Not sure it's worth taking a convention that far. 

Do we warn when naming hook vars, etc.?

On Apr 3, 2017 12:55 AM, "Elias Mårtenson" <address@hidden> wrote:
On 2 April 2017 at 03:15, Tianxiang Xiong <address@hidden> wrote:
Many faces in Emacs Lisp end in `-face`, even though the Emacs Lisp manual section on `defface` says that they shouldn't: https://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Faces.html

One problem is that this convention is not mentioned in the Emacs Lisp Coding Conventions section of the manual: https://www.gnu.org/software/emacs/manual/html_node/elisp/Coding-Conventions.html#FOOT21

Perhaps ‘defface’ itself could warn if it's being called with a name that ends with -face? 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]