[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
- Re: master 87e422f: Beef up the Emacs string utility set a bit, (continued)
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Lars Ingebrigtsen, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Lars Ingebrigtsen, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Basil L. Contovounesios, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Clément Pit-Claudel, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Lars Ingebrigtsen, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Clément Pit-Claudel, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Lars Ingebrigtsen, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Clément Pit-Claudel, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit,
Lars Ingebrigtsen <=
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Clément Pit-Claudel, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Lars Ingebrigtsen, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Basil L. Contovounesios, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Lars Ingebrigtsen, 2020/12/21
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Mattias Engdegård, 2020/12/22
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Lars Ingebrigtsen, 2020/12/22
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Mattias Engdegård, 2020/12/22
- Re: master 87e422f: Beef up the Emacs string utility set a bit, Alfred M. Szmidt, 2020/12/22
Re: master 87e422f: Beef up the Emacs string utility set a bit, Stefan Monnier, 2020/12/21