GNU bug report logs - #60929
30.0.50; [FR] `file-name-extension' and backup suffixes

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Wed, 18 Jan 2023 10:50:01 UTC

Severity: normal

Found in version 30.0.50

Full log


Message #47 received at 60929 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Ruijie Yu <ruijie <at> netyu.xyz>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 60929 <at> debbugs.gnu.org
Subject: Re: bug#60929: 30.0.50; [FR] `file-name-extension' and backup suffixes
Date: Wed, 25 Jan 2023 13:43:46 +0000
Ruijie Yu <ruijie <at> netyu.xyz> writes:

>> Talking about "opening the file" again narrows the scope of the
>> requested feature, IMO.  We don't want to assume that the application
>> would like to open the file.  Besides, Text mode does affect how Emacs
>> treats the file.
>
> Another thing to consider is when the mode is not activated via
> `auto-mode-alist' -- for example, via M-x major-mode.  Consider what
> happens to the proposed file extension list when "foo.txt" and
> "bar.txt.bak.gpg" are manually activated as `org-mode'.

That's easy. One can simply check `major-mode' variable value.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




This bug report was last modified 2 years and 142 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.