diff options
| author | Juri Linkov | 2012-11-04 11:24:00 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-11-04 11:24:00 +0800 |
| commit | 85178ca1361874a4ce78f13b827d5c3fa8687856 (patch) | |
| tree | 63629cc22832caed2e2f4326d880b9efb18d87f6 | |
| parent | 3478f4b5c48c636aa1fbbfad52e42ffdf61de606 (diff) | |
| download | emacs-85178ca1361874a4ce78f13b827d5c3fa8687856.tar.gz emacs-85178ca1361874a4ce78f13b827d5c3fa8687856.zip | |
Don't bind same-window-* in isearch.el commands.
* isearch.el (isearch-help-for-help, isearch-describe-bindings)
(isearch-describe-key, isearch-describe-mode): Use a display
action instead of binding same-window-* variables.
Fixes: debbugs:10040
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/isearch.el | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c9a389be38b..84d70ccab18 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-11-04 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * isearch.el (isearch-help-for-help, isearch-describe-bindings) | ||
| 4 | (isearch-describe-key, isearch-describe-mode): Use a display | ||
| 5 | action instead of binding same-window-* variables (Bug#10040). | ||
| 6 | |||
| 1 | 2012-11-03 Glenn Morris <rgm@gnu.org> | 7 | 2012-11-03 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * emacs-lisp/cl-macs.el (cl-parse-loop-clause): | 9 | * emacs-lisp/cl-macs.el (cl-parse-loop-clause): |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 0bfda880d93..54ec3f2b052 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -374,10 +374,12 @@ but outside of this help window when you type them in Isearch mode, | |||
| 374 | they exit Isearch mode before displaying global help." | 374 | they exit Isearch mode before displaying global help." |
| 375 | isearch-help-map) | 375 | isearch-help-map) |
| 376 | 376 | ||
| 377 | (defvar isearch--display-help-action '(nil (inhibit-same-window . t))) | ||
| 378 | |||
| 377 | (defun isearch-help-for-help () | 379 | (defun isearch-help-for-help () |
| 378 | "Display Isearch help menu." | 380 | "Display Isearch help menu." |
| 379 | (interactive) | 381 | (interactive) |
| 380 | (let (same-window-buffer-names same-window-regexps) | 382 | (let ((display-buffer-overriding-action isearch--display-help-action)) |
| 381 | (isearch-help-for-help-internal)) | 383 | (isearch-help-for-help-internal)) |
| 382 | (isearch-update)) | 384 | (isearch-update)) |
| 383 | 385 | ||
| @@ -385,7 +387,7 @@ they exit Isearch mode before displaying global help." | |||
| 385 | "Show a list of all keys defined in Isearch mode, and their definitions. | 387 | "Show a list of all keys defined in Isearch mode, and their definitions. |
| 386 | This is like `describe-bindings', but displays only Isearch keys." | 388 | This is like `describe-bindings', but displays only Isearch keys." |
| 387 | (interactive) | 389 | (interactive) |
| 388 | (let (same-window-buffer-names same-window-regexps) | 390 | (let ((display-buffer-overriding-action isearch--display-help-action)) |
| 389 | (with-help-window "*Help*" | 391 | (with-help-window "*Help*" |
| 390 | (with-current-buffer standard-output | 392 | (with-current-buffer standard-output |
| 391 | (princ "Isearch Mode Bindings:\n") | 393 | (princ "Isearch Mode Bindings:\n") |
| @@ -394,14 +396,14 @@ This is like `describe-bindings', but displays only Isearch keys." | |||
| 394 | (defun isearch-describe-key () | 396 | (defun isearch-describe-key () |
| 395 | "Display documentation of the function invoked by isearch key." | 397 | "Display documentation of the function invoked by isearch key." |
| 396 | (interactive) | 398 | (interactive) |
| 397 | (let (same-window-buffer-names same-window-regexps) | 399 | (let ((display-buffer-overriding-action isearch--display-help-action)) |
| 398 | (call-interactively 'describe-key)) | 400 | (call-interactively 'describe-key)) |
| 399 | (isearch-update)) | 401 | (isearch-update)) |
| 400 | 402 | ||
| 401 | (defun isearch-describe-mode () | 403 | (defun isearch-describe-mode () |
| 402 | "Display documentation of Isearch mode." | 404 | "Display documentation of Isearch mode." |
| 403 | (interactive) | 405 | (interactive) |
| 404 | (let (same-window-buffer-names same-window-regexps) | 406 | (let ((display-buffer-overriding-action isearch--display-help-action)) |
| 405 | (describe-function 'isearch-forward)) | 407 | (describe-function 'isearch-forward)) |
| 406 | (isearch-update)) | 408 | (isearch-update)) |
| 407 | 409 | ||