From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Elisp: help on string operations for fast file visiting Date: Tue, 08 Nov 2016 09:42:59 +0100 Message-ID: References: <2016-11-07T17-24-53@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c41zk-0002xz-8H for emacs-orgmode@gnu.org; Tue, 08 Nov 2016 03:43:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c41zg-0004v9-BU for emacs-orgmode@gnu.org; Tue, 08 Nov 2016 03:43:04 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:31316) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c41zg-0004uB-3Z for emacs-orgmode@gnu.org; Tue, 08 Nov 2016 03:43:00 -0500 In-Reply-To: <2016-11-07T17-24-53@devnull.Karl-Voit.at> (Karl Voit's message of "Mon, 7 Nov 2016 17:27:01 +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: Karl Voit Cc: Karl Voit , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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? Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2016-09: 401.03, 2015-09: = 397.63 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYIZATAAoJEAQNCjtO0uXH21kIAJseQDzCSyJjdlXoXBoOlUtn xFcHgMFn656u+OrcOovXGCI82yXoaYUiSdiBFc6D2s3O1ZgAGDbFl5OnZnpz34Kh QG1LHf/Vf7fmg91jL2Hlt9pLcW2HiGQpnohPV8rWXhjjQuRHSQF4VjpgDYXgDLq6 mYvVLQHFok+nOEIcB4qLJIsyfyOp3p2JTJVkdTSJT5zIBrKJfxFkjx97RYS6hORS jzwEV/Dr9cr6e+lvtsYrXcZGE3ldoEscXM9bvNeDZ2DQYChJforVbA5Djnt1esLb 3fGWo7O9hO7PmPUxLYOEyEG+AF/8h2Ob3k9eCaS338e/3OqP8w0NDJg6dSmesgM= =GrUi -----END PGP SIGNATURE----- --=-=-=--