[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] * lisp/subr.el (string-suffix-p): New function.
From: |
Stefan Monnier |
Subject: |
Re: [PATCH] * lisp/subr.el (string-suffix-p): New function. |
Date: |
Sat, 23 Nov 2013 08:57:45 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
>> I can't remember using something similar to string-chop. In Perl, this
>> was handy because it's frequent to receive "a line with a terminating
>> LF", but in Emacs it doesn't seem to happen nearly as often.
> I'm guessing you don't use `shell-command-to-string' much.
Indeed, it's not used very often (among other things because it
requires using a shell, and hence requires quoting).
But even when it's used, the output is often more than a single line.
I'm not saying we never need to trim a terminating newline, I'm just
saying that it's not a particularly common operation, so that providing
something like string-chop for it doesn't seem very useful.
Stefan
- [PATCH] * lisp/subr.el (string-suffix-p): New function., Bozhidar Batsov, 2013/11/20
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Bozhidar Batsov, 2013/11/22
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Thien-Thi Nguyen, 2013/11/22
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Bozhidar Batsov, 2013/11/22
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Lars Magne Ingebrigtsen, 2013/11/22
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Bozhidar Batsov, 2013/11/22
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Stefan Monnier, 2013/11/22
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Bozhidar Batsov, 2013/11/22
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Stefan Monnier, 2013/11/22
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Josh, 2013/11/23
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function.,
Stefan Monnier <=
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Stephen J. Turnbull, 2013/11/23
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Lars Magne Ingebrigtsen, 2013/11/23
Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., Jarek Czekalski, 2013/11/22