From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: doc patch: move footnote in external links Date: Fri, 16 Jan 2015 09:57:05 +0100 Message-ID: <87h9vrt8e9.fsf@nicolasgoaziou.fr> References: <87egs4bwuu.fsf@nicolasgoaziou.fr> <87388jab2j.fsf@nicolasgoaziou.fr> <87y4q745w7.fsf@nicolasgoaziou.fr> <87vbl6x91a.fsf@nicolasgoaziou.fr> <87twzxdlkf.fsf@nicolasgoaziou.fr> <87lhl8e6db.fsf@nicolasgoaziou.fr> <87egqzehgl.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC2hL-0004E2-Sn for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 03:56:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YC2hH-00064x-Q2 for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 03:56:07 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:40488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC2hH-00064s-Kp for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 03:56:03 -0500 In-Reply-To: (Alan Schmitt's message of "Wed, 14 Jan 2015 14:19:31 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode Alan Schmitt writes: > Would the following work as a regexp builder that allows arbitrary space > and cookies between each word (making sure there is at least one)? > > #+begin_src emacs-lisp > (defun org-heading-regexp-build (s) > (let* ((sp (reverse (org-split-string s))) You can ignore SP for the time being. > (wspace "[ \t]") > (wspaceopt (concat wspace "*")) > (cookie (concat "\\(?:" > wspaceopt > "\\(?:\\[[0-9]+%\\]\\|\\[[0-9]+/[0-9]+\\]\\)" "\\[[0-9]*\\(%\\|/[0-9]*\\)\\]" statistics cookies can be empty. > wspaceopt > "\\)")) > (sep (concat "\\(?:" wspace "+\\|" cookie "+\\)")) > res) > (dolist (w sp) (setq res (concat w sep res))) > (concat sep res)) (concat sep (mapconcat #'identity (org-split-string s) sep) sep) > This of course needs to be extended with the other headline features > (todo keyword, tags, =E2=80=A6) I don't think so. Other features can be ignored (see, e.g., `org-get-heading'). Regards,