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 13:04:57 -0400 Message-ID: <7a2859bb-5aab-31e8-8ab3-5f2a7de435e1@gmail.com> References: <8270ebe2-8e9d-2bf9-fa1c-b6e968aabe5a@gmail.com> 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="7792"; 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: Stefan Monnier , 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 19:25:43 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 1jr2xz-0001ve-GO for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 19:25:43 +0200 Original-Received: from localhost ([::1]:33656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jr2xy-0003ic-FZ for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Jul 2020 13:25:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jr2e3-0002vG-0E for help-gnu-emacs@gnu.org; Thu, 02 Jul 2020 13:05:07 -0400 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:37187) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jr2dy-0007zQ-MY for help-gnu-emacs@gnu.org; Thu, 02 Jul 2020 13:05:06 -0400 Original-Received: by mail-pl1-x635.google.com with SMTP id p1so2278208pls.4 for ; Thu, 02 Jul 2020 10:05:02 -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=2VlSr+9Q0eRAxOnV3t+FieDSB1QBJfLmrx2QVE77gdo=; b=SP348tg0eb74wDlSWqudILytWlXMBt3Io8r/9LcVtxIpEZkTeGOQDbHWwWHHc3D3d4 ic5FqDG8tLKdUksWVpibI1ynVGtxy4+m6gzWm3MTWQATyJwqq4bXNRKE1ZkMwUs/t8uh FMg9myz61LBtnVkytF3xrlrwhNoW/KqlNEUJmbCgPcTXRP/YtWS97pX093wdG2UVBZA5 K8CjPGnvEchjBASO0J4eiPBpRslmugKWRy0oqGkDt7+zGR4bmtHi32ZUtLo3zmBtybww GlWsi/YdtzfqizTsYL5ZcrM3zo6qMsjiwe2XSEcrrQ1jkXsccLyLHukSz4omyrLZTP8Q 6/sw== 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=2VlSr+9Q0eRAxOnV3t+FieDSB1QBJfLmrx2QVE77gdo=; b=ef3/HsQqrad+jlHaiVmagmDOBQoMk7QsKedr6E31sXE8kFzKn1/b7+A8dAkeNa2hKi vob6DuXkDetPgFGQoohKFYdqUal3sYSn9X5ySXY6qeSgf4gh3QqhP6TssvwCiIynwoVc tHic01gB5fdV7eStp51wbLUy3o4eSHL9lvGX6bJwz6cA/4PUv8yAOFuo2gBsCXFT+6Sb h7M/HQy/TovSaTX+3RNvkhOpcm7Lr4t8s+uewVnvUCN5rIi6d9VojUVuw94giaUvkRd5 2/Z5464qU/kQTz/jzyqYmCW59lly4IfEXfsmrRXckBFmJVxQZZUqN9Fixkm+F0PXQfJB Z1Qg== X-Gm-Message-State: AOAM532nXajdwXOqNnHkyTzxyg4mO+icefn3xYjfyMRBQ0xqx+m+6LFZ TDFuAp1MWBzzkJAx/4N01CymkX4= X-Google-Smtp-Source: ABdhPJx0IMPTiPDg7RgnH1V3YOR17dcLmx+I2YjQq/OA6AZCYunIIq4FdwNT8WnUcTnJgAv42EdRdQ== X-Received: by 2002:a17:90a:db82:: with SMTP id h2mr29337281pjv.162.1593709500785; Thu, 02 Jul 2020 10:05:00 -0700 (PDT) Original-Received: from [192.168.43.104] ([172.58.236.9]) by smtp.gmail.com with ESMTPSA id nh14sm2587054pjb.4.2020.07.02.10.04.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2020 10:05:00 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=d.lewan2000@gmail.com; helo=mail-pl1-x635.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:123476 Archived-At: On 7/2/20 11:56 AM, Stefan Monnier wrote: > Joost Kremers gave a good answer. I'll just add some "unrelated" comments: > > - `find-file` should not be called from Elisp. > Use `find-file-noselect` instead. > > - It's OK to temporarily change to another buffer, but your "eval" > should eventually return to the original buffer. Otherwise, do expect > weird behaviors. IOW wrap a `save/with-current-buffer` around your code. > > > Stefan Done. Thanks. -- ,Doug d.lewan2000@gmail.com (908) 720 7908 If this is what winning looks like, I'd hate to see what losing is.