Ikumi Keita <[email protected]> writes:

Hi Ikumi,

>> -  (set (make-local-variable 'TeX-auto-full-regexp-list)
>> -       (append LaTeX-auto-regexp-list plain-TeX-auto-regexp-list))
>> +  (setq-local TeX-auto-full-regexp-list
>> +              (delete-dups (append LaTeX-auto-regexp-list
>> +                                   plain-TeX-auto-regexp-list)))
>
> As discussed previously[1], `delete-dups'+`append' can be dangerous as
> they may truncate list variable inadvertently.

Oh, I wasn't aware or already forgot!

> Though I think this particular case is unlikely to suffer from such
> truncation, I'd propse to install the attached defensive code. What do
> you think about this?

Yes, please do so.

Bye,
Tassilo

Reply via email to