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: Sun, 6 Jan 2019 19:49:21 -0500 Message-ID: <375db42e-f62d-c3c7-518a-627190b30617@gmail.com> References: <71340fe0-7373-f407-3bc7-7a2dcaf6b3b3@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 1546822078 17749 195.159.176.226 (7 Jan 2019 00:47:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2019 00:47:58 +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 01:47:54 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 1ggJ58-0004YV-IL for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2019 01:47:54 +0100 Original-Received: from localhost ([127.0.0.1]:56213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggJ7F-0004iP-7E for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jan 2019 19:50:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggJ6i-0004i6-PX for help-gnu-emacs@gnu.org; Sun, 06 Jan 2019 19:49:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggJ6g-00063W-RC for help-gnu-emacs@gnu.org; Sun, 06 Jan 2019 19:49:32 -0500 Original-Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:36682) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggJ6g-00062u-IM for help-gnu-emacs@gnu.org; Sun, 06 Jan 2019 19:49:30 -0500 Original-Received: by mail-qk1-x735.google.com with SMTP id o125so24532408qkf.3 for ; Sun, 06 Jan 2019 16:49:28 -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=+mI+rEb6PC+1dPu3Cy1AXLRs54uG3f7k1bnmDAo69aE=; b=KjwfCiVhPBS8h6k1dwHQyLygoU6y2ZpsM3ucgvfF3nrzPCfAhXeCcBSi6M+XcaV6js YSnPpzAlQJvL7ma9wmXB0VM86k49D2m+sKgMpttK8/ocmoGKP5+UDQMgxCsNAZ8S9lFe 86gi/9DNfFikjnDM7u1L0cShAIdDx+4Eq2Zn+gPedbDX7xQ0uG0akf028GDlJ63yxrtD jYZaleiK2wRwJ/KsBh5AAkqI1/TdlUWFjT+vd2LGuFheYQXz19Q/tq+2mW/+1RBssozc 7n472SAW5N0CniLgJbMFGHn/Q2Hg/ubwhhHkfdveUmJ1ixvraz9JdKdEgYFKoTC6CL28 vl3Q== 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=+mI+rEb6PC+1dPu3Cy1AXLRs54uG3f7k1bnmDAo69aE=; b=SX0Hbr1bINl7KfZTPQLPkDLhyrCCVfv0CGhq+g3N4uC2NEn8l7XbAacabBXoJEPusW hJyurRFRY22plWyru+8HDIXIeQsnUhcL3DseWNdw3ezcaaBEX+TkboyanCJBDfcITrMa JASlNO6WPxbN+NqzQDKtD7oWm+U0e5TCDg9X/OoENG+VQuhTMu3r/XgmzuYvBqx1vaRc mafNhhlz5I7xWHH9D4bpLFg+nT8f6iEuSYjMpzikpYzuchYi1xNHCyVmzEhs00XUumH5 Zir363FIfNJzljl7KCfMPlS7SDireylHGiPQRy2SUxjxaaUnyvsG/KNnTL9jxm8D3hHX SmYg== X-Gm-Message-State: AJcUukcFmm9FHXL4ZltbHlD06DUWZAJ6DvNvXtIDq7mflIAyB+6z6vZI st65OSR0dGGPo51pMI8Ud6g9cUNI0A== X-Google-Smtp-Source: ALg8bN5k13DQOSmzo3KkJCOqORCUxX9DZ6bZKRmzNSDwP4BEYCPCkHwOXshindgAHgHTe8DYjTGq2g== X-Received: by 2002:a37:4042:: with SMTP id n63mr54021953qka.153.1546822167665; Sun, 06 Jan 2019 16:49:27 -0800 (PST) Original-Received: from [0.0.0.0] (exit1.ipredator.se. [197.231.221.211]) by smtp.gmail.com with ESMTPSA id a42sm5156176qka.96.2019.01.06.16.49.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 16:49:27 -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::735 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:119085 Archived-At: On 01/06/2019 05:13 PM, Stefan Monnier wrote: >> If I have my emacs environment set up to call (cpio-mode) when it >> detects that a file is a cpio archive, then, e.g. (find-file-noselect >> "cpio-archive"), returns the dired-style buffer, not the buffer of the >> found file. So, any processing based on the newly found file is done >> with the dired-style buffer instead of the buffer with the newly found file. > It should return the buffer whose buffer-file-name is that of the file. > I think in your case, that should be the dired-style buffer and *also* > the buffer from which cpio-mode was called (i.e. the buffer which > originally held the file's content). > In RMAIL we satisfy these constraints using buffer-swap-text. Either way, that's not what I'm seeing. Should this be recorded as a bug? -- ,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