branch: elpa/gnuplot commit 486eb01380debdacd39a8dd1d2c9f32dae144ed4 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Fix some bugs in doc2texi.el --- doc2texi.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc2texi.el b/doc2texi.el index 90cab4e26d..f4fb72b45b 100644 --- a/doc2texi.el +++ b/doc2texi.el @@ -630,7 +630,7 @@ appropriate sectioning and @node commands." (unless (eobp) (let* ((number (match-string 1)) (word (match-string 2)) - (node (substitute ?_ ? word :test 'char-equal)) + (node (apply #'string (append (substitute ?_ ? word :test 'char-equal) nil))) (eol (save-excursion (end-of-line) (point-marker)))) ;; some node names appear twice. make them unique. (while (member* node d2t-node-list :test 'string=) @@ -754,7 +754,7 @@ These lines makes a itemized list." (while (re-search-forward "^#start" (point-max) "to_end") (replace-match "@itemize @bullet" t)) (goto-char (point-min)) - (while (re-search-forward "^#end" (point-max) "to_end") + (while (re-search-forward "^#end$" (point-max) "to_end") (replace-match "@end itemize" t)) (goto-char (point-min)) (while (re-search-forward "^#b " (point-max) "to_end")