help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: wrong type error in local variables


From: Douglas Lewan
Subject: Re: wrong type error in local variables
Date: Thu, 2 Jul 2020 11:59:57 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 7/2/20 11:06 AM, Joost Kremers wrote:

On Thu, Jul 02 2020, Douglas Lewan wrote:
I have a TeX file with the following local variables:

     Local Variables:
     eval: (ab-new-buffer (prog1 (find-file "chapter16.tex")      (message "After find file.")))
     End:

The (find-file) succeeds. (There's a buffer with that file and I see the message.) However, overall I get this error:

     File local-variables error: (wrong-type-argument stringp      nil)

I assume the call to (ab-new-buffer) gets the error, but as far as I can tell that call never happens. (ab-new-buffer) has the following definition:

     (defun ab-new-buffer (buffer-or-name)
       (error "Now in (ab-new-buffer)."))

I never see that error.
What am I missing?

FYI The data above are obviously reduced to a minimal case. With the correct definition of (ab-new-buffer) a full battery of tests passes.

Seems to work fine for me. Are you sure you have nothing else in your local variables block? And what about the local variables block of the file you're finding in your local variables block (i.e., "chapter16.tex")?

I do have other things in the local variables, but that suggestion prompted me to try this in emacs -Q where I do see the above error.  I'll try again in a clean emacs.

Now I have to wonder just how dirty I've made emacs....

Thanks for the prompt.

--
,Doug
d.lewan2000@gmail.com
(908) 720 7908

If this is what winning looks like, I'd hate to see what losing is.




reply via email to

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