Fix docstring of `remq'

* lisp/subr.el (remq): Fix docstring.

Fixes: debbugs:18253
This commit is contained in:
Christoph Scholtes 2014-08-24 21:16:36 -06:00
parent f71da8959a
commit d74553559b
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2014-08-25 Christoph Scholtes <cschol2112@gmail.com>
* subr.el (remq): Fix docstring (Bug#18253).
2014-08-25 Christoph Scholtes <cschol2112@gmail.com>
* replace.el (query-replace): Fix typo in docstring (Bug#18320).

View file

@ -565,7 +565,7 @@ SEQ must be a list, vector, or string. The comparison is done with `equal'."
(delete elt (copy-sequence seq))))
(defun remq (elt list)
"Return LIST with all occurrences of ELT removed.
"Return a copy of 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 (and (eq elt (car list)) (setq list (cdr list))))