diff options
Diffstat (limited to 'lisp/format.el')
| -rw-r--r-- | lisp/format.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/format.el b/lisp/format.el index 6fab2a3e725..77b46860c1f 100644 --- a/lisp/format.el +++ b/lisp/format.el | |||
| @@ -502,6 +502,10 @@ ORDER. Unmatched items will go last." | |||
| 502 | ; See format-deannotate-region and | 502 | ; See format-deannotate-region and |
| 503 | ; format-annotate-region. | 503 | ; format-annotate-region. |
| 504 | 504 | ||
| 505 | ;; This text property has list values, but they are treated atomically. | ||
| 506 | |||
| 507 | (put 'display 'format-list-atomic-p t) | ||
| 508 | |||
| 505 | ;;; | 509 | ;;; |
| 506 | ;;; Decoding | 510 | ;;; Decoding |
| 507 | ;;; | 511 | ;;; |
| @@ -921,7 +925,8 @@ Annotations to open and to close are returned as a dotted pair." | |||
| 921 | (if (not prop-alist) | 925 | (if (not prop-alist) |
| 922 | nil | 926 | nil |
| 923 | ;; If either old or new is a list, have to treat both that way. | 927 | ;; If either old or new is a list, have to treat both that way. |
| 924 | (if (or (consp old) (consp new)) | 928 | (if (and (or (consp old) (consp new)) |
| 929 | (not (get prop 'format-list-atomic-p))) | ||
| 925 | (let* ((old (if (listp old) old (list old))) | 930 | (let* ((old (if (listp old) old (list old))) |
| 926 | (new (if (listp new) new (list new))) | 931 | (new (if (listp new) new (list new))) |
| 927 | (tail (format-common-tail old new)) | 932 | (tail (format-common-tail old new)) |