Switch to recommended form of GPLv3 permissions notice.
[emacs.git] / lisp / descr-text.el
blobd493188a9788aea6e9f8d860aaff85ce1d8ef3ba
1 ;;; descr-text.el --- describe text mode
3 ;; Copyright (C) 1994, 1995, 1996, 2001, 2002, 2003, 2004,
4 ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6 ;; Author: Boris Goldowsky <boris@gnu.org>
7 ;; Maintainer: FSF
8 ;; Keywords: faces, i18n, Unicode, multilingual
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25 ;;; Commentary:
27 ;;; Describe-Text Mode.
29 ;;; Code:
31 (eval-when-compile (require 'quail))
32 (require 'help-fns)
34 ;;; Describe-Text Utilities.
36 (defun describe-text-widget (widget)
37 "Insert text to describe WIDGET in the current buffer."
38 (insert-text-button
39 (symbol-name (if (symbolp widget) widget (car widget)))
40 'action `(lambda (&rest ignore)
41 (widget-browse ',widget))
42 'help-echo "mouse-2, RET: browse this widget")
43 (insert " ")
44 (insert-text-button
45 "(widget)Top" 'type 'help-info 'help-args '("(widget)Top")))
47 (defun describe-text-sexp (sexp)
48 "Insert a short description of SEXP in the current buffer."
49 (let ((pp (condition-case signal
50 (pp-to-string sexp)
51 (error (prin1-to-string signal)))))
52 (when (string-match "\n\\'" pp)
53 (setq pp (substring pp 0 (1- (length pp)))))
54 (if (cond ((string-match "\n" pp)
55 nil)
56 ((> (length pp) (- (window-width) (current-column)))
57 nil)
58 (t t))
59 (insert pp)
60 (insert-text-button
61 "[Show]" 'action `(lambda (&rest ignore)
62 (with-output-to-temp-buffer
63 "*Pp Eval Output*"
64 (princ ',pp)))
65 'help-echo "mouse-2, RET: pretty print value in another buffer"))))
67 (defun describe-property-list (properties)
68 "Insert a description of PROPERTIES in the current buffer.
69 PROPERTIES should be a list of overlay or text properties.
70 The `category', `face' and `font-lock-face' properties are made
71 into help buttons that call `describe-text-category' or
72 `describe-face' when pushed."
73 ;; Sort the properties by the size of their value.
74 (dolist (elt (sort (let (ret)
75 (while properties
76 (push (list (pop properties) (pop properties)) ret))
77 ret)
78 (lambda (a b) (string< (prin1-to-string (nth 0 a) t)
79 (prin1-to-string (nth 0 b) t)))))
80 (let ((key (nth 0 elt))
81 (value (nth 1 elt)))
82 (insert (propertize (format " %-20s " key)
83 'face 'help-argument-name))
84 (cond ((eq key 'category)
85 (insert-text-button
86 (symbol-name value)
87 'action `(lambda (&rest ignore)
88 (describe-text-category ',value))
89 'help-echo "mouse-2, RET: describe this category"))
90 ((memq key '(face font-lock-face mouse-face))
91 (insert-text-button
92 (format "%S" value)
93 'type 'help-face 'help-args (list value)))
94 ((widgetp value)
95 (describe-text-widget value))
97 (describe-text-sexp value))))
98 (insert "\n")))
100 ;;; Describe-Text Commands.
102 (defun describe-text-category (category)
103 "Describe a text property category."
104 (interactive "SCategory: ")
105 (help-setup-xref (list #'describe-text-category category) (interactive-p))
106 (save-excursion
107 (with-output-to-temp-buffer "*Help*"
108 (set-buffer standard-output)
109 (insert "Category " (format "%S" category) ":\n\n")
110 (describe-property-list (symbol-plist category))
111 (goto-char (point-min)))))
113 ;;;###autoload
114 (defun describe-text-properties (pos &optional output-buffer)
115 "Describe widgets, buttons, overlays and text properties at POS.
116 Interactively, describe them for the character after point.
117 If optional second argument OUTPUT-BUFFER is non-nil,
118 insert the output into that buffer, and don't initialize or clear it
119 otherwise."
120 (interactive "d")
121 (if (>= pos (point-max))
122 (error "No character follows specified position"))
123 (if output-buffer
124 (describe-text-properties-1 pos output-buffer)
125 (if (not (or (text-properties-at pos) (overlays-at pos)))
126 (message "This is plain text.")
127 (let ((buffer (current-buffer))
128 (target-buffer "*Help*"))
129 (when (eq buffer (get-buffer target-buffer))
130 (setq target-buffer "*Help*<2>"))
131 (save-excursion
132 (with-output-to-temp-buffer target-buffer
133 (set-buffer standard-output)
134 (setq output-buffer (current-buffer))
135 (insert "Text content at position " (format "%d" pos) ":\n\n")
136 (with-current-buffer buffer
137 (describe-text-properties-1 pos output-buffer))
138 (goto-char (point-min))))))))
140 (defun describe-text-properties-1 (pos output-buffer)
141 (let* ((properties (text-properties-at pos))
142 (overlays (overlays-at pos))
143 (wid-field (get-char-property pos 'field))
144 (wid-button (get-char-property pos 'button))
145 (wid-doc (get-char-property pos 'widget-doc))
146 ;; If button.el is not loaded, we have no buttons in the text.
147 (button (and (fboundp 'button-at) (button-at pos)))
148 (button-type (and button (button-type button)))
149 (button-label (and button (button-label button)))
150 (widget (or wid-field wid-button wid-doc)))
151 (with-current-buffer output-buffer
152 ;; Widgets
153 (when (widgetp widget)
154 (newline)
155 (insert (cond (wid-field "This is an editable text area")
156 (wid-button "This is an active area")
157 (wid-doc "This is documentation text")))
158 (insert " of a ")
159 (describe-text-widget widget)
160 (insert ".\n\n"))
161 ;; Buttons
162 (when (and button (not (widgetp wid-button)))
163 (newline)
164 (insert "Here is a `" (format "%S" button-type)
165 "' button labeled `" button-label "'.\n\n"))
166 ;; Overlays
167 (when overlays
168 (newline)
169 (if (eq (length overlays) 1)
170 (insert "There is an overlay here:\n")
171 (insert "There are " (format "%d" (length overlays))
172 " overlays here:\n"))
173 (dolist (overlay overlays)
174 (insert " From " (format "%d" (overlay-start overlay))
175 " to " (format "%d" (overlay-end overlay)) "\n")
176 (describe-property-list (overlay-properties overlay)))
177 (insert "\n"))
178 ;; Text properties
179 (when properties
180 (newline)
181 (insert "There are text properties here:\n")
182 (describe-property-list properties)))))
184 (defcustom describe-char-unidata-list nil
185 "List of Unicode-based character property names shown by `describe-char'."
186 :group 'mule
187 :version "23.1"
188 :type '(choice (const :tag "All properties" t)
189 (set
190 (const :tag "Unicode Name" name)
191 (const :tag "Unicode general category " general-category)
192 (const :tag "Unicode canonical combining class"
193 canonical-combining-class)
194 (const :tag "Unicode bidi class" bidi-class)
195 (const :tag "Unicode decomposition mapping" decomposition)
196 (const :tag "Unicode decimal digit value" decimal-digit-value)
197 (const :tag "Unicode digit value" digit-value)
198 (const :tag "Unicode numeric value" numeric-value)
199 (const :tag "Unicode mirrored" mirrored)
200 (const :tag "Unicode old name" old-name)
201 (const :tag "Unicode ISO 10646 comment" iso-10646-comment)
202 (const :tag "Unicode simple uppercase mapping" uppercase)
203 (const :tag "Unicode simple lowercase mapping" lowercase)
204 (const :tag "Unicode simple titlecase mapping" titlecase))))
206 (defcustom describe-char-unicodedata-file nil
207 "Location of Unicode data file.
208 This is the UnicodeData.txt file from the Unicode Consortium, used for
209 diagnostics. If it is non-nil `describe-char' will print data
210 looked up from it. This facility is mostly of use to people doing
211 multilingual development.
213 This is a fairly large file, not typically present on GNU systems.
214 At the time of writing it is at the URL
215 `http://www.unicode.org/Public/UNIDATA/UnicodeData.txt'."
216 :group 'mule
217 :version "22.1"
218 :type '(choice (const :tag "None" nil)
219 file))
221 (defun describe-char-unicode-data (char)
222 "Return a list of Unicode data for unicode CHAR.
223 Each element is a list of a property description and the property value.
224 The list is null if CHAR isn't found in `describe-char-unicodedata-file'.
225 This function is semi-obsolete. Use `get-char-code-property'."
226 (when describe-char-unicodedata-file
227 (unless (file-exists-p describe-char-unicodedata-file)
228 (error "`unicodedata-file' %s not found" describe-char-unicodedata-file))
229 (with-current-buffer (get-buffer-create " *Unicode Data*")
230 (when (zerop (buffer-size))
231 ;; Don't use -literally in case of DOS line endings.
232 (insert-file-contents describe-char-unicodedata-file))
233 (goto-char (point-min))
234 (let ((hex (format "%04X" char))
235 found first last)
236 (if (re-search-forward (concat "^" hex) nil t)
237 (setq found t)
238 ;; It's not listed explicitly. Look for ranges, e.g. CJK
239 ;; ideographs, and check whether it's in one of them.
240 (while (and (re-search-forward "^\\([^;]+\\);[^;]+First>;" nil t)
241 (>= char (setq first
242 (string-to-number (match-string 1) 16)))
243 (progn
244 (forward-line 1)
245 (looking-at "^\\([^;]+\\);[^;]+Last>;")
246 (> char
247 (setq last
248 (string-to-number (match-string 1) 16))))))
249 (if (and (>= char first)
250 (<= char last))
251 (setq found t)))
252 (if found
253 (let ((fields (mapcar (lambda (elt)
254 (if (> (length elt) 0)
255 elt))
256 (cdr (split-string
257 (buffer-substring
258 (line-beginning-position)
259 (line-end-position))
260 ";")))))
261 ;; The length depends on whether the last field was empty.
262 (unless (or (= 13 (length fields))
263 (= 14 (length fields)))
264 (error "Invalid contents in %s" describe-char-unicodedata-file))
265 ;; The field names and values lists are slightly
266 ;; modified from Mule-UCS unidata.el.
267 (list
268 (list "Name" (let ((name (nth 0 fields)))
269 ;; Check for <..., First>, <..., Last>
270 (if (string-match "\\`\\(<[^,]+\\)," name)
271 (concat (match-string 1 name) ">")
272 name)))
273 (list "Category"
274 (let ((val (nth 1 fields)))
275 (or (char-code-property-description
276 'general-category (intern val))
277 val)))
278 (list "Combining class"
279 (let ((val (nth 1 fields)))
280 (or (char-code-property-description
281 'canonical-combining-class (intern val))
282 val)))
283 (list "Bidi category"
284 (let ((val (nth 1 fields)))
285 (or (char-code-property-description
286 'bidi-class (intern val))
287 val)))
288 (list
289 "Decomposition"
290 (if (nth 4 fields)
291 (let* ((parts (split-string (nth 4 fields)))
292 (info (car parts)))
293 (if (string-match "\\`<\\(.+\\)>\\'" info)
294 (setq info (match-string 1 info))
295 (setq info nil))
296 (if info (setq parts (cdr parts)))
297 (setq parts (mapconcat
298 (lambda (arg)
299 (string (string-to-number arg 16)))
300 parts " "))
301 (concat info parts))))
302 (list "Decimal digit value"
303 (nth 5 fields))
304 (list "Digit value"
305 (nth 6 fields))
306 (list "Numeric value"
307 (nth 7 fields))
308 (list "Mirrored"
309 (if (equal "Y" (nth 8 fields))
310 "yes"))
311 (list "Old name" (nth 9 fields))
312 (list "ISO 10646 comment" (nth 10 fields))
313 (list "Uppercase" (and (nth 11 fields)
314 (string (string-to-number
315 (nth 11 fields) 16))))
316 (list "Lowercase" (and (nth 12 fields)
317 (string (string-to-number
318 (nth 12 fields) 16))))
319 (list "Titlecase" (and (nth 13 fields)
320 (string (string-to-number
321 (nth 13 fields) 16)))))))))))
323 ;; Return information about how CHAR is displayed at the buffer
324 ;; position POS. If the selected frame is on a graphic display,
325 ;; return a cons (FONTNAME . GLYPH-CODE) where GLYPH-CODE is a
326 ;; hexadigit string representing the glyph-ID. Otherwise, return a
327 ;; string describing the terminal codes for the character.
328 (defun describe-char-display (pos char)
329 (if (display-graphic-p (selected-frame))
330 (let ((char-font-info (internal-char-font pos char)))
331 (if char-font-info
332 (if (integerp (cdr char-font-info))
333 (setcdr char-font-info (format "%02X" (cdr char-font-info)))
334 (setcdr char-font-info
335 (format "%04X%04X"
336 (cadr char-font-info) (cddr char-font-info)))))
337 char-font-info)
338 (let* ((coding (terminal-coding-system))
339 (encoded (encode-coding-char char coding)))
340 (if encoded
341 (encoded-string-description encoded coding)))))
344 ;;;###autoload
345 (defun describe-char (pos)
346 "Describe the character after POS (interactively, the character after point).
347 The information includes character code, charset and code points in it,
348 syntax, category, how the character is encoded in a file,
349 character composition information (if relevant),
350 as well as widgets, buttons, overlays, and text properties."
351 (interactive "d")
352 (if (>= pos (point-max))
353 (error "No character follows specified position"))
354 (let* ((char (char-after pos))
355 (charset (char-charset char))
356 (composition (find-composition pos nil nil t))
357 (component-chars nil)
358 (display-table (or (window-display-table)
359 buffer-display-table
360 standard-display-table))
361 (disp-vector (and display-table (aref display-table char)))
362 (multibyte-p enable-multibyte-characters)
363 (overlays (mapcar #'(lambda (o) (overlay-properties o))
364 (overlays-at pos)))
365 (char-description (if (not multibyte-p)
366 (single-key-description char)
367 (if (< char 128)
368 (single-key-description char)
369 (string-to-multibyte
370 (char-to-string char)))))
371 (text-props-desc
372 (let ((tmp-buf (generate-new-buffer " *text-props*")))
373 (unwind-protect
374 (progn
375 (describe-text-properties pos tmp-buf)
376 (with-current-buffer tmp-buf (buffer-string)))
377 (kill-buffer tmp-buf))))
378 item-list max-width code)
380 (setq code (encode-char char charset))
381 (setq item-list
382 `(("character"
383 ,(format "%s (%d, #o%o, #x%x)"
384 (apply 'propertize char-description
385 (text-properties-at pos))
386 char char char))
387 ("preferred charset"
388 ,`(insert-text-button
389 ,(symbol-name charset)
390 'type 'help-character-set 'help-args '(,charset))
391 ,(format "(%s)" (charset-description charset)))
392 ("code point"
393 ,(let ((str (if (integerp code)
394 (format (if (< code 256) "0x%02X" "0x%04X") code)
395 (format "0x%04X%04X" (car code) (cdr code)))))
396 (if (<= (charset-dimension charset) 2)
397 `(insert-text-button
398 ,str
399 'action (lambda (&rest ignore)
400 (list-charset-chars ',charset)
401 (with-selected-window
402 (get-buffer-window "*Character List*" 0)
403 (goto-char (point-min))
404 (forward-line 2) ;Skip the header.
405 (let ((case-fold-search nil))
406 (if (search-forward ,(char-to-string char)
407 nil t)
408 (goto-char (match-beginning 0))))))
409 'help-echo
410 "mouse-2, RET: show this character in its character set")
411 str)))
412 ("syntax"
413 ,(let ((syntax (syntax-after pos)))
414 (with-temp-buffer
415 (internal-describe-syntax-value syntax)
416 (buffer-string))))
417 ("category"
418 ,@(let ((category-set (char-category-set char)))
419 (if (not category-set)
420 '("-- none --")
421 (mapcar #'(lambda (x) (format "%c:%s"
422 x (category-docstring x)))
423 (category-set-mnemonics category-set)))))
424 ("to input"
425 ,@(let ((key-list (and (eq input-method-function
426 'quail-input-method)
427 (quail-find-key char))))
428 (if (consp key-list)
429 (list "type"
430 (mapconcat #'(lambda (x) (concat "\"" x "\""))
431 key-list " or ")
432 "with"
433 `(insert-text-button
434 ,current-input-method
435 'type 'help-input-method
436 'help-args '(,current-input-method))))))
437 ("buffer code"
438 ,(encoded-string-description
439 (string-as-unibyte (char-to-string char)) nil))
440 ("file code"
441 ,@(let* ((coding buffer-file-coding-system)
442 (encoded (encode-coding-char char coding)))
443 (if encoded
444 (list (encoded-string-description encoded coding)
445 (format "(encoded by coding system %S)" coding))
446 (list "not encodable by coding system"
447 (symbol-name coding)))))
448 ("display"
449 ,(cond
450 (disp-vector
451 (setq disp-vector (copy-sequence disp-vector))
452 (dotimes (i (length disp-vector))
453 (setq char (aref disp-vector i))
454 (aset disp-vector i
455 (cons char (describe-char-display
456 pos (glyph-char char)))))
457 (format "by display table entry [%s] (see below)"
458 (mapconcat
459 #'(lambda (x)
460 (format "?%c" (glyph-char (car x))))
461 disp-vector " ")))
462 (composition
463 (let ((from (car composition))
464 (to (nth 1 composition))
465 (next (1+ pos))
466 (components (nth 2 composition))
468 (setcar composition
469 (and (< from pos) (buffer-substring from pos)))
470 (setcar (cdr composition)
471 (and (< next to) (buffer-substring next to)))
472 (dotimes (i (length components))
473 (if (integerp (setq ch (aref components i)))
474 (push (cons ch (describe-char-display pos ch))
475 component-chars)))
476 (setq component-chars (nreverse component-chars))
477 (format "composed to form \"%s\" (see below)"
478 (buffer-substring from to))))
480 (let ((display (describe-char-display pos char)))
481 (if (display-graphic-p (selected-frame))
482 (if display
483 (concat
484 "by this font (glyph code)\n"
485 (format " %s (#x%s)"
486 (car display) (cdr display)))
487 "no font available")
488 (if display
489 (format "terminal code %s" display)
490 "not encodable for terminal"))))))
491 ,@(let ((face
492 (if (not (or disp-vector composition))
493 (cond
494 ((and show-trailing-whitespace
495 (save-excursion (goto-char pos)
496 (looking-at "[ \t]+$")))
497 'trailing-whitespace)
498 ((and nobreak-char-display char (eq char '#xa0))
499 'nobreak-space)
500 ((and nobreak-char-display char (eq char '#xad))
501 'escape-glyph)
502 ((and (< char 32) (not (memq char '(9 10))))
503 'escape-glyph)))))
504 (if face (list (list "hardcoded face"
505 `(insert-text-button
506 ,(symbol-name face)
507 'type 'help-face 'help-args '(,face))))))
508 ,@(let ((unicodedata (describe-char-unicode-data char)))
509 (if unicodedata
510 (cons (list "Unicode data" " ") unicodedata)))))
511 (setq max-width (apply #'max (mapcar #'(lambda (x)
512 (if (cadr x) (length (car x)) 0))
513 item-list)))
514 (help-setup-xref nil (interactive-p))
515 (with-help-window (help-buffer)
516 (with-current-buffer standard-output
517 (set-buffer-multibyte multibyte-p)
518 (let ((formatter (format "%%%ds:" max-width)))
519 (dolist (elt item-list)
520 (when (cadr elt)
521 (insert (format formatter (car elt)))
522 (dolist (clm (cdr elt))
523 (if (eq (car-safe clm) 'insert-text-button)
524 (progn (insert " ") (eval clm))
525 (when (>= (+ (current-column)
526 (or (string-match "\n" clm)
527 (string-width clm))
529 (window-width))
530 (insert "\n")
531 (indent-to (1+ max-width)))
532 (insert " " clm)))
533 (insert "\n"))))
535 (when overlays
536 (save-excursion
537 (goto-char (point-min))
538 (re-search-forward "character:[ \t\n]+")
539 (let* ((end (+ (point) (length char-description))))
540 (mapc #'(lambda (props)
541 (let ((o (make-overlay (point) end)))
542 (while props
543 (overlay-put o (car props) (nth 1 props))
544 (setq props (cddr props)))))
545 overlays))))
547 (when disp-vector
548 (insert
549 "\nThe display table entry is displayed by ")
550 (if (display-graphic-p (selected-frame))
551 (progn
552 (insert "these fonts (glyph codes):\n")
553 (dotimes (i (length disp-vector))
554 (insert (glyph-char (car (aref disp-vector i))) ?:
555 (propertize " " 'display '(space :align-to 5))
556 (if (cdr (aref disp-vector i))
557 (format "%s (#x%s)" (cadr (aref disp-vector i))
558 (cddr (aref disp-vector i)))
559 "-- no font --")
560 "\n")
561 (let ((face (glyph-face (car (aref disp-vector i)))))
562 (when face
563 (insert (propertize " " 'display '(space :align-to 5))
564 "face: ")
565 (insert (concat "`" (symbol-name face) "'"))
566 (insert "\n")))))
567 (insert "these terminal codes:\n")
568 (dotimes (i (length disp-vector))
569 (insert (car (aref disp-vector i))
570 (propertize " " 'display '(space :align-to 5))
571 (or (cdr (aref disp-vector i)) "-- not encodable --")
572 "\n"))))
574 (when composition
575 (insert "\nComposed")
576 (if (car composition)
577 (if (cadr composition)
578 (insert " with the surrounding characters \""
579 (car composition) "\" and \""
580 (cadr composition) "\"")
581 (insert " with the preceding character(s) \""
582 (car composition) "\""))
583 (if (cadr composition)
584 (insert " with the following character(s) \""
585 (cadr composition) "\"")))
586 (if (and (vectorp (nth 2 composition))
587 (vectorp (aref (nth 2 composition) 0)))
588 (progn
589 (insert " using this font:\n "
590 (aref (query-font (aref (aref (nth 2 composition) 0) 0))
592 "\nby these glyphs:\n")
593 (mapc (lambda (x) (insert (format " %S\n" x)))
594 (nth 2 composition)))
595 (insert " by the rule:\n\t("
596 (mapconcat (lambda (x)
597 (if (consp x) (format "%S" x)
598 (if (= x ?\t)
599 (single-key-description x)
600 (string ?? x))))
601 (nth 2 composition)
602 " ")
603 ")")
604 (insert "\nThe component character(s) are displayed by ")
605 (if (display-graphic-p (selected-frame))
606 (progn
607 (insert "these fonts (glyph codes):")
608 (dolist (elt component-chars)
609 (if (/= (car elt) ?\t)
610 (insert "\n " (car elt) ?:
611 (propertize " " 'display '(space :align-to 5))
612 (if (cdr elt)
613 (format "%s (#x%s)" (cadr elt) (cddr elt))
614 "-- no font --")))))
615 (insert "these terminal codes:")
616 (dolist (elt component-chars)
617 (insert "\n " (car elt) ":"
618 (propertize " " 'display '(space :align-to 4))
619 (or (cdr elt) "-- not encodable --"))))
620 (insert "\nSee the variable `reference-point-alist' for "
621 "the meaning of the rule.\n")))
623 (insert (if (not describe-char-unidata-list)
624 "\nCharacter code properties are not shown: "
625 "\nCharacter code properties: "))
626 (insert-text-button
627 "customize what to show"
628 'action (lambda (&rest ignore)
629 (customize-variable
630 'describe-char-unidata-list)))
631 (insert "\n")
632 (dolist (elt (if (eq describe-char-unidata-list t)
633 (nreverse (mapcar 'car char-code-property-alist))
634 describe-char-unidata-list))
635 (let ((val (get-char-code-property char elt))
636 description)
637 (when val
638 (setq description (char-code-property-description elt val))
639 (insert (if description
640 (format " %s: %s (%s)\n" elt val description)
641 (format " %s: %s\n" elt val))))))
643 (if text-props-desc (insert text-props-desc))
644 (setq help-xref-stack-item (list 'help-insert-string (buffer-string)))
645 (toggle-read-only 1)))))
647 (define-obsolete-function-alias 'describe-char-after 'describe-char "22.1")
649 (provide 'descr-text)
651 ;; arch-tag: fc55a498-f3e9-4312-b5bd-98cc02480af1
652 ;;; descr-text.el ends here