emacs-devel
[Top][All Lists]
Advanced

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

Re: files.el: Patch to make project-settings optional/customizable


From: Chong Yidong
Subject: Re: files.el: Patch to make project-settings optional/customizable
Date: Tue, 18 Nov 2008 20:48:07 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Dan Nicolaescu <address@hidden> writes:

> Because it's not a variable, it has to be a constant.  (And a string
> literal as it was until a few days ago is even better.)
> In a few years someone will see the defvar and will want to turn it into
> a defcustom and we'll have the same discussion again.

Just add a comment to the code, pointing to this discussion.

> Each extra variable adds a bit of complexity, and there's no shortage
> of that.

The complexity is negligible.  This is a matter of good programming
practice.




reply via email to

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