emacs-devel
[Top][All Lists]
Advanced

[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



reply via email to

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