diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-04-12 19:43:16 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-04-12 19:43:41 -0700 |
commit | 7ddd08bd3ebc48998062a7d29274cf080256a48f (patch) | |
tree | da54083040dc4675dc5b9084ab32a0ed4ec6a8f5 /lisp/org | |
parent | 8635e011edd1c50678074a49cbbf857b35823e9d (diff) | |
download | emacs-7ddd08bd3ebc48998062a7d29274cf080256a48f.tar.gz |
Omit/rewrite useless regexp repetitions
Problem reported by Mattias EngdegÄrd in:
https://lists.gnu.org/r/emacs-devel/2019-04/msg00527.html
* lisp/align.el (align-rules-list):
* lisp/cedet/srecode/srt-mode.el (srecode-font-lock-keywords):
* lisp/emacs-lisp/copyright.el (copyright-regexp):
* lisp/erc/erc-backend.el (JOIN):
* lisp/erc/erc-goodies.el (erc-unmorse):
* lisp/mail/mail-extr.el (mail-extr-telephone-extension-pattern):
* lisp/net/tramp-adb.el (tramp-adb-prompt):
* lisp/org/org-table.el (org-table-range-regexp):
* lisp/progmodes/idlwave.el (idlwave-where):
* lisp/progmodes/verilog-mode.el (verilog-declaration-re-2-no-macro)
(verilog-declaration-re-2-macro, verilog-delete-auto-buffer)
(verilog-auto-inst-port):
* lisp/url/url-misc.el (url-data):
Omit or rewrite useless repetitions that risk being very slow in
the backtracking regexp engine in Emacs.
Diffstat (limited to 'lisp/org')
-rw-r--r-- | lisp/org/org-table.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el index b6e864fc9c9..147527da1d3 100644 --- a/lisp/org/org-table.el +++ b/lisp/org/org-table.el @@ -484,8 +484,8 @@ Line numbers are counted from the beginning of the table. This variable is initialized with `org-table-analyze'.") (defconst org-table-range-regexp - "@\\([-+]?I*[-+]?[0-9]*\\)?\\(\\$[-+]?[0-9]+\\)?\\(\\.\\.@?\\([-+]?I*[-+]?[0-9]*\\)?\\(\\$[-+]?[0-9]+\\)?\\)?" - ;; 1 2 3 4 5 + "@\\([-+]?I*[-+]?[0-9]*\\)\\(\\$[-+]?[0-9]+\\)?\\(\\.\\.@?\\([-+]?I*[-+]?[0-9]*\\)\\(\\$[-+]?[0-9]+\\)?\\)?" + ;; 1 2 3 4 5 "Regular expression for matching ranges in formulas.") (defconst org-table-range-regexp2 |