From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: wrong type error in local variables Date: Thu, 02 Jul 2020 17:06:23 +0200 Message-ID: <87wo3m9csw.fsf@fastmail.fm> References: <8270ebe2-8e9d-2bf9-fa1c-b6e968aabe5a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26978"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.3; emacs 27.0.91 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 02 17:06:54 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 1jr0nd-0006uL-Sj for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 17:06:53 +0200 Original-Received: from localhost ([::1]:53974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jr0nc-0005wM-Ul for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 11:06:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jr0nG-0005uL-8k for help-gnu-emacs@gnu.org; Thu, 02 Jul 2020 11:06:30 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:43281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jr0nE-0000xf-AH for help-gnu-emacs@gnu.org; Thu, 02 Jul 2020 11:06:29 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D7A1A5C006C for ; Thu, 2 Jul 2020 11:06:25 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 02 Jul 2020 11:06:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm3; bh=/kU8f+4Ko7ylsDKB/GYHpYR0r3 oDqDYl6FxFejR+zqo=; b=d1kY3hwIM0Lih3zCg4h0j+PoHX9TrYCrQW0nUkyOd0 TOiC0clynkcV1nXBFlT6MhxG61DJfqUX9WnWjHmMSIfGWki5gsWr7lLcxKl+KZX8 wZKtpSObVrwFUyAnR7Al259f0GF/L5JyWe342Fo8ObsTl5uuwreHtf03isXe5gtb vf9pUfMqYpeKp+PprsK/HJqFBYpXFOrgKmGoswU7UgNSO5YW1uy7jq09aBdlimCo oeo7o/M+EOfQsutgqqD3enK/mU83SqErnSGEpUEipAYdZtAeuAIqm2GWJM9fT63K 5lQJIrGA5ociWtMDAV1gB9ti2OkRtjICzsEUdklxz+IQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=/kU8f+ 4Ko7ylsDKB/GYHpYR0r3oDqDYl6FxFejR+zqo=; b=LMiY8eS4fR7lrtpeJi7AXb EEkpWJ1QG0FWHPYBCLzGKToWDFQZMeJtrk9fYdQ0tFKXpnG5wzgDlSNAc+9AwySd HH34V8SYmRipFOik5DNeYYRHlim/BRZ+JZubuCJyhWVB+6zQ/8ObLoeYV2AXj34F SRuSzuMhwCkqZ2hTH0v5gBbCrV+g5kDQUac5DMYLBuaxqFxwDq5L6hmvWEQFUmEn AkAZqxciYOsaTV7SKqI5UcYmplsFWIi0QMHFhDi+LnrLo/0MJVK8WeGVgKZb0NiF TpaQUBLmWaE+C8kFLGl70SdpOJVvCS7U8z41sVu9JUa/sF53tmNX2xVyFaaSh9fA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtdeggdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufgjfffkgggtsehttdertd dtredtnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgv rhhssehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpefhudffuefhudelhf fgleeukeegudevtedtudduhfefteeugedvvedtuddugffffeenucfkphepleehrdeltddr vddtuddriedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Lenovo.fastmail.com (ip5f5ac93e.dynamic.kabel-deutschland.de [95.90.201.62]) by mail.messagingengine.com (Postfix) with ESMTPA id 5DAD3306006E for ; Thu, 2 Jul 2020 11:06:25 -0400 (EDT) In-reply-to: <8270ebe2-8e9d-2bf9-fa1c-b6e968aabe5a@gmail.com> Received-SPF: pass client-ip=66.111.4.27; envelope-from=joostkremers@fastmail.fm; helo=out3-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/02 11:06:25 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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:123471 Archived-At: On Thu, Jul 02 2020, Douglas Lewan wrote: > 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. Seems to work fine for me. Are you sure you have nothing else in your local variables block? And what about the local variables block of the file you're finding in your local variables block (i.e., "chapter16.tex")? Try setting `debug-on-error` (do `M-x toggle-debug-on-error`) and then open the file. You should then get a backtrace that may provide more information. If you don't know what to make of it, post it here. HTH -- Joost Kremers Life has its moments