From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Douglas Lewan Newsgroups: gmane.emacs.help Subject: Re: wrong type error in local variables Date: Fri, 3 Jul 2020 01:13:39 -0400 Message-ID: References: <8270ebe2-8e9d-2bf9-fa1c-b6e968aabe5a@gmail.com> <878sg1ri0f.fsf@ebih.ebihd> <877dvlpf83.fsf@ebih.ebihd> <7fa40d4a-f713-9771-a7ed-8cb83e24bf59@gmail.com> <87o8oxntvw.fsf@ebih.ebihd> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20445"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 03 07:14:04 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jrE1T-0005EA-T9 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Jul 2020 07:14:03 +0200 Original-Received: from localhost ([::1]:51506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrE1S-0003l6-VK for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Jul 2020 01:14:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrE1A-0003kz-Qq for help-gnu-emacs@gnu.org; Fri, 03 Jul 2020 01:13:44 -0400 Original-Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]:45917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jrE19-0002S8-AE for help-gnu-emacs@gnu.org; Fri, 03 Jul 2020 01:13:44 -0400 Original-Received: by mail-qv1-xf34.google.com with SMTP id u8so13764332qvj.12 for ; Thu, 02 Jul 2020 22:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=VE29Idyylom5eClDot4yZ9InPkWhO4eENWeA+v3XHLs=; b=RxWK35aBJmshe/3/Nfws0jTq8orOLIy6+91VigqZV4XiLtNQbko2fBzUuO/ZNeXV+F BJCIj4+rSP36yjNhHrgf4JYx7Kal+xPBnwnnQ65jnO3Eukyx0RibrqrAAGIV0b1oZDpL YMSAnTFAKWhQa9FxYxj+YB/K6QdhFamm1hAew9DHZiTGh4un5d7gLnAGMgc5R3PFr+MI P+p48dfdIHLHVUn6yikMDZt/v+u4Smru6iLDB28UipQuG3TTnefNl8OcnMRXiIiH6nkw PFSV1uGmllHZ7AfKAGyX6wZuPnDm/cBbs5KmTuoe9G7exgE/EhJ8wvslGfcBZY66+v7R QWrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=VE29Idyylom5eClDot4yZ9InPkWhO4eENWeA+v3XHLs=; b=WFe+qORtUXCIsgtdA5OqpSehoVmw4ZIXqiqImPB3tGrBFE/RcmHsb5fLqaUeDEkEJC ZGfo3Y4TjlwhZdfcVXviSHLOnN5PBuNvA5Mihtmr5C+kDYWkA95709cl/0jkRnCqUcpS WZdtNzC5Lky7guwR4uijWt/c9+/k08mS4bkHjXbcYPzgK8IZT8hOBr2XSxu7hDwK4hjU Ba3O3uABCpUnm+C+scNaXeCZtioZCUHoxrZgQ9NCKWQEI95jjD1Nvwx05NO53fE7evTI iRzihXuNMAseoZxqaHvQ8u9ROUGre8HbwB2E2shO2GCF0UdG/fFIX1E3/BVZjLseaXVP +wsA== X-Gm-Message-State: AOAM531V5Fn4PF9jzcA56HxAaaC5wVzWX6ZCkqHMG0QQUkpr1dbSVZ1l 8mK2EUR3i5cfb35o4M0giqVCsdA= X-Google-Smtp-Source: ABdhPJwazH9Wufva+8o9IMqP5n7g88rTCAAsnHY4mx6DruqM4O95PHGukJ4SJwBNxVmkBKFbCi7CTA== X-Received: by 2002:a0c:f0c8:: with SMTP id d8mr34182134qvl.217.1593753222057; Thu, 02 Jul 2020 22:13:42 -0700 (PDT) Original-Received: from [192.168.43.104] ([172.58.236.18]) by smtp.gmail.com with ESMTPSA id s8sm10458651qtc.17.2020.07.02.22.13.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2020 22:13:41 -0700 (PDT) In-Reply-To: <87o8oxntvw.fsf@ebih.ebihd> Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=d.lewan2000@gmail.com; helo=mail-qv1-xf34.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123486 Archived-At: 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.