[Top][All Lists]

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

Re: wrong type error in local variables

From: Emanuel Berg
Subject: Re: wrong type error in local variables
Date: Fri, 03 Jul 2020 08:05:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

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

find-file-noselect: Wrong type argument: stringp, nil

underground experts united

reply via email to

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