Commit 2f990ea2 authored by H. Dieter Wilhelm's avatar H. Dieter Wilhelm Committed by Jay Belanger
Browse files

calc/calc-help.el (calc-describe-thing): Quote strings which could

look like regexps.
parent 850fe806
2014-10-02
* calc/calc-help.el (calc-describe-thing): Quote strings
which could look like regexps.
2014-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
 
Consolidate x-select-text.
......
......@@ -366,9 +366,9 @@ C-w Describe how there is no warranty for Calc."
(Info-goto-node (buffer-substring (match-beginning 1) (match-end 1))))
(or (let ((case-fold-search nil))
(or (re-search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'"
(or target thing)
(or target thing)
(or target thing)) nil t)
(or target (regexp-quote thing))
(or target (regexp-quote thing))
(or target (regexp-quote thing))) nil t)
(and not-quoted
(let ((case-fold-search t))
(search-forward (or target thing) nil t)))
......@@ -376,9 +376,9 @@ C-w Describe how there is no warranty for Calc."
(search-forward (or target thing) nil t)))
(let ((case-fold-search t))
(or (re-search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'"
(or target thing)
(or target thing)
(or target thing)) nil t)
(or target (regexp-quote thing))
(or target (regexp-quote thing))
(or target (regexp-quote thing))) nil t)
(search-forward (format "`%s'" (or target thing)) nil t)
(search-forward (or target thing) nil t))))
(beginning-of-line)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment