[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] [culprit]

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] [culprit]
Date: Sun, 08 Mar 2015 20:54:02 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Uwe Brauer <address@hidden> writes:

> The only thing I can think of might be 
> (add-to-list 'path file t)

Using `add-to-list' on locals is discouraged in GNU Emacs, too, so I've
replaced it with `pushnew' / `nreverse'.

,----[ 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 function has a compiler macro `add-to-list--anon-cmacro'.
| [...]
| 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'.
| [...]


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]