[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Return values of (find-file-noselect), etc.
From: |
Douglas Lewan |
Subject: |
Re: Return values of (find-file-noselect), etc. |
Date: |
Sun, 6 Jan 2019 19:49:21 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Icedove/52.9.1 |
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
- Return values of (find-file-noselect), etc., Douglas Lewan, 2019/01/06
- Re: Return values of (find-file-noselect), etc., Stefan Monnier, 2019/01/06
- Re: Return values of (find-file-noselect), etc.,
Douglas Lewan <=
- Re: Return values of (find-file-noselect), etc., Stefan Monnier, 2019/01/06
- Re: Return values of (find-file-noselect), etc., Douglas Lewan, 2019/01/07
- Re: Return values of (find-file-noselect), etc., Stefan Monnier, 2019/01/08
- Re: Return values of (find-file-noselect), etc., Douglas Lewan, 2019/01/08