Commit 7f9b7c53 authored by Glenn Morris's avatar Glenn Morris

* lisp/subr.el (remq): Handle the empty list. (Bug#9024)

parent af66a2d7
2011-07-09 Glenn Morris <rgm@gnu.org>
* subr.el (remq): Handle the empty list. (Bug#9024)
2011-07-08 Andreas Schwab <schwab@linux-m68k.org>
* mail/sendmail.el (send-mail-function): No longer delay custom
......
......@@ -490,7 +490,7 @@ SEQ must be a list, vector, or string. The comparison is done with `equal'."
"Return LIST with all occurrences of ELT removed.
The comparison is done with `eq'. Contrary to `delq', this does not use
side-effects, and the argument LIST is not modified."
(while (eq elt (car list)) (setq list (cdr list)))
(while (and (eq elt (car list)) (setq list (cdr list))))
(if (memq elt list)
(delq elt (copy-sequence list))
list))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment