aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/org
diff options
context:
space:
mode:
authorPaul Eggert2019-03-04 18:00:00 -0800
committerPaul Eggert2019-03-04 18:00:58 -0800
commit3c94c7bc02fcacb4a101188dddb0c44d53444178 (patch)
tree18df76e7b36b87e51209a630f97906d889fe1ad9 /lisp/org
parentda16ab030159e31056bfdd80e8f2b726e10c854c (diff)
downloademacs-3c94c7bc02fcacb4a101188dddb0c44d53444178.tar.gz
emacs-3c94c7bc02fcacb4a101188dddb0c44d53444178.zip
Fix regular-expression glitches and typos
Problems reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2019-03/msg00085.html * admin/admin.el (set-version): * lisp/allout.el (allout-latexify-one-item): * lisp/arc-mode.el (archive-arc-rename-entry) (archive-rar-summarize): * lisp/calc/calc-graph.el (calc-graph-set-styles) (calc-graph-hide): * lisp/calc/calc-help.el (calc-describe-key): * lisp/calc/calc-lang.el (math-compose-tex-func, eqn): * lisp/calc/calc.el (calcDigit-key): * lisp/cedet/ede/makefile-edit.el (makefile-macro-file-list): * lisp/cedet/ede/speedbar.el (ede-tag-expand): * lisp/cedet/semantic/sb.el (semantic-sb-show-extra) (semantic-sb-expand-group): * lisp/comint.el (comint-substitute-in-file-name): * lisp/dired.el (dired-actual-switches): * lisp/emacs-lisp/chart.el (chart-rmail-from): * lisp/emacs-lisp/eieio-opt.el (eieio-sb-expand): * lisp/emacs-lisp/eieio-speedbar.el (eieio-speedbar-object-expand): * lisp/emacs-lisp/rx.el (rx-not, rx-atomic-p): * lisp/emulation/viper-ex.el (viper-get-ex-token) (viper-get-ex-pat, ex-set-read-variable): * lisp/epg.el (epg--status-SIG_CREATED): * lisp/erc/erc-speedbar.el (erc-speedbar-expand-user): (erc-speedbar-expand-channel, erc-speedbar-expand-server) * lisp/erc/erc.el (erc-is-message-ctcp-and-not-action-p) (erc-banlist-update): * lisp/eshell/em-dirs.el (eshell-parse-drive-letter, eshell/pwd): * lisp/find-dired.el (find-dired): * lisp/frame.el (frame-set-background-mode): * lisp/generic-x.el (apache-log-generic-mode): * lisp/gnus/gnus-art.el (gnus-button-valid-localpart-regexp): * lisp/gnus/gnus.el (gnus-short-group-name): * lisp/gnus/message.el (message-mailer-swallows-blank-line): * lisp/ibuffer.el (ibuffer-fontification-alist): * lisp/ido.el (ido-set-matches-1): * lisp/info-xref.el (info-xref-lock-file-p): * lisp/info.el (Info-dir-remove-duplicates) (Info-unescape-quotes, Info-split-parameter-string) (Info-speedbar-expand-node): * lisp/international/mule.el (sgml-html-meta-auto-coding-function): * lisp/isearch.el (isearch-pre-command-hook): * lisp/language/ethio-util.el (ethio-fidel-to-tex-buffer): * lisp/mail/rmail.el (rmail-collect-deleted): * lisp/mh-e/mh-alias.el (mh-alias-suggest-alias): * lisp/mh-e/mh-comp.el (mh-forward): * lisp/mh-e/mh-search.el (mh-index-next-folder) (mh-index-create-imenu-index): * lisp/mh-e/mh-xface.el (mh-picon-get-image): * lisp/minibuffer.el (completion--embedded-envvar-re): * lisp/net/ange-ftp.el (ange-ftp-ls-parser): * lisp/net/goto-addr.el (goto-address-mail-regexp) (goto-address-find-address-at-point): * lisp/net/pop3.el (pop3-read-response, pop3-user) (pop3-pass, pop3-apop): * lisp/net/tramp.el (tramp-ipv6-regexp) (tramp-replace-environment-variables): * lisp/nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set): * lisp/nxml/rng-uri.el (rng-uri-escape-multibyte): * lisp/nxml/rng-xsd.el (rng-xsd-convert-any-uri): * lisp/obsolete/pgg.el (pgg-fetch-key): * lisp/obsolete/vip.el (vip-get-ex-token): * lisp/org/ob-core.el (org-babel-string-read): * lisp/org/org-agenda.el: (org-agenda-add-entry-to-org-agenda-diary-file): * lisp/org/org-element.el (org-element-keyword-parser): * lisp/org/org-list.el (org-list-indent-item-generic): * lisp/org/org-mhe.el (org-mhe-get-message-folder-from-index): * lisp/org/org-mobile.el (org-mobile-apply): * lisp/org/org-mouse.el (org-mouse-context-menu): * lisp/org/org-plot.el (org-plot/gnuplot): * lisp/org/org-protocol.el (org-protocol-flatten-greedy): * lisp/org/org-table.el (org-table-copy-down) (org-table-formula-make-cmp-string) (org-table-get-stored-formulas, org-table-recalculate) (org-table-edit-formulas): * lisp/org/org.el (org-translate-link-from-planner) (org-fill-line-break-nobreak-p): * lisp/org/ox-ascii.el (org-ascii-item): * lisp/org/ox-latex.el (org-latex-clean-invalid-line-breaks): * lisp/org/ox.el (org-export-expand-include-keyword): * lisp/progmodes/ada-xref.el (ada-treat-cmd-string): * lisp/progmodes/cfengine.el (cfengine2-font-lock-keywords): * lisp/progmodes/cperl-mode.el (cperl-to-comment-or-eol) (cperl-find-pods-heres, cperl-fix-line-spacing) (cperl-have-help-regexp, cperl-word-at-point-hard) (cperl-make-regexp-x): * lisp/progmodes/dcl-mode.el (dcl-option-value-offset): * lisp/progmodes/etags.el (tag-implicit-name-match-p): * lisp/progmodes/fortran.el (fortran-fill): * lisp/progmodes/gdb-mi.el (gdb-speedbar-expand-node) (gdb-locals-handler-custom): * lisp/progmodes/grep.el (grep-mode-font-lock-keywords): * lisp/progmodes/gud.el (gud-jdb-find-source-using-classpath): * lisp/progmodes/js.el (js--continued-expression-p): * lisp/progmodes/m4-mode.el (m4-font-lock-keywords): * lisp/progmodes/meta-mode.el (meta-indent-level-count): * lisp/progmodes/mixal-mode.el (mixal-font-lock-keywords): * lisp/progmodes/opascal.el (opascal-find-unit-in-directory): * lisp/progmodes/pascal.el (pascal-progbeg-re): * lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re) (ruby-expr-beg, ruby-parse-partial) (ruby-toggle-string-quotes, ruby-font-lock-keywords): * lisp/progmodes/sql.el (sql--make-help-docstring): * lisp/progmodes/verilog-mode.el (verilog-coverpoint-re) (verilog-skip-forward-comment-p) (verilog-read-sub-decls-gate) (verilog-read-auto-template-middle): * lisp/progmodes/vhdl-mode.el (vhdl-resolve-env-variable) (vhdl-speedbar-expand-project, vhdl-speedbar-expand-entity) (vhdl-speedbar-expand-architecture) (vhdl-speedbar-expand-config, vhdl-speedbar-expand-package) (vhdl-speedbar-dired): * lisp/speedbar.el (speedbar-dired, speedbar-tag-file) (speedbar-tag-expand): * lisp/textmodes/dns-mode.el (dns-mode-font-lock-keywords): * lisp/textmodes/flyspell.el (flyspell-debug-signal-word-checked): * lisp/textmodes/ispell.el (ispell-process-line): * lisp/textmodes/reftex-cite.el (reftex-end-of-bib-entry): * lisp/textmodes/reftex-ref.el (reftex-replace-prefix-escapes): * lisp/url/url-parse.el (url-generic-parse-url): * lisp/url/url-util.el (url-truncate-url-for-viewing): * lisp/vc/diff-mode.el (diff-unified->context): * lisp/vc/vc-bzr.el (vc-bzr-error-regexp-alist): * lisp/vc/vc-cvs.el (vc-cvs-parse-status): * lisp/woman.el (woman0-el, woman-if-ignore) (woman-change-fonts): * lisp/xdg.el (xdg--substitute-home-env): Fix regular-expression infelicities and typos. Fix regular expression typos Fix typos reported by Mattias Engdegård in: that occurred in preloaded modules. * lisp/frame.el (frame-set-background-mode): * lisp/international/mule.el (sgml-html-meta-auto-coding-function): * lisp/isearch.el (isearch-pre-command-hook): * lisp/minibuffer.el (completion--embedded-envvar-re):
Diffstat (limited to 'lisp/org')
-rw-r--r--lisp/org/ob-core.el2
-rw-r--r--lisp/org/org-agenda.el2
-rw-r--r--lisp/org/org-element.el2
-rw-r--r--lisp/org/org-list.el2
-rw-r--r--lisp/org/org-mhe.el2
-rw-r--r--lisp/org/org-mobile.el4
-rw-r--r--lisp/org/org-mouse.el2
-rw-r--r--lisp/org/org-plot.el2
-rw-r--r--lisp/org/org-protocol.el2
-rw-r--r--lisp/org/org-table.el11
-rw-r--r--lisp/org/org.el4
-rw-r--r--lisp/org/ox-ascii.el4
-rw-r--r--lisp/org/ox-latex.el2
-rw-r--r--lisp/org/ox.el2
14 files changed, 22 insertions, 21 deletions
diff --git a/lisp/org/ob-core.el b/lisp/org/ob-core.el
index 93b8c13aa2d..b6c54a92ab6 100644
--- a/lisp/org/ob-core.el
+++ b/lisp/org/ob-core.el
@@ -2955,7 +2955,7 @@ If the table is trivial, then return it as a scalar."
2955(defun org-babel-string-read (cell) 2955(defun org-babel-string-read (cell)
2956 "Strip nested \"s from around strings." 2956 "Strip nested \"s from around strings."
2957 (org-babel-read (or (and (stringp cell) 2957 (org-babel-read (or (and (stringp cell)
2958 (string-match "\\\"\\(.+\\)\\\"" cell) 2958 (string-match "\"\\(.+\\)\"" cell)
2959 (match-string 1 cell)) 2959 (match-string 1 cell))
2960 cell) t)) 2960 cell) t))
2961 2961
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index 6593c6d8fa1..e416f5f062a 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -9446,7 +9446,7 @@ the resulting entry will not be shown. When TEXT is empty, switch to
9446 (goto-char (point-min)) 9446 (goto-char (point-min))
9447 (cond 9447 (cond
9448 ((eq type 'anniversary) 9448 ((eq type 'anniversary)
9449 (or (re-search-forward "^*[ \t]+Anniversaries" nil t) 9449 (or (re-search-forward "^\\*[ \t]+Anniversaries" nil t)
9450 (progn 9450 (progn
9451 (or (org-at-heading-p t) 9451 (or (org-at-heading-p t)
9452 (progn 9452 (progn
diff --git a/lisp/org/org-element.el b/lisp/org/org-element.el
index 690dcd139ef..04e2fda55e3 100644
--- a/lisp/org/org-element.el
+++ b/lisp/org/org-element.el
@@ -2119,7 +2119,7 @@ containing `:key', `:value', `:begin', `:end', `:post-blank' and
2119 ;; this corner case. 2119 ;; this corner case.
2120 (let ((begin (or (car affiliated) (point))) 2120 (let ((begin (or (car affiliated) (point)))
2121 (post-affiliated (point)) 2121 (post-affiliated (point))
2122 (key (progn (looking-at "[ \t]*#\\+\\(\\S-+*\\):") 2122 (key (progn (looking-at "[ \t]*#\\+\\(\\S-*\\):")
2123 (upcase (match-string-no-properties 1)))) 2123 (upcase (match-string-no-properties 1))))
2124 (value (org-trim (buffer-substring-no-properties 2124 (value (org-trim (buffer-substring-no-properties
2125 (match-end 0) (point-at-eol)))) 2125 (match-end 0) (point-at-eol))))
diff --git a/lisp/org/org-list.el b/lisp/org/org-list.el
index 96c8f55d3a5..ef85b402f08 100644
--- a/lisp/org/org-list.el
+++ b/lisp/org/org-list.el
@@ -2678,7 +2678,7 @@ Return t if successful."
2678 (error "Cannot outdent beyond margin") 2678 (error "Cannot outdent beyond margin")
2679 ;; Change bullet if necessary. 2679 ;; Change bullet if necessary.
2680 (when (and (= (+ top-ind offset) 0) 2680 (when (and (= (+ top-ind offset) 0)
2681 (string-match "*" 2681 (string-match "\\*"
2682 (org-list-get-bullet beg struct))) 2682 (org-list-get-bullet beg struct)))
2683 (org-list-set-bullet beg struct 2683 (org-list-set-bullet beg struct
2684 (org-list-bullet-string "-"))) 2684 (org-list-bullet-string "-")))
diff --git a/lisp/org/org-mhe.el b/lisp/org/org-mhe.el
index 969bff3cc64..a37c41ad06e 100644
--- a/lisp/org/org-mhe.el
+++ b/lisp/org/org-mhe.el
@@ -142,7 +142,7 @@ So if you use sequences, it will now work."
142 "Return the name of the message folder in an index folder buffer." 142 "Return the name of the message folder in an index folder buffer."
143 (save-excursion 143 (save-excursion
144 (mh-index-previous-folder) 144 (mh-index-previous-folder)
145 (if (re-search-forward "^\\(+.*\\)$" nil t) 145 (if (re-search-forward "^\\(\\+.*\\)$" nil t)
146 (message "%s" (match-string 1))))) 146 (message "%s" (match-string 1)))))
147 147
148(defun org-mhe-get-message-folder () 148(defun org-mhe-get-message-folder ()
diff --git a/lisp/org/org-mobile.el b/lisp/org/org-mobile.el
index 1ff6358403c..83dcc7b0d13 100644
--- a/lisp/org/org-mobile.el
+++ b/lisp/org/org-mobile.el
@@ -845,11 +845,11 @@ If BEG and END are given, only do this in that region."
845 (cl-incf cnt-error) 845 (cl-incf cnt-error)
846 (throw 'next t)) 846 (throw 'next t))
847 (move-marker bos-marker (point)) 847 (move-marker bos-marker (point))
848 (if (re-search-forward "^** Old value[ \t]*$" eos t) 848 (if (re-search-forward "^\\*\\* Old value[ \t]*$" eos t)
849 (setq old (buffer-substring 849 (setq old (buffer-substring
850 (1+ (match-end 0)) 850 (1+ (match-end 0))
851 (progn (outline-next-heading) (point))))) 851 (progn (outline-next-heading) (point)))))
852 (if (re-search-forward "^** New value[ \t]*$" eos t) 852 (if (re-search-forward "^\\*\\* New value[ \t]*$" eos t)
853 (setq new (buffer-substring 853 (setq new (buffer-substring
854 (1+ (match-end 0)) 854 (1+ (match-end 0))
855 (progn (outline-next-heading) 855 (progn (outline-next-heading)
diff --git a/lisp/org/org-mouse.el b/lisp/org/org-mouse.el
index ac75decb925..a3dcb77554c 100644
--- a/lisp/org/org-mouse.el
+++ b/lisp/org/org-mouse.el
@@ -643,7 +643,7 @@ This means, between the beginning of line and the point."
643 ,@(org-mouse-list-options-menu (mapcar 'car org-startup-options) 643 ,@(org-mouse-list-options-menu (mapcar 'car org-startup-options)
644 'org-mode-restart)))) 644 'org-mode-restart))))
645 ((or (eolp) 645 ((or (eolp)
646 (and (looking-at "\\( \\|\t\\)\\(+:[0-9a-zA-Z_:]+\\)?\\( \\|\t\\)+$") 646 (and (looking-at "\\( \\|\t\\)\\(\\+:[0-9a-zA-Z_:]+\\)?\\( \\|\t\\)+$")
647 (looking-back " \\|\t" (- (point) 2) 647 (looking-back " \\|\t" (- (point) 2)
648 (line-beginning-position)))) 648 (line-beginning-position))))
649 (org-mouse-popup-global-menu)) 649 (org-mouse-popup-global-menu))
diff --git a/lisp/org/org-plot.el b/lisp/org/org-plot.el
index aa34e4011ae..a5635e326d4 100644
--- a/lisp/org/org-plot.el
+++ b/lisp/org/org-plot.el
@@ -336,7 +336,7 @@ line directly before or after the table."
336 (insert "\n") 336 (insert "\n")
337 (insert-file-contents (plist-get params :script)) 337 (insert-file-contents (plist-get params :script))
338 (goto-char (point-min)) 338 (goto-char (point-min))
339 (while (re-search-forward "$datafile" nil t) 339 (while (re-search-forward "\\$datafile" nil t)
340 (replace-match data-file nil nil))) 340 (replace-match data-file nil nil)))
341 (insert (org-plot/gnuplot-script data-file num-cols params))) 341 (insert (org-plot/gnuplot-script data-file num-cols params)))
342 ;; Graph table. 342 ;; Graph table.
diff --git a/lisp/org/org-protocol.el b/lisp/org/org-protocol.el
index c31ac66bacb..016105ef53b 100644
--- a/lisp/org/org-protocol.el
+++ b/lisp/org/org-protocol.el
@@ -331,7 +331,7 @@ returned list."
331 (len 0) 331 (len 0)
332 dir 332 dir
333 ret) 333 ret)
334 (when (string-match "^\\(.*\\)\\(org-protocol:/+[a-zA-z0-9][-_a-zA-z0-9]*:/+\\)\\(.*\\)" trigger) 334 (when (string-match "^\\(.*\\)\\(org-protocol:/+[a-zA-Z0-9][-_a-zA-Z0-9]*:/+\\)\\(.*\\)" trigger)
335 (setq dir (match-string 1 trigger)) 335 (setq dir (match-string 1 trigger))
336 (setq len (length dir)) 336 (setq len (length dir))
337 (setcar l (concat dir (match-string 3 trigger)))) 337 (setcar l (concat dir (match-string 3 trigger))))
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el
index 765a1ee5c92..b6e864fc9c9 100644
--- a/lisp/org/org-table.el
+++ b/lisp/org/org-table.el
@@ -1182,7 +1182,7 @@ to a number. In the case of a timestamp, increment by days."
1182 (- (org-time-string-to-absolute txt) 1182 (- (org-time-string-to-absolute txt)
1183 (org-time-string-to-absolute txt-up))) 1183 (org-time-string-to-absolute txt-up)))
1184 ((string-match org-ts-regexp3 txt) 1) 1184 ((string-match org-ts-regexp3 txt) 1)
1185 ((string-match "\\([-+]\\)?\\(?:[0-9]+\\)?\\(?:\.[0-9]+\\)?" txt-up) 1185 ((string-match "\\([-+]\\)?[0-9]*\\(?:\\.[0-9]+\\)?" txt-up)
1186 (- (string-to-number txt) 1186 (- (string-to-number txt)
1187 (string-to-number (match-string 0 txt-up)))) 1187 (string-to-number (match-string 0 txt-up))))
1188 (t 1))) 1188 (t 1)))
@@ -2307,7 +2307,7 @@ LOCATION instead."
2307 "\n")))) 2307 "\n"))))
2308 2308
2309(defsubst org-table-formula-make-cmp-string (a) 2309(defsubst org-table-formula-make-cmp-string (a)
2310 (when (string-match "\\`$[<>]" a) 2310 (when (string-match "\\`\\$[<>]" a)
2311 (let ((arrow (string-to-char (substring a 1)))) 2311 (let ((arrow (string-to-char (substring a 1))))
2312 ;; Fake a high number to make sure this is sorted at the end. 2312 ;; Fake a high number to make sure this is sorted at the end.
2313 (setq a (org-table-formula-handle-first/last-rc a)) 2313 (setq a (org-table-formula-handle-first/last-rc a))
@@ -2355,7 +2355,7 @@ LOCATION is a buffer position, consider the formulas there."
2355 (cond 2355 (cond
2356 ((not (match-end 2)) m) 2356 ((not (match-end 2)) m)
2357 ;; Is it a column reference? 2357 ;; Is it a column reference?
2358 ((string-match-p "\\`$\\([0-9]+\\|[<>]+\\)\\'" m) m) 2358 ((string-match-p "\\`\\$\\([0-9]+\\|[<>]+\\)\\'" m) m)
2359 ;; Since named columns are not possible in 2359 ;; Since named columns are not possible in
2360 ;; LHS, assume this is a named field. 2360 ;; LHS, assume this is a named field.
2361 (t (match-string 2 string))))) 2361 (t (match-string 2 string)))))
@@ -3216,7 +3216,7 @@ known that the table will be realigned a little later anyway."
3216 (cond 3216 (cond
3217 ((string-match "\\`@-?I+" old-lhs) 3217 ((string-match "\\`@-?I+" old-lhs)
3218 (user-error "Can't assign to hline relative reference")) 3218 (user-error "Can't assign to hline relative reference"))
3219 ((string-match "\\`$[<>]" old-lhs) 3219 ((string-match "\\`\\$[<>]" old-lhs)
3220 (let ((new (org-table-formula-handle-first/last-rc 3220 (let ((new (org-table-formula-handle-first/last-rc
3221 old-lhs))) 3221 old-lhs)))
3222 (when (assoc new eqlist) 3222 (when (assoc new eqlist)
@@ -3639,7 +3639,8 @@ Parameters get priority."
3639 (setq startline (org-current-line)) 3639 (setq startline (org-current-line))
3640 (dolist (entry eql) 3640 (dolist (entry eql)
3641 (let* ((type (cond 3641 (let* ((type (cond
3642 ((string-match "\\`$\\([0-9]+\\|[<>]+\\)\\'" (car entry)) 3642 ((string-match "\\`\\$\\([0-9]+\\|[<>]+\\)\\'"
3643 (car entry))
3643 'column) 3644 'column)
3644 ((equal (string-to-char (car entry)) ?@) 'field) 3645 ((equal (string-to-char (car entry)) ?@) 'field)
3645 (t 'named))) 3646 (t 'named)))
diff --git a/lisp/org/org.el b/lisp/org/org.el
index 8a11a8f75ef..3a434d12dfd 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -10467,7 +10467,7 @@ This is still an experimental function, your mileage may vary."
10467 ((and (equal type "lisp") (string-match "^/" path)) 10467 ((and (equal type "lisp") (string-match "^/" path))
10468 ;; Planner has a slash, we do not. 10468 ;; Planner has a slash, we do not.
10469 (setq type "elisp" path (substring path 1))) 10469 (setq type "elisp" path (substring path 1)))
10470 ((string-match "^//\\(.?*\\)/\\(<.*>\\)$" path) 10470 ((string-match "^//\\(.*\\)/\\(<.*>\\)$" path)
10471 ;; A typical message link. Planner has the id after the final slash, 10471 ;; A typical message link. Planner has the id after the final slash,
10472 ;; we separate it with a hash mark 10472 ;; we separate it with a hash mark
10473 (setq path (concat (match-string 1 path) "#" 10473 (setq path (concat (match-string 1 path) "#"
@@ -22838,7 +22838,7 @@ assumed to be significant there."
22838 (save-excursion 22838 (save-excursion
22839 (skip-chars-backward "[ \t]") 22839 (skip-chars-backward "[ \t]")
22840 (skip-chars-backward "\\\\") 22840 (skip-chars-backward "\\\\")
22841 (looking-at "\\\\\\\\\\($\\|[^\\\\]\\)"))) 22841 (looking-at "\\\\\\\\\\($\\|[^\\]\\)")))
22842 22842
22843(defun org-fill-paragraph-with-timestamp-nobreak-p () 22843(defun org-fill-paragraph-with-timestamp-nobreak-p ()
22844 "Non-nil when a new line at point would split a timestamp." 22844 "Non-nil when a new line at point would split a timestamp."
diff --git a/lisp/org/ox-ascii.el b/lisp/org/ox-ascii.el
index c20536184ea..7c9920f64c5 100644
--- a/lisp/org/ox-ascii.el
+++ b/lisp/org/ox-ascii.el
@@ -1474,8 +1474,8 @@ contextual information."
1474 (replace-regexp-in-string 1474 (replace-regexp-in-string
1475 "-" "•" 1475 "-" "•"
1476 (replace-regexp-in-string 1476 (replace-regexp-in-string
1477 "+" "⁃" 1477 "\\+" "⁃"
1478 (replace-regexp-in-string "*" "‣" bul)))))))) 1478 (replace-regexp-in-string "\\*" "‣" bul))))))))
1479 (indentation (if (eq list-type 'descriptive) org-ascii-quote-margin 1479 (indentation (if (eq list-type 'descriptive) org-ascii-quote-margin
1480 (string-width bullet)))) 1480 (string-width bullet))))
1481 (concat 1481 (concat
diff --git a/lisp/org/ox-latex.el b/lisp/org/ox-latex.el
index d3e62861499..d711530bf71 100644
--- a/lisp/org/ox-latex.el
+++ b/lisp/org/ox-latex.el
@@ -1613,7 +1613,7 @@ INFO is a plist used as a communication channel."
1613 1613
1614(defun org-latex-clean-invalid-line-breaks (data _backend _info) 1614(defun org-latex-clean-invalid-line-breaks (data _backend _info)
1615 (replace-regexp-in-string 1615 (replace-regexp-in-string
1616 "\\(\\end{[A-Za-z0-9*]+}\\|^\\)[ \t]*\\\\\\\\[ \t]*$" "\\1" 1616 "\\(\\\\end{[A-Za-z0-9*]+}\\|^\\)[ \t]*\\\\\\\\[ \t]*$" "\\1"
1617 data)) 1617 data))
1618 1618
1619 1619
diff --git a/lisp/org/ox.el b/lisp/org/ox.el
index 8813968332e..58bc9b0ffb0 100644
--- a/lisp/org/ox.el
+++ b/lisp/org/ox.el
@@ -3322,7 +3322,7 @@ storing and resolving footnotes. It is created automatically."
3322 (setq value (replace-match "" nil nil value))))) 3322 (setq value (replace-match "" nil nil value)))))
3323 (lines 3323 (lines
3324 (and (string-match 3324 (and (string-match
3325 ":lines +\"\\(\\(?:[0-9]+\\)?-\\(?:[0-9]+\\)?\\)\"" 3325 ":lines +\"\\([0-9]*-[0-9]*\\)\""
3326 value) 3326 value)
3327 (prog1 (match-string 1 value) 3327 (prog1 (match-string 1 value)
3328 (setq value (replace-match "" nil nil value))))) 3328 (setq value (replace-match "" nil nil value)))))