emacs-devel
[Top][All Lists]
Advanced

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

Re: Internationalize Emacs's messages (swahili)


From: Daniel Brooks
Subject: Re: Internationalize Emacs's messages (swahili)
Date: Sat, 26 Dec 2020 01:28:28 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Tomas Hlavaty <tom@logand.com>
>> Cc: rms@gnu.org, bugs@gnu.support, dimech@gmx.com,
>>      abrochard@gmx.com, emacs-devel@gnu.org,
>>      Zhu Zihao <all_but_last@163.com>
>> Date: Sat, 26 Dec 2020 10:06:03 +0100
>> 
>> On Fri 25 Dec 2020 at 22:06, Daniel Brooks <db48x@db48x.net> wrote:
>> >     (let ((pl (> (length deleted) 1))
>> 
>> On a different note, there are 725 matches for "> (length" in Emacs.
>> Computing length first and then comparing the number of items is very
>> inefficient.
>
> What did you have in mind that would be more efficient?
>
> The above code sets 'pl' to a simple boolean based on whether
> 'deleted' has one member or more than one.  What more efficient code
> would you suggest here?

(not (null (cdr deleted))) would avoid traversing the entire list, but it
wouldn't be easier to read.

db48x



reply via email to

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