emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Elisp: help on string operations for fast file visiting


From: Alan Schmitt
Subject: Re: [O] Elisp: help on string operations for fast file visiting
Date: Tue, 08 Nov 2016 09:42:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin)

On 2016-11-07 17:27, Karl Voit <address@hidden> writes:

> I'd like to get a "Sorry" message for (1). Easy, if only I know how to
> count lines in strings (as opposed to buffers).

You could start by doing (split-string the_string "\n" t) (the last 't'
says to omit the empty strings). So you get a list, possibly empty, of
strings.

Would this help for the rest?

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-09: 401.03, 2015-09: 397.63

Attachment: signature.asc
Description: PGP signature


reply via email to

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