From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Douglas Lewan Newsgroups: gmane.emacs.help Subject: Re: Return values of (find-file-noselect), etc. Date: Mon, 7 Jan 2019 02:36:20 -0500 Message-ID: References: <71340fe0-7373-f407-3bc7-7a2dcaf6b3b3@gmail.com> <375db42e-f62d-c3c7-518a-627190b30617@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1546846512 3228 195.159.176.226 (7 Jan 2019 07:35:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2019 07:35:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Icedove/52.9.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 07 08:35:08 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggPRD-0000he-Je for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2019 08:35:07 +0100 Original-Received: from localhost ([127.0.0.1]:35896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggPTK-0007Q1-Ch for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2019 02:37:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggPSc-0007Oz-TH for help-gnu-emacs@gnu.org; Mon, 07 Jan 2019 02:36:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggPSZ-0004YV-0D for help-gnu-emacs@gnu.org; Mon, 07 Jan 2019 02:36:34 -0500 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:36915) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggPSX-0004XL-0D for help-gnu-emacs@gnu.org; Mon, 07 Jan 2019 02:36:29 -0500 Original-Received: by mail-qt1-x835.google.com with SMTP id t33so46726991qtt.4 for ; Sun, 06 Jan 2019 23:36:27 -0800 (PST) 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=KVOvT8Jh9/qNFvIBTpe9jV5e5jczOi/zaXDgV1cvc5Y=; b=hkx3Uom6QvvD+PKfTfMN9XNOTlewrjIq1R1DR0BizaBprW+CVYVrvM9RYRRONbIPlJ em2r3edkGLRCCznlupTbjbQj4TMKdRJ+d2f3FXC5GZE2yZIc7qEmOFTdTNnHd7KMOTJj 6z22fiimXaBCLg5J74pxPVgx+l5DPCoyA5Hv4uvIe5be0DQTsXY6+verGwKwzDAc9wmj c0+Y+shEb3hTZS9DAVVDJwvPiX0cLDjeHTYhfdFX8OqiEQ/wzNnIlF6KdnUGBUe9P3UL ysnX1WvnLoaq6VhQq5rzZVvc4eZiOv1I3nSAvcXSa4nSCGQb+yGVr5XNG1VeSQORlzXr OGXw== 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=KVOvT8Jh9/qNFvIBTpe9jV5e5jczOi/zaXDgV1cvc5Y=; b=mkO7PU4svP15Dx3mMaTVoSO6WOsanHn3KHupL9pD+psuax2b9NxOed7n+zQt+uVdpB aLDkuYe/c+MDIW9TokwXfQf4QFHQfU5qAkLOSmegWfFmATQ4SPNhHh7xrGg5/KXW49fo jpcgiN26fnhVzNuVzZk9UyQpjyeBS509X54sDv+otl/31zyn2pe0g7EmODzTnQu3L+x5 dOQk8XlwebBrJHaDyQFudCSmTwOI5y8Je8e51/WmrSO2ikegefax0MVQlHUvPkDVE2ZB mjdNoPQxs2BWj2t4cLlAifxWYnYKJx8ZybAeE3vbFM3XiEbWD7h6M+uVZOVC1lacTEQS 9/qQ== X-Gm-Message-State: AJcUukcnAkT5SJDQY2s1sgX1SJq9VzGKnVHfCk9sYJ37L4R0WU3Jq584 44fY91356DweGxbZgtV05rDHXaU= X-Google-Smtp-Source: ALg8bN7gmjfh36omsi9TKT2w5c0hY6kQA7XL0mK2UcnpMctUieRh/aWcWGtJGQ4b/0LljEA7GWHDYg== X-Received: by 2002:a0c:93e2:: with SMTP id g31mr59464302qvg.194.1546846586260; Sun, 06 Jan 2019 23:36:26 -0800 (PST) Original-Received: from [0.0.0.0] ([94.102.51.78]) by smtp.gmail.com with ESMTPSA id 126sm27132689qkj.70.2019.01.06.23.36.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 23:36:25 -0800 (PST) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::835 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119088 Archived-At: On 01/06/2019 10:06 PM, Stefan Monnier wrote: >> Either way, that's not what I'm seeing. Should this be recorded as a bug? > I think it's a bug for a major mode function to change the current > buffer, so what you're seeing is likely the result of find-file-noselect > not protecting itself against such misbehaving major modes ;-) > > > Stefan > > Hmmm. I suppose I could make (cpio-mode) a function instead of a mode, but that seems to be somehow inappropriate. It would avoid the bug of being a misbehaving major mode, but . . . well . . . . I do suppose there could be a legitimate style issue here. I think I'll leave it the way it is and wait to see if anyone screams. Thanks for taking the time to think about this. :-) -- ,Doug Douglas Lewan +1 (908) 720-7908 Give me "assloads of config" over "some other person thought they could decide what I like" any day. - Szmo, on reddit, 2017 Sep 05