[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
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.
--
,Doug
d.lewan2000@gmail.com
(908) 720 7908
If this is what winning looks like, I'd hate to see what losing is.
- wrong type error in local variables,
Douglas Lewan <=
- Re: wrong type error in local variables, Joost Kremers, 2020/07/02
- Re: wrong type error in local variables, Stefan Monnier, 2020/07/02
- Re: wrong type error in local variables, Emanuel Berg, 2020/07/02
- Re: wrong type error in local variables, Stefan Monnier, 2020/07/02
- Re: wrong type error in local variables, Emanuel Berg, 2020/07/02
- Re: wrong type error in local variables, Douglas Lewan, 2020/07/02
- Re: wrong type error in local variables, Emanuel Berg, 2020/07/02