diff options
| author | Martin Rudalics | 2007-11-10 09:55:53 +0000 |
|---|---|---|
| committer | Martin Rudalics | 2007-11-10 09:55:53 +0000 |
| commit | 3db0e8bf35b1f26861555bbb1a3aa35e620a7bf2 (patch) | |
| tree | af4f612897bede7055030275727ac228b8b691fa | |
| parent | c6808785f826691a6aaa5e6e9908938ff9840d05 (diff) | |
| download | emacs-3db0e8bf35b1f26861555bbb1a3aa35e620a7bf2.tar.gz emacs-3db0e8bf35b1f26861555bbb1a3aa35e620a7bf2.zip | |
(describe-char): Use with-help-window instead of with-output-to-temp-buffer.
| -rw-r--r-- | lisp/descr-text.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index d14aba7ae6f..3452874f343 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -588,7 +588,7 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 588 | (if (cadr x) (length (car x)) 0)) | 588 | (if (cadr x) (length (car x)) 0)) |
| 589 | item-list))) | 589 | item-list))) |
| 590 | (help-setup-xref nil (interactive-p)) | 590 | (help-setup-xref nil (interactive-p)) |
| 591 | (with-output-to-temp-buffer (help-buffer) | 591 | (with-help-window (help-buffer) |
| 592 | (with-current-buffer standard-output | 592 | (with-current-buffer standard-output |
| 593 | (set-buffer-multibyte multibyte-p) | 593 | (set-buffer-multibyte multibyte-p) |
| 594 | (let ((formatter (format "%%%ds:" max-width))) | 594 | (let ((formatter (format "%%%ds:" max-width))) |
| @@ -685,8 +685,7 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 685 | 685 | ||
| 686 | (if text-props-desc (insert text-props-desc)) | 686 | (if text-props-desc (insert text-props-desc)) |
| 687 | (setq help-xref-stack-item (list 'help-insert-string (buffer-string))) | 687 | (setq help-xref-stack-item (list 'help-insert-string (buffer-string))) |
| 688 | (toggle-read-only 1) | 688 | (toggle-read-only 1))))) |
| 689 | (print-help-return-message))))) | ||
| 690 | 689 | ||
| 691 | (defalias 'describe-char-after 'describe-char) | 690 | (defalias 'describe-char-after 'describe-char) |
| 692 | (make-obsolete 'describe-char-after 'describe-char "22.1") | 691 | (make-obsolete 'describe-char-after 'describe-char "22.1") |