auctex
[Top][All Lists]
Advanced

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

Re: wrong-type-argument stringp nil


From: Tassilo Horn
Subject: Re: wrong-type-argument stringp nil
Date: Thu, 21 Jan 2021 07:57:11 +0100
User-agent: mu4e 1.5.7; emacs 28.0.50

Ikumi Keita <ikumi@ikumi.que.jp> 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

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