[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] [PATCH] A fix for longtable and a new style
From: |
Tassilo Horn |
Subject: |
Re: [AUCTeX-devel] [PATCH] A fix for longtable and a new style |
Date: |
Mon, 28 Sep 2015 08:40:47 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
Mosè Giordano <address@hidden> 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