From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#60929: 30.0.50; [FR] `file-name-extension' and backup suffixes Date: Wed, 25 Jan 2023 13:18:48 +0000 Message-ID: <87y1pqlpl3.fsf@localhost> 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> <83y1psglbs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4078"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60929@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 25 14:19:14 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 1pKfgH-0000qK-Tc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Jan 2023 14:19:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKfg8-00067z-7B; Wed, 25 Jan 2023 08:19:04 -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 1pKfg6-00061L-H2 for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2023 08:19: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 1pKfg6-0002lW-4R for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2023 08:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pKfg5-0007eo-UI for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2023 08:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jan 2023 13:19: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.167465270829382 (code B ref 60929); Wed, 25 Jan 2023 13:19:01 +0000 Original-Received: (at 60929) by debbugs.gnu.org; 25 Jan 2023 13:18:28 +0000 Original-Received: from localhost ([127.0.0.1]:58604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKffY-0007dq-4D for submit@debbugs.gnu.org; Wed, 25 Jan 2023 08:18:28 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:52717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKffU-0007dW-UR for 60929@debbugs.gnu.org; Wed, 25 Jan 2023 08:18:27 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A64C4240817 for <60929@debbugs.gnu.org>; Wed, 25 Jan 2023 14:18:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674652698; bh=dAFynaNztvY3mqzpyuvY2C1My6FDnAXYrM6NfsYb1hs=; h=From:To:Cc:Subject:Date:From; b=U4FWRABB2j7JSgN9AjTNGwg7dMKYTJlxs0/tBCg8xtnIT88KakEMxDeCwlnF4turM R1HNBlGaIXA6hyTR0zUf6FQ7X6RENdlbKLBSBlar4SRBgrljG27m5JgMaZf+TDIMgs /DlsgXcCts1UTwImxMmTJwyxTMHH9IURtJnp0tlez0e+c07IpNJhidQvLIAN14pewH HbI7CmFBWB8khaew0zL40qEGA649RKcy5rbRKD6H0c3JDCQgof57qR2Ttk4+RKNrG8 1t8wYCFxe7kBrGAEo3iBWsHgAFNkTeAqDdz4/BOghPNU8TcFOMrpXwKE/4CSzIYscN IAKuEYI2xEZzQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P24CY10Mvz9rxb; Wed, 25 Jan 2023 14:18:16 +0100 (CET) In-Reply-To: <83y1psglbs.fsf@gnu.org> 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:254125 Archived-At: Eli Zaretskii writes: >> 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) I do not think that you can deterministically associate file extension with major mode. Alternative major modes do exist for some file extensions (like built-in python.el vs. python-mode.el). Just extension list may suffice in the simplest scenarios. In addition, given "foo.txt.org.gpg.gz" may return ("foo.txt" "org" "gpg" "gz") not stripping the first .txt as it never affects how Emacs opens the file. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at