diff options
| author | Stefan Monnier | 2005-07-26 16:02:09 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-07-26 16:02:09 +0000 |
| commit | cbfde7a0798d4218e7638ef756d22f51d1a68a42 (patch) | |
| tree | 32568f4cf30d60a9c5fc37bc0c77809c6f74cbaa | |
| parent | d32ff76aa26d144f10eeadf1317c83136e67d15c (diff) | |
| download | emacs-cbfde7a0798d4218e7638ef756d22f51d1a68a42.tar.gz emacs-cbfde7a0798d4218e7638ef756d22f51d1a68a42.zip | |
(describe-char): Handle the case where the list of
chars is displayed in a separate frame.
Be a bit more discriminating when looking for the char.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/descr-text.el | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ad67e420c78..442206319ed 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * descr-text.el (describe-char): Handle the case where the list of | ||
| 4 | chars is displayed in a separate frame. | ||
| 5 | Be a bit more discriminating when looking for the char. | ||
| 6 | |||
| 1 | 2005-07-26 Juanma Barranquero <lekktu@gmail.com> | 7 | 2005-07-26 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 8 | ||
| 3 | * bookmark.el (bookmark-automatically-show-annotations) | 9 | * bookmark.el (bookmark-automatically-show-annotations) |
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index f639b811a45..e206e2c269c 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -491,10 +491,12 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 491 | :notify (lambda (&rest ignore) | 491 | :notify (lambda (&rest ignore) |
| 492 | (list-charset-chars ',charset) | 492 | (list-charset-chars ',charset) |
| 493 | (with-selected-window | 493 | (with-selected-window |
| 494 | (get-buffer-window "*Character List*") | 494 | (get-buffer-window "*Character List*" 0) |
| 495 | (goto-char (point-min)) | 495 | (goto-char (point-min)) |
| 496 | (search-forward ,(char-to-string char) | 496 | (forward-line 2) ;Skip the header. |
| 497 | nil t))) | 497 | (let ((case-fold-search nil)) |
| 498 | (search-forward ,(char-to-string char) | ||
| 499 | nil t)))) | ||
| 498 | ,(if (= (charset-dimension charset) 1) | 500 | ,(if (= (charset-dimension charset) 1) |
| 499 | (format "%d" (nth 1 split)) | 501 | (format "%d" (nth 1 split)) |
| 500 | (format "%d %d" (nth 1 split) (nth 2 split)))))) | 502 | (format "%d %d" (nth 1 split) (nth 2 split)))))) |