Subject: Re: bug#12314: 24.2.50; `add-to-history': use `setq' with `delete'

From: Eli Zaretskii <[email-masked]>
Date: Sat, 08 Sep 2012 17:43:53 +0300

> From: Chong Yidong <[email-masked]>
> Date: Sat, 08 Sep 2012 22:32:13 +0800
> Cc: [email-masked]
> 
> "Drew Adams" <[email-masked]> writes:
> 
> > This line in `add-to-history':
> >  
> > (if history-delete-duplicates (delete newelt history))
> >  
> > should be this:
> >  
> > (if history-delete-duplicates (setq history (delete newelt history)))
> 
> Fixed, thanks.

Does this mean the ELisp manual is in error?  It says:

 -- Function: delete object sequence
     If `sequence' is a list, this function destructively removes all
     elements `equal' to OBJECT from SEQUENCE.
     ...
     If `sequence' is a vector or string, `delete' returns a copy of
     `sequence' with all elements `equal' to `object' removed.

'history' is a list, isn't it?