summaryrefslogtreecommitdiff
path: root/lisp/format.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/format.el')
-rw-r--r--lisp/format.el18
1 files changed, 5 insertions, 13 deletions
diff --git a/lisp/format.el b/lisp/format.el
index 9f109e1aa1e..49d3c718abc 100644
--- a/lisp/format.el
+++ b/lisp/format.el
@@ -84,7 +84,7 @@
iso-sgml2iso iso-iso2sgml t nil)
(rot13 ,(purecopy "rot13")
nil
- ,(purecopy "tr a-mn-z n-za-m") ,(purecopy "tr a-mn-z n-za-m") t nil)
+ rot13-region rot13-region t nil)
(duden ,(purecopy "Duden Ersatzdarstellung")
nil
,(purecopy "diac") iso-iso2duden t nil)
@@ -539,13 +539,7 @@ Compare using `equal'."
(setq tail next)))
(cons acopy bcopy)))
-(defun format-proper-list-p (list)
- "Return t if LIST is a proper list.
-A proper list is a list ending with a nil cdr, not with an atom "
- (when (listp list)
- (while (consp list)
- (setq list (cdr list)))
- (null list)))
+(define-obsolete-function-alias 'format-proper-list-p 'proper-list-p "27.1")
(defun format-reorder (items order)
"Arrange ITEMS to follow partial ORDER.
@@ -1005,12 +999,10 @@ either strings, or lists of the form (PARAMETER VALUE)."
;; If either old or new is a list, have to treat both that way.
(if (and (or (listp old) (listp new))
(not (get prop 'format-list-atomic-p)))
- (if (or (not (format-proper-list-p old))
- (not (format-proper-list-p new)))
+ (if (not (and (proper-list-p old)
+ (proper-list-p new)))
(format-annotate-atomic-property-change prop-alist old new)
- (let* ((old (if (listp old) old (list old)))
- (new (if (listp new) new (list new)))
- close open)
+ (let (close open)
(while old
(setq close
(append (car (format-annotate-atomic-property-change