diff options
| -rw-r--r-- | lisp/descr-text.el | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 3971dbb86b2..6a6a8ea4479 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -616,10 +616,18 @@ relevant to POS." | |||
| 616 | 'help-args '(,current-input-method)) | 616 | 'help-args '(,current-input-method)) |
| 617 | "input method") | 617 | "input method") |
| 618 | (list | 618 | (list |
| 619 | (let ((name | 619 | (let* ((names (ucs-names)) |
| 620 | (or (get-char-code-property char 'name) | 620 | (name |
| 621 | (get-char-code-property char 'old-name)))) | 621 | (or (when (= char 7) |
| 622 | (if (and name (assoc-string name (ucs-names))) | 622 | ;; Special case for "BELL" which is |
| 623 | ;; apparently the only char which | ||
| 624 | ;; doesn't have a new name and whose | ||
| 625 | ;; old-name is shadowed by a newer char | ||
| 626 | ;; with that name (bug#25641). | ||
| 627 | (car (rassoc char names))) | ||
| 628 | (get-char-code-property char 'name) | ||
| 629 | (get-char-code-property char 'old-name)))) | ||
| 630 | (if (and name (assoc-string name names)) | ||
| 623 | (format | 631 | (format |
| 624 | "type \"C-x 8 RET %x\" or \"C-x 8 RET %s\"" | 632 | "type \"C-x 8 RET %x\" or \"C-x 8 RET %s\"" |
| 625 | char name) | 633 | char name) |