Переглянути джерело

Fix regexp for `org-list-send-list'.

* lisp/org-list.el (org-list-send-list): regexp defining the start of
a radio list is now on par with the one used for radio tables.
Nicolas Goaziou 14 роки тому
батько
коміт
94689a04b0
2 змінених файлів з 3 додано та 3 видалено
  1. 2 2
      doc/org.texi
  2. 1 1
      lisp/org-list.el

+ 2 - 2
doc/org.texi

@@ -13568,12 +13568,12 @@ parameters.
 Here is a La@TeX{} example.  Let's say that you have this in your
 La@TeX{} file:
 
-@cindex #+ORGLST
+@cindex #+ORGLIST
 @example
 % BEGIN RECEIVE ORGLST to-buy
 % END RECEIVE ORGLST to-buy
 \begin@{comment@}
-#+ORGLST: SEND to-buy orgtbl-to-latex
+#+ORGLIST: SEND to-buy orgtbl-to-latex
 - a new house
 - a new computer
   + a new keyboard

+ 1 - 1
lisp/org-list.el

@@ -1277,7 +1277,7 @@ this list."
     (save-excursion
       (org-list-goto-true-beginning)
       (beginning-of-line 0)
-      (unless (looking-at "#\\+ORGLST: *SEND +\\([a-zA-Z0-9_]+\\) +\\([^ \t\r\n]+\\)\\( +.*\\)?")
+      (unless (looking-at "[ \t]*#\\+ORGLST[: \t][ \t]*SEND[ \t]+\\([^ \t\r\n]+\\)[ \t]+\\([^ \t\r\n]+\\)\\([ \t]+.*\\)?")
 	(if maybe
 	    (throw 'exit nil)
 	  (error "Don't know how to transform this list"))))