[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] * lisp/subr.el (string-suffix-p): New function.
From: |
Stephen J. Turnbull |
Subject: |
Re: [PATCH] * lisp/subr.el (string-suffix-p): New function. |
Date: |
Sat, 23 Nov 2013 19:16:11 +0900 |
Stefan Monnier writes:
> 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.
That's because Emacs Lisp isn't line-oriented at IO time, and when
parsing lines is needed, it's done with (re-search-forward "^...$"),
which automatically chops (and only when appropriate).
While I'm glad Emacs Lisp permits the style indicated by the request
for these features, I at least don't use it often enough to want them
as standard features in Emacs LIsp.
Steve
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function., (continued)
- 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, 2013/11/23
- Re: [PATCH] * lisp/subr.el (string-suffix-p): New function.,
Stephen J. Turnbull <=
- 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