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: Thu, 2 Jul 2020 11:59:57 -0400 Message-ID: References: <8270ebe2-8e9d-2bf9-fa1c-b6e968aabe5a@gmail.com> <87wo3m9csw.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36752"; 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: Joost Kremers , 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 18:29:22 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 1jr25R-0009Rb-VG for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 18:29:21 +0200 Original-Received: from localhost ([::1]:36192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jr25R-0007YF-1m for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 12:29:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jr1de-0000n2-0J for help-gnu-emacs@gnu.org; Thu, 02 Jul 2020 12:00:38 -0400 Original-Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:34050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jr1dZ-0008Ki-L0 for help-gnu-emacs@gnu.org; Thu, 02 Jul 2020 12:00:37 -0400 Original-Received: by mail-pg1-x52e.google.com with SMTP id t6so13690388pgq.1 for ; Thu, 02 Jul 2020 09:00:31 -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=iWHRgnL+SykW5EsLIAcCryNXcVp63WSM/6oiLkQn7hM=; b=J0MyooKnwVqDTS+qxcFtl+ora0D9fnPa2gQ2vLtwIspC4ZiyvdPxtL8OecjKwblgJM 5x52JjMBrqhDaOsH31yAtaiKKHFOMxEUPiLTIR0oncp7OXsIcHWbJOHH3DFahG3zjWEq NNIIgx+ONUY5u1yaz3HGks11zylQr0nEecieNXZ7e6zxWUUGw5/koKZ9909ZqSQt9CTL enmW2cMZMNTX4lT12/EobgUqsAoEUmdia713aEWfWD7XWkxc/J1wMZyry5fU/Si2D+PE Vs2QP4A2N4enHDziMaKNGHdoQlg/yQLLz5RKQokY2UO/lDAyEJIEJYjchkvPg3Cl5RLX oLkg== 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=iWHRgnL+SykW5EsLIAcCryNXcVp63WSM/6oiLkQn7hM=; b=XgCIqKNO4PtVVuT55ZfPhClf3O20cVfWRkK+5Qv1RF7n1GB/3vrj8BH3UmkK2hy9Cx NqHiyCIsqg33UVqcfzvd0ias39TWs1fN/pEhuKNG9LQaZoPMbF3iO8pMd9wpoBOnkDU+ Z4pCRRas1d9ctzC52pE8WRWfdDPENUEjo9Dz+ey4ZNuNMLxSlN2knHB4L39lWy1jJAKG XUoDOElUtVj2seByNIPKulzp15ED5heD2mYsP450u4+GZgJHkZEnHOcvNok70ulEVwmm R4cM9gCh9LNw3LEilIuIHpA1mv7oNqoRujtQbqgYLRSTrP8p7Ngy4PDZDa/1E9lufP9u 2LVQ== X-Gm-Message-State: AOAM531Ru+KjS0q/uSNN94DNKq2lKzpzUTpY34oRhoG8kBjOxhLfDci9 L/dl7egAcuzIeylGwNSdiL8t30g= X-Google-Smtp-Source: ABdhPJzDcEe4wtvJ+gkmQ/5BCMY2P9hz7jy5mYF4gefW3OG9hQ4w+m8/uwffHrGssGYVHGxhuMXOVg== X-Received: by 2002:aa7:91d4:: with SMTP id z20mr27562457pfa.153.1593705629870; Thu, 02 Jul 2020 09:00:29 -0700 (PDT) Original-Received: from [192.168.43.104] ([172.58.236.9]) by smtp.gmail.com with ESMTPSA id 64sm9949944pgb.63.2020.07.02.09.00.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2020 09:00:28 -0700 (PDT) In-Reply-To: <87wo3m9csw.fsf@fastmail.fm> Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=d.lewan2000@gmail.com; helo=mail-pg1-x52e.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:123473 Archived-At: On 7/2/20 11:06 AM, Joost Kremers wrote: > > 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")? I do have other things in the local variables, but that suggestion prompted me to try this in emacs -Q where I do see the above error.  I'll try again in a clean emacs. Now I have to wonder just how dirty I've made emacs.... Thanks for the prompt. -- ,Doug d.lewan2000@gmail.com (908) 720 7908 If this is what winning looks like, I'd hate to see what losing is.