2002-01-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+ * enriched.el (enriched-make-annotation): Fix the change from
+ 2002-01-05.
+ (enriched-handle-display-prop): Return proper values.
+
* net/eudcb-ldap.el (eudc-attribute-display-method-alist): Use
proper attribute name labeledUri instead of deprecated labeledUrl.
INTERNAL-ANN may be a string, for a flag, or a list of the form (PARAM VALUE).
If POSITIVE is non-nil, this is the opening annotation;
if nil, the matching close."
- (cond ((stringp name)
- (format enriched-annotation-format (if positive "" "/") name))
+ (cond ((stringp internal-ann)
+ (format enriched-annotation-format (if positive "" "/") internal-ann))
;; Otherwise it is an annotation with parameters, represented as a list
(positive
- (let ((item (car name))
- (params (cdr name)))
+ (let ((item (car internal-ann))
+ (params (cdr internal-ann)))
(concat (format enriched-annotation-format "" item)
(mapconcat (lambda (i) (concat "<param>" i "</param>"))
params ""))))
- (t (format enriched-annotation-format "/" (car name)))))
+ (t (format enriched-annotation-format "/" (car internal-ann)))))
(defun enriched-encode-other-face (old new)
"Generate annotations for random face change.
(let ((annotation "x-display")
(param (prin1-to-string (or old new))))
(if (null old)
- (list nil (list annotation param))
- (list (list annotation param)))))
-
+ (cons nil (list (list annotation param)))
+ (cons (list (list annotation param)) nil))))
(defun enriched-decode-display-prop (start end &optional param)
"Decode a `display' property for text between START and END.