[Top][All Lists]

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

Re: Coding conventions for `defface`

From: Elias Mårtenson
Subject: Re: Coding conventions for `defface`
Date: Mon, 3 Apr 2017 15:55:44 +0800

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]