From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60929: 30.0.50; [FR] `file-name-extension' and backup suffixes Date: Tue, 24 Jan 2023 14:37:27 +0200 Message-ID: <83y1psglbs.fsf@gnu.org> References: <87o7qw6rrz.fsf@localhost> <83y1q01031.fsf@gnu.org> <87v8l45740.fsf@localhost> <83ilh3293n.fsf@gnu.org> <878rht7eht.fsf@localhost> <83tu0hidcp.fsf@gnu.org> <87cz745gqp.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36416"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60929@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 24 13:38:31 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKIZK-0009Ax-CL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Jan 2023 13:38:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKIZ4-0005s4-91; Tue, 24 Jan 2023 07:38:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKIYs-0005pJ-D8 for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2023 07:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pKIYs-0001zw-4n for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2023 07:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pKIYs-0003P8-0C for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2023 07:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Jan 2023 12:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60929 X-GNU-PR-Package: emacs Original-Received: via spool by 60929-submit@debbugs.gnu.org id=B60929.167456385913056 (code B ref 60929); Tue, 24 Jan 2023 12:38:01 +0000 Original-Received: (at 60929) by debbugs.gnu.org; 24 Jan 2023 12:37:39 +0000 Original-Received: from localhost ([127.0.0.1]:56062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKIYU-0003OW-Sz for submit@debbugs.gnu.org; Tue, 24 Jan 2023 07:37:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKIYT-0003OJ-5i for 60929@debbugs.gnu.org; Tue, 24 Jan 2023 07:37:37 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKIYM-0001qt-Pb; Tue, 24 Jan 2023 07:37:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uNEZvzbvcobBwkkVydGAeb9AKKeDE2NiivhXz5fQsoI=; b=QxgE+G0eDU2e NpgFeNj1UR+VkHRyzNZO4KUqYboe3pauFldWbO9Ay+F4s0Dm4lOeFM5/fo/DwhUzXCYj1/rhtdfkZ R2gPjUPRzK/Drz+7q/ckM+WtWIavztJI6Iw3bJFzelAwKMXd3iQNPT3rSLtXg1WrDPMjhvj2mMPHa SnIcUtqIGUVSBbZ5MoqxQSR+KQQxs1HdscFxjiadpEC6P9rc84UoYNsacqgQsAnMJaObgX/FQBIh/ m0YgoexL46ZYdf7UwfNFwtVv87RrnVbkE+X/CHuANlfS2REXXa7DCZLLm6jExWg+w2rgAsfvAj9XK C8ZAweULeOycs79mMlPPjQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKIY9-0007Nr-E3; Tue, 24 Jan 2023 07:37:28 -0500 In-Reply-To: <87cz745gqp.fsf@localhost> (message from Ihor Radchenko on Tue, 24 Jan 2023 11:12:56 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254044 Archived-At: > From: Ihor Radchenko > Cc: 60929@debbugs.gnu.org > Date: Tue, 24 Jan 2023 11:12:56 +0000 > > Eli Zaretskii 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.