emacs-devel
[Top][All Lists]
Advanced

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

Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification


From: Jean-Christophe Helary
Subject: Re: Trimming strings, /emacs/lisp/emacs-lisp/subr-x.el modification
Date: Sat, 6 May 2017 19:33:10 +0900

> On May 6, 2017, at 18:22, Eli Zaretskii <address@hidden> wrote:

>> What I did not like in the original design was that the default regexp was 
>> hard-coded (besides for the fact that it did not allow for options). I 
>> understand that your proposal *only* makes it the default, but I think it 
>> would be more elegant to have the default extracted from the code and 
>> visible to the user so as to allow for her to over-ride the default by 
>> resetting the value.
> 
> Can you tell why you think that defconst is more elegant than a
> hard-coded default?  I think they are basically the same.

I was confused by the fact that a const is, well, a constant and is not to be 
overridden by the user.

My original idea was to put the regexp into a variable that *can* eventually be 
overridden by a user preference.

Jean-Christophe 


reply via email to

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