diff options
| author | Pavel Janík | 2002-01-06 11:37:36 +0000 |
|---|---|---|
| committer | Pavel Janík | 2002-01-06 11:37:36 +0000 |
| commit | 687a9f309a2a1c319d063399532af87e8f58d6fc (patch) | |
| tree | d9148cc64cbb03543d47ee55aa97990ab9af3b8e | |
| parent | a00e9335a46b823fc4dc37807876ae381e64dd08 (diff) | |
| download | emacs-687a9f309a2a1c319d063399532af87e8f58d6fc.tar.gz emacs-687a9f309a2a1c319d063399532af87e8f58d6fc.zip | |
(enriched-make-annotation): Fix the change from 2002-01-05.
(enriched-handle-display-prop): Return proper values.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/enriched.el | 15 |
2 files changed, 11 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1ba740b9354..7b55a7eb46b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2002-01-06 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 1 | 2002-01-06 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 2 | 2 | ||
| 3 | * enriched.el (enriched-make-annotation): Fix the change from | ||
| 4 | 2002-01-05. | ||
| 5 | (enriched-handle-display-prop): Return proper values. | ||
| 6 | |||
| 3 | * net/eudcb-ldap.el (eudc-attribute-display-method-alist): Use | 7 | * net/eudcb-ldap.el (eudc-attribute-display-method-alist): Use |
| 4 | proper attribute name labeledUri instead of deprecated labeledUrl. | 8 | proper attribute name labeledUri instead of deprecated labeledUrl. |
| 5 | 9 | ||
diff --git a/lisp/enriched.el b/lisp/enriched.el index d3bd7084d15..74258e60941 100644 --- a/lisp/enriched.el +++ b/lisp/enriched.el | |||
| @@ -315,16 +315,16 @@ the region, and the START and END of each region." | |||
| 315 | INTERNAL-ANN may be a string, for a flag, or a list of the form (PARAM VALUE). | 315 | INTERNAL-ANN may be a string, for a flag, or a list of the form (PARAM VALUE). |
| 316 | If POSITIVE is non-nil, this is the opening annotation; | 316 | If POSITIVE is non-nil, this is the opening annotation; |
| 317 | if nil, the matching close." | 317 | if nil, the matching close." |
| 318 | (cond ((stringp name) | 318 | (cond ((stringp internal-ann) |
| 319 | (format enriched-annotation-format (if positive "" "/") name)) | 319 | (format enriched-annotation-format (if positive "" "/") internal-ann)) |
| 320 | ;; Otherwise it is an annotation with parameters, represented as a list | 320 | ;; Otherwise it is an annotation with parameters, represented as a list |
| 321 | (positive | 321 | (positive |
| 322 | (let ((item (car name)) | 322 | (let ((item (car internal-ann)) |
| 323 | (params (cdr name))) | 323 | (params (cdr internal-ann))) |
| 324 | (concat (format enriched-annotation-format "" item) | 324 | (concat (format enriched-annotation-format "" item) |
| 325 | (mapconcat (lambda (i) (concat "<param>" i "</param>")) | 325 | (mapconcat (lambda (i) (concat "<param>" i "</param>")) |
| 326 | params "")))) | 326 | params "")))) |
| 327 | (t (format enriched-annotation-format "/" (car name))))) | 327 | (t (format enriched-annotation-format "/" (car internal-ann))))) |
| 328 | 328 | ||
| 329 | (defun enriched-encode-other-face (old new) | 329 | (defun enriched-encode-other-face (old new) |
| 330 | "Generate annotations for random face change. | 330 | "Generate annotations for random face change. |
| @@ -465,9 +465,8 @@ has the form `(ANNOTATION PARAM ...)'." | |||
| 465 | (let ((annotation "x-display") | 465 | (let ((annotation "x-display") |
| 466 | (param (prin1-to-string (or old new)))) | 466 | (param (prin1-to-string (or old new)))) |
| 467 | (if (null old) | 467 | (if (null old) |
| 468 | (list nil (list annotation param)) | 468 | (cons nil (list (list annotation param))) |
| 469 | (list (list annotation param))))) | 469 | (cons (list (list annotation param)) nil)))) |
| 470 | |||
| 471 | 470 | ||
| 472 | (defun enriched-decode-display-prop (start end &optional param) | 471 | (defun enriched-decode-display-prop (start end &optional param) |
| 473 | "Decode a `display' property for text between START and END. | 472 | "Decode a `display' property for text between START and END. |