[Top][All Lists]

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

wrong type error in local variables

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

I have a TeX file with the following local variables:

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

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.

(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]