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:43:46 +0000 Message-ID: <87k01alofh.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> <87y1pqlpl3.fsf@localhost> <83mt66g2ya.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="14889"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 60929@debbugs.gnu.org To: Ruijie Yu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 25 14:44:23 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 1pKg4c-0003bg-P2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Jan 2023 14:44:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKg4P-0000BB-8z; Wed, 25 Jan 2023 08:44:09 -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 1pKg4J-0000Av-L0 for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2023 08:44:03 -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 1pKg4I-00080L-VG for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2023 08:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pKg4I-0008Ra-H1 for bug-gnu-emacs@gnu.org; Wed, 25 Jan 2023 08:44:02 -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:44:02 +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.167465420832379 (code B ref 60929); Wed, 25 Jan 2023 13:44:02 +0000 Original-Received: (at 60929) by debbugs.gnu.org; 25 Jan 2023 13:43:28 +0000 Original-Received: from localhost ([127.0.0.1]:58652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKg3j-0008QB-SF for submit@debbugs.gnu.org; Wed, 25 Jan 2023 08:43:28 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:51117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKg3g-0008Pq-WE for 60929@debbugs.gnu.org; Wed, 25 Jan 2023 08:43:27 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 129812404CE for <60929@debbugs.gnu.org>; Wed, 25 Jan 2023 14:43:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674654199; bh=RlWLPnfXKmDq1MWKFw8J32hWv2GFRkE12/zYkorJILg=; h=From:To:Cc:Subject:Date:From; b=pmCDmeM3Qbx8pS+SaBZEM4qCMogQVSaFlWYhCRRuYoUvJpS1Y8dnt/XfWbnuLy8yA ajlbxHkd2V33ea02UraOv1BqoYKSJdL0BUpLB/OWVoiFzggyDQNSlplJtjx9GEHiPl kdsQdWuyzqELfQDnR7rV4MDlckAAuUX5xa4ZfdmRlaFP0usfFS+jLF9nspvvngNsl7 1T66YBCyE611oJB3xZyGJHwRpVHdQKahvaoEg/bSwegT6Ec4x7AcN+7iJjOqfth7Zg 5mkAFhAc0AVt9uf3fZSXjWjrer8Ktim6FWVohTqEGhcYFfExsGUv1UitkxjzTtvBeT Hb69gDEwZuPPQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P24mM36Kcz6tm6; Wed, 25 Jan 2023 14:43:15 +0100 (CET) In-Reply-To: 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:254132 Archived-At: Ruijie Yu 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 . Support Org development at , or support my work at