Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
296ba3ee
Commit
296ba3ee
authored
Jul 12, 2011
by
Lars Magne Ingebrigtsen
Browse files
Remove `remove-duplicates', since `delete-dups' is sufficient.
parent
71e0ea13
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/dired-x.el
lisp/dired-x.el
+1
-1
lisp/subr.el
lisp/subr.el
+1
-10
No files found.
lisp/ChangeLog
View file @
296ba3ee
2011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* subr.el (remove-duplicates): Remove; `delete-dups' is sufficient.
* dired-x.el (dired-guess-default): Use `delete-dups'.
2011-07-12 Chong Yidong <cyd@stupidchicken.com>
* dired.el (dired-mark-prompt):
...
...
lisp/dired-x.el
View file @
296ba3ee
...
...
@@ -1103,7 +1103,7 @@ See `dired-guess-shell-alist-user'."
;; Return commands or nil if flist is still non-nil.
;; Evaluate the commands in order that any logical testing will be done.
(if (cdr cmds)
(
remove-duplicate
s (mapcar #'eval cmds))
(
delete-dup
s (mapcar #'eval cmds))
(eval (car cmds))))) ; single command
(defun dired-guess-shell-command (prompt files)
...
...
lisp/subr.el
View file @
296ba3ee
...
...
@@ -173,7 +173,7 @@ value of last one, or nil if there are none.
(progn
;; If we reload subr.el after having loaded CL, be careful not to
;; overwrite CL's extended definition of `dolist', `dotimes',
;; `declare', `push'
, `pop' and `remove-duplicates
'.
;; `declare', `push'
and `pop
'.
(defmacro dolist (spec &rest body)
"Loop over a list.
...
...
@@ -250,15 +250,6 @@ the return value (nil if RESULT is omitted).
Treated as a declaration when used at the right place in a
`defmacro' form. \(See Info anchor `(elisp)Definition of declare'.)"
nil)
(defun remove-duplicates (list)
"Return a copy of LIST with all duplicate elements removed."
(let ((result nil))
(while list
(unless (member (car list) result)
(push (car list) result))
(pop list))
(nreverse result)))
))
(defmacro ignore-errors (&rest body)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment