GNU bug report logs -
#60929
30.0.50; [FR] `file-name-extension' and backup suffixes
Previous Next
Full log
Message #32 received at 60929 <at> debbugs.gnu.org (full text, mbox):
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Cc: 60929 <at> debbugs.gnu.org
> Date: Tue, 24 Jan 2023 11:12:56 +0000
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> Hmm... If we go further into generalization, what I am talking about is
> centralized API to "describe" current buffer file:
>
> 1. What is already there:
>
> - `buffer-file-name'
> - `buffer-file-truename'
> - `buffer-file-number'
>
> 2. What could be made available:
>
> - TRAMP mount point
> - `buffer-effective-name'
> - some info + callback to re-encrypt/re-archive/re-apply suffixes
> for a given file buffer onto another file buffer.
>
> > For example, if you want the file name so you could know the
> > appropriate major mode, perhaps a better interface would be to give
> > you a list of relevant major modes?
>
> I am not sure what you refer to here.
I mean:
. given "foo.org.~10~" return the list ("foo" org-mode backup)
. given "foo.org.gpg.gz" return ("foo" org-mode epa-file compress)
etc.
This bug report was last modified 2 years and 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.