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: Fri, 3 Jul 2020 01:13:39 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 7/2/20 11:45 PM, Emanuel Berg via Users list for the GNU Emacs text editor wrote:
Douglas Lewan wrote:

you should be verifying that the
(find-file-noselect) succeeded.
BTW, how do you verify that?

   (when (find-file-noselect "~/.emacs") t) ; t

but also

   (when (find-file-noselect "~/there-is-no-file") t) ; t
Good question. Maybe it can't fail. I've certainly worked in other worlds where such cases exist. I imagine that (find-file-noselect nil) would not behave well, but in that situation you probably should have caught the nil first.

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