diff options
| author | Stefan Monnier | 2008-03-19 01:41:53 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-03-19 01:41:53 +0000 |
| commit | 3253c7c65fa5da042b0df2573710e7a2d147e501 (patch) | |
| tree | 94751f25825c3df97ae12814a0029c58ebce1f29 | |
| parent | 3afc21a99d3f662f24ee10212397e20c7b274bed (diff) | |
| download | emacs-3253c7c65fa5da042b0df2573710e7a2d147e501.tar.gz emacs-3253c7c65fa5da042b0df2573710e7a2d147e501.zip | |
(describe-char-unidata-list): Allow specifying just all properties.
(describe-char): Handle that new value.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/descr-text.el | 49 |
2 files changed, 30 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bc342ad9733..37938c1bc44 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * descr-text.el (describe-char-unidata-list): Allow specifying | ||
| 4 | just all properties. | ||
| 5 | (describe-char): Handle that new value. | ||
| 6 | |||
| 3 | * emulation/cua-base.el (cua-paste): Signal an error in read-only buf. | 7 | * emulation/cua-base.el (cua-paste): Signal an error in read-only buf. |
| 4 | 8 | ||
| 5 | 2008-03-18 Tassilo Horn <tassilo@member.fsf.org> | 9 | 2008-03-18 Tassilo Horn <tassilo@member.fsf.org> |
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index dfa87308fbe..d965e66578d 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -187,22 +187,23 @@ otherwise." | |||
| 187 | "List of Unicode-based character property names shown by `describe-char'." | 187 | "List of Unicode-based character property names shown by `describe-char'." |
| 188 | :group 'mule | 188 | :group 'mule |
| 189 | :version "23.1" | 189 | :version "23.1" |
| 190 | :type '(set | 190 | :type '(choice (const :tag "All properties" t) |
| 191 | (const :tag "Unicode Name" name) | 191 | (set |
| 192 | (const :tag "Unicode general category " general-category) | 192 | (const :tag "Unicode Name" name) |
| 193 | (const :tag "Unicode canonical combining class" | 193 | (const :tag "Unicode general category " general-category) |
| 194 | canonical-combining-class) | 194 | (const :tag "Unicode canonical combining class" |
| 195 | (const :tag "Unicode bidi class" bidi-class) | 195 | canonical-combining-class) |
| 196 | (const :tag "Unicode decomposition mapping" decomposition) | 196 | (const :tag "Unicode bidi class" bidi-class) |
| 197 | (const :tag "Unicode decimal digit value" decimal-digit-value) | 197 | (const :tag "Unicode decomposition mapping" decomposition) |
| 198 | (const :tag "Unicode digit value" digit-value) | 198 | (const :tag "Unicode decimal digit value" decimal-digit-value) |
| 199 | (const :tag "Unicode numeric value" numeric-value) | 199 | (const :tag "Unicode digit value" digit-value) |
| 200 | (const :tag "Unicode mirrored" mirrored) | 200 | (const :tag "Unicode numeric value" numeric-value) |
| 201 | (const :tag "Unicode old name" old-name) | 201 | (const :tag "Unicode mirrored" mirrored) |
| 202 | (const :tag "Unicode ISO 10646 comment" iso-10646-comment) | 202 | (const :tag "Unicode old name" old-name) |
| 203 | (const :tag "Unicode simple uppercase mapping" uppercase) | 203 | (const :tag "Unicode ISO 10646 comment" iso-10646-comment) |
| 204 | (const :tag "Unicode simple lowercase mapping" lowercase) | 204 | (const :tag "Unicode simple uppercase mapping" uppercase) |
| 205 | (const :tag "Unicode simple titlecase mapping" titlecase))) | 205 | (const :tag "Unicode simple lowercase mapping" lowercase) |
| 206 | (const :tag "Unicode simple titlecase mapping" titlecase)))) | ||
| 206 | 207 | ||
| 207 | (defcustom describe-char-unicodedata-file nil | 208 | (defcustom describe-char-unicodedata-file nil |
| 208 | "Location of Unicode data file. | 209 | "Location of Unicode data file. |
| @@ -628,23 +629,25 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 628 | (insert "\nSee the variable `reference-point-alist' for " | 629 | (insert "\nSee the variable `reference-point-alist' for " |
| 629 | "the meaning of the rule.\n"))) | 630 | "the meaning of the rule.\n"))) |
| 630 | 631 | ||
| 631 | (if (not describe-char-unidata-list) | 632 | (insert (if (not describe-char-unidata-list) |
| 632 | (insert "\nCharacter code properties are not shown: ") | 633 | "\nCharacter code properties are not shown: " |
| 633 | (insert "\nCharacter code properties: ")) | 634 | "\nCharacter code properties: ")) |
| 634 | (insert-text-button | 635 | (insert-text-button |
| 635 | "customize what to show" | 636 | "customize what to show" |
| 636 | 'action (lambda (&rest ignore) | 637 | 'action (lambda (&rest ignore) |
| 637 | (customize-variable | 638 | (customize-variable |
| 638 | 'describe-char-unidata-list))) | 639 | 'describe-char-unidata-list))) |
| 639 | (insert "\n") | 640 | (insert "\n") |
| 640 | (dolist (elt describe-char-unidata-list) | 641 | (dolist (elt (if (eq describe-char-unidata-list t) |
| 642 | (mapcar 'car char-code-property-alist) | ||
| 643 | describe-char-unidata-list)) | ||
| 641 | (let ((val (get-char-code-property char elt)) | 644 | (let ((val (get-char-code-property char elt)) |
| 642 | description) | 645 | description) |
| 643 | (when val | 646 | (when val |
| 644 | (setq description (char-code-property-description elt val)) | 647 | (setq description (char-code-property-description elt val)) |
| 645 | (if description | 648 | (insert (if description |
| 646 | (insert (format " %s: %s (%s)\n" elt val description)) | 649 | (format " %s: %s (%s)\n" elt val description) |
| 647 | (insert (format " %s: %s\n" elt val)))))) | 650 | (format " %s: %s\n" elt val)))))) |
| 648 | 651 | ||
| 649 | (if text-props-desc (insert text-props-desc)) | 652 | (if text-props-desc (insert text-props-desc)) |
| 650 | (setq help-xref-stack-item (list 'help-insert-string (buffer-string))) | 653 | (setq help-xref-stack-item (list 'help-insert-string (buffer-string))) |