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: Lars Ingebrigtsen
Subject: Re: Internationalize Emacs's messages (swahili)
Date: Sat, 26 Dec 2020 10:34:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Daniel Brooks <db48x@db48x.net> writes:

>> 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.

Perhaps a `longer-than-p' function would be helpful?  I.e.,
(longer-than-p deleted 1)?  (Or some better name.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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