From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Elisp: help on string operations for fast file visiting Date: Tue, 8 Nov 2016 10:28:27 +0100 Message-ID: <2016-11-08T10-27-33@devnull.Karl-Voit.at> References: <2016-11-07T17-24-53@devnull.Karl-Voit.at> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c42iS-0005ks-DN for emacs-orgmode@gnu.org; Tue, 08 Nov 2016 04:29:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c42iP-0005Fm-1K for emacs-orgmode@gnu.org; Tue, 08 Nov 2016 04:29:16 -0500 Received: from [195.159.176.226] (port=47010 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c42iO-0005FW-RA for emacs-orgmode@gnu.org; Tue, 08 Nov 2016 04:29:12 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c42hy-0006uy-3h for emacs-orgmode@gnu.org; Tue, 08 Nov 2016 10:28:46 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org * Alan Schmitt wrote: > > On 2016-11-07 17:27, Karl Voit 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? Thanks for the tipp! John Kitchin sent me some code I have to digest. From the first look, it should help me to come up with the complete solution I need. Thanks! I'll report back ;-) -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github