|
@@ -21998,29 +21998,6 @@ The return value is a list of lines, without newlines at the end."
|
|
(setq lines (push line lines)))
|
|
(setq lines (push line lines)))
|
|
(nreverse lines)))
|
|
(nreverse lines)))
|
|
|
|
|
|
-(defun org-split-string (string &optional separators)
|
|
|
|
- "Splits STRING into substrings at SEPARATORS.
|
|
|
|
-SEPARATORS is a regular expression.
|
|
|
|
-No empty strings are returned if there are matches at the beginning
|
|
|
|
-and end of string."
|
|
|
|
- ;; FIXME: why not use (split-string STRING SEPARATORS t)?
|
|
|
|
- (let ((start 0) notfirst list)
|
|
|
|
- (while (and (string-match (or separators "[ \f\t\n\r\v]+") string
|
|
|
|
- (if (and notfirst
|
|
|
|
- (= start (match-beginning 0))
|
|
|
|
- (< start (length string)))
|
|
|
|
- (1+ start) start))
|
|
|
|
- (< (match-beginning 0) (length string)))
|
|
|
|
- (setq notfirst t)
|
|
|
|
- (or (eq (match-beginning 0) 0)
|
|
|
|
- (and (eq (match-beginning 0) (match-end 0))
|
|
|
|
- (eq (match-beginning 0) start))
|
|
|
|
- (push (substring string start (match-beginning 0)) list))
|
|
|
|
- (setq start (match-end 0)))
|
|
|
|
- (or (eq start (length string))
|
|
|
|
- (push (substring string start) list))
|
|
|
|
- (nreverse list)))
|
|
|
|
-
|
|
|
|
(defun org-quote-vert (s)
|
|
(defun org-quote-vert (s)
|
|
"Replace \"|\" with \"\\vert\"."
|
|
"Replace \"|\" with \"\\vert\"."
|
|
(while (string-match "|" s)
|
|
(while (string-match "|" s)
|