|
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 |
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.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
-- ,Doug d.lewan2000@gmail.com (908) 720 7908 If this is what winning looks like, I'd hate to see what losing is.
[Prev in Thread] | Current Thread | [Next in Thread] |