diff options
| author | H. Dieter Wilhelm | 2014-10-01 20:41:10 -0500 |
|---|---|---|
| committer | Jay Belanger | 2014-10-01 20:41:10 -0500 |
| commit | 2f990ea257a24dff9340927e10644243042addf0 (patch) | |
| tree | 5a4d3313b24ac86dc5044dfca0c679eb1c79f3c0 | |
| parent | 850fe806f2fa0622a16b709999f925dbab407249 (diff) | |
| download | emacs-2f990ea257a24dff9340927e10644243042addf0.tar.gz emacs-2f990ea257a24dff9340927e10644243042addf0.zip | |
calc/calc-help.el (calc-describe-thing): Quote strings which could
look like regexps.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calc/calc-help.el | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1ea03b7630c..d05add5ab6b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-10-02 | ||
| 2 | |||
| 3 | * calc/calc-help.el (calc-describe-thing): Quote strings | ||
| 4 | which could look like regexps. | ||
| 5 | |||
| 1 | 2014-10-01 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2014-10-01 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | Consolidate x-select-text. | 8 | Consolidate x-select-text. |
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el index be04e5a12c0..dfd29230fe5 100644 --- a/lisp/calc/calc-help.el +++ b/lisp/calc/calc-help.el | |||
| @@ -366,9 +366,9 @@ C-w Describe how there is no warranty for Calc." | |||
| 366 | (Info-goto-node (buffer-substring (match-beginning 1) (match-end 1)))) | 366 | (Info-goto-node (buffer-substring (match-beginning 1) (match-end 1)))) |
| 367 | (or (let ((case-fold-search nil)) | 367 | (or (let ((case-fold-search nil)) |
| 368 | (or (re-search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'" | 368 | (or (re-search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'" |
| 369 | (or target thing) | 369 | (or target (regexp-quote thing)) |
| 370 | (or target thing) | 370 | (or target (regexp-quote thing)) |
| 371 | (or target thing)) nil t) | 371 | (or target (regexp-quote thing))) nil t) |
| 372 | (and not-quoted | 372 | (and not-quoted |
| 373 | (let ((case-fold-search t)) | 373 | (let ((case-fold-search t)) |
| 374 | (search-forward (or target thing) nil t))) | 374 | (search-forward (or target thing) nil t))) |
| @@ -376,9 +376,9 @@ C-w Describe how there is no warranty for Calc." | |||
| 376 | (search-forward (or target thing) nil t))) | 376 | (search-forward (or target thing) nil t))) |
| 377 | (let ((case-fold-search t)) | 377 | (let ((case-fold-search t)) |
| 378 | (or (re-search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'" | 378 | (or (re-search-forward (format "\\[`%s'\\]\\|(`%s')\\|\\<The[ \n]`%s'" |
| 379 | (or target thing) | 379 | (or target (regexp-quote thing)) |
| 380 | (or target thing) | 380 | (or target (regexp-quote thing)) |
| 381 | (or target thing)) nil t) | 381 | (or target (regexp-quote thing))) nil t) |
| 382 | (search-forward (format "`%s'" (or target thing)) nil t) | 382 | (search-forward (format "`%s'" (or target thing)) nil t) |
| 383 | (search-forward (or target thing) nil t)))) | 383 | (search-forward (or target thing) nil t)))) |
| 384 | (beginning-of-line) | 384 | (beginning-of-line) |