mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Some more flatten-tree aliases
* lisp/allout.el (allout-flatten): * lisp/progmodes/hideif.el (hif-flatten): Now an obsolete alias for flatten-tree. All callers changed. * lisp/org/org-protocol.el (org-protocol-flatten): Make it an alias for flatten-tree if available. * lisp/progmodes/js.el (js--flatten-list): Remove alias. We shouldn’t need obsolete function aliases for private functions.
This commit is contained in:
parent
a5995a326d
commit
ef144113f3
4 changed files with 14 additions and 25 deletions
|
|
@ -4351,7 +4351,7 @@ subtopics into siblings of the item."
|
|||
(let ((children-chart (allout-chart-subtree 1)))
|
||||
(if (listp (car children-chart))
|
||||
;; whoops:
|
||||
(setq children-chart (allout-flatten children-chart)))
|
||||
(setq children-chart (flatten-tree children-chart)))
|
||||
(save-excursion
|
||||
(dolist (child-point children-chart)
|
||||
(goto-char child-point)
|
||||
|
|
@ -6547,14 +6547,7 @@ If BEG is bigger than END we return 0."
|
|||
(apply 'concat
|
||||
(mapcar (lambda (char) (if (= char ?%) "%%" (char-to-string char)))
|
||||
string)))
|
||||
;;;_ : lists
|
||||
;;;_ > allout-flatten (list)
|
||||
(defun allout-flatten (list)
|
||||
"Return a list of all atoms in list."
|
||||
;; classic.
|
||||
(cond ((null list) nil)
|
||||
((atom (car list)) (cons (car list) (allout-flatten (cdr list))))
|
||||
(t (append (allout-flatten (car list)) (allout-flatten (cdr list))))))
|
||||
(define-obsolete-function-alias 'allout-flatten #'flatten-tree "27.1")
|
||||
;;;_ : Compatibility:
|
||||
;;;_ : xemacs undo-in-progress provision:
|
||||
(unless (boundp 'undo-in-progress)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue