Mosè Giordano <[email protected]> writes:

> `pushnew' can't append to variables, but my understanding is that it's
> safer than `add-to-list' when it comes to let-bound variables (can
> someone please confirm this?),

Yes, `add-to-list' should not be used on locals:

,----[ C-h f add-to-list RET ]
| add-to-list is a compiled Lisp function in ‘subr.el’.
| 
| (add-to-list LIST-VAR ELEMENT &optional APPEND COMPARE-FN)
| 
| [...]
| 
| This is handy to add some elements to configuration variables,
| but please do not abuse it in Elisp code, where you are usually
| better off using ‘push’ or ‘cl-pushnew’.
| 
| [...]
`----

Bye,
Tassilo


_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to