emacs-devel
[Top][All Lists]
Advanced

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

Re: master 87e422f: Beef up the Emacs string utility set a bit


From: Basil L. Contovounesios
Subject: Re: master 87e422f: Beef up the Emacs string utility set a bit
Date: Mon, 21 Dec 2020 22:13:38 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Anyway, I've now added this as `string-chop-newline' to keep some of the
> flavour of "chomp".  Feel free to change it to something else.

string-chop-newline is written more efficiently as

  (string-remove-suffix "\n" string)

which makes me wonder why we need it at all.

-- 
Basil



reply via email to

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