diff options
| author | Richard M. Stallman | 2002-06-10 09:04:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-06-10 09:04:34 +0000 |
| commit | 658397fbde3b8d52d7482ae62b77e5bbb21e7d6d (patch) | |
| tree | 9dabac9c1ae1afbfd399606129da9e7eb97e45ff /lisp | |
| parent | efbddb8e15e38b64460216dbef17208b5660d414 (diff) | |
| download | emacs-658397fbde3b8d52d7482ae62b77e5bbb21e7d6d.tar.gz emacs-658397fbde3b8d52d7482ae62b77e5bbb21e7d6d.zip | |
(ebrowse-draw-tree-fn): Use copy-sequence.
(ebrowse-copy-list): Function deleted.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/progmodes/ebrowse.el | 9 |
2 files changed, 20 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cd4ccd1e490..8266110e17c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2002-06-10 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/ebrowse.el (ebrowse-draw-tree-fn): Use copy-sequence. | ||
| 4 | (ebrowse-copy-list): Function deleted. | ||
| 5 | |||
| 6 | * eshell/em-unix.el (eshell/diff): Use copy-sequence. | ||
| 7 | |||
| 8 | * eshell/esh-mode.el (eshell-mode, eshell-mode): Use copy-sequence. | ||
| 9 | |||
| 10 | * eshell/esh-util.el (eshell-copy-list): Function deleted. | ||
| 11 | (eshell-sublist): Use copy-sequence. | ||
| 12 | (eshell-copy-tree): Make it an alias for copy-tree. | ||
| 13 | |||
| 14 | * emacs-lisp/cl.el (copy-list): Moved back from subr.el. | ||
| 15 | |||
| 16 | * subr.el (copy-list): Moved to cl.el. | ||
| 17 | (copy-tree): Don't use copy-list or cl-pop. | ||
| 18 | |||
| 1 | 2002-06-10 Miles Bader <miles@gnu.org> | 19 | 2002-06-10 Miles Bader <miles@gnu.org> |
| 2 | 20 | ||
| 3 | Make comint use text properties for highlighting instead of overlays: | 21 | Make comint use text properties for highlighting instead of overlays: |
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el index 796595e5d39..db49b9bce20 100644 --- a/lisp/progmodes/ebrowse.el +++ b/lisp/progmodes/ebrowse.el | |||
| @@ -255,11 +255,6 @@ This is a destructive operation." | |||
| 255 | result)) | 255 | result)) |
| 256 | 256 | ||
| 257 | 257 | ||
| 258 | (defun ebrowse-copy-list (list) | ||
| 259 | "Return a shallow copy of LIST." | ||
| 260 | (apply #'list list)) | ||
| 261 | |||
| 262 | |||
| 263 | (defmacro ebrowse-output (&rest body) | 258 | (defmacro ebrowse-output (&rest body) |
| 264 | "Eval BODY with a writable current buffer. | 259 | "Eval BODY with a writable current buffer. |
| 265 | Preserve buffer's modified state." | 260 | Preserve buffer's modified state." |
| @@ -1836,7 +1831,7 @@ TREE denotes the class shown." | |||
| 1836 | "Display a single class and recursively it's subclasses. | 1831 | "Display a single class and recursively it's subclasses. |
| 1837 | This function may look weird, but this is faster than recursion." | 1832 | This function may look weird, but this is faster than recursion." |
| 1838 | (setq stack1 (make-list (length ebrowse--tree) 0) | 1833 | (setq stack1 (make-list (length ebrowse--tree) 0) |
| 1839 | stack2 (ebrowse-copy-list ebrowse--tree)) | 1834 | stack2 (copy-sequence ebrowse--tree)) |
| 1840 | (loop while stack2 | 1835 | (loop while stack2 |
| 1841 | as level = (pop stack1) | 1836 | as level = (pop stack1) |
| 1842 | as tree = (pop stack2) | 1837 | as tree = (pop stack2) |
| @@ -1879,7 +1874,7 @@ This function may look weird, but this is faster than recursion." | |||
| 1879 | ;; Push subclasses, if any. | 1874 | ;; Push subclasses, if any. |
| 1880 | (when (ebrowse-ts-subclasses tree) | 1875 | (when (ebrowse-ts-subclasses tree) |
| 1881 | (setq stack2 | 1876 | (setq stack2 |
| 1882 | (nconc (ebrowse-copy-list (ebrowse-ts-subclasses tree)) stack2) | 1877 | (nconc (copy-sequence (ebrowse-ts-subclasses tree)) stack2) |
| 1883 | stack1 | 1878 | stack1 |
| 1884 | (nconc (make-list (length (ebrowse-ts-subclasses tree)) | 1879 | (nconc (make-list (length (ebrowse-ts-subclasses tree)) |
| 1885 | (1+ level)) stack1))))) | 1880 | (1+ level)) stack1))))) |