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: Lars Ingebrigtsen
Subject: Re: master 87e422f: Beef up the Emacs string utility set a bit
Date: Mon, 21 Dec 2020 21:34:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Clément Pit-Claudel <cpitclaudel@gmail.com> writes:

> Look for (replace-regexp-in-string "\n$" "" and variants, or
> string-trim-right.  One common use case is in conjunction with
> shell-command-to-string.  Even if it was in Emacs, though, I'm not
> sure I'd find it and use it instead of string-trim-end.

I see one single instance:

~/src/emacs/trunk/lisp/allout.el:6071:            (replace-regexp-in-string 
"\n$" ""

Hm...  should that be "\n\\'"?  Of which we have two:

~/src/emacs/trunk/lisp/org/ox.el:4623:   (code (replace-regexp-in-string
~/src/emacs/trunk/lisp/cus-start.el:292:                                 (setq 
tmp (replace-regexp-in-string


-- 
(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]