From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#53764: 27.1; shouldn't ~/diary be in diary-mode? Date: Mon, 07 Feb 2022 01:39:37 +0100 Message-ID: <87zgn35x2u.fsf@web.de> References: <87h79f8urg.fsf@tucano.isti.cnr.it> <87v8xtdcr4.fsf@gnus.org> <878rupbbll.fsf@tucano.isti.cnr.it> <87k0e9asjk.fsf@gnus.org> <877da8c3jn.fsf@tucano.isti.cnr.it> <8735kv61c1.fsf@gnus.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="6505"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53764@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 01:42:58 2022 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 1nGs7N-0001MF-LQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 01:42:57 +0100 Original-Received: from localhost ([::1]:57742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGs7K-0000cS-IA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Feb 2022 19:42:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGs4Z-0000bk-3z for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 19:40:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGs4Y-0004s9-13 for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 19:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGs4X-0007ib-Pq for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 19:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Feb 2022 00:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 53764-submit@debbugs.gnu.org id=B53764.164419438629644 (code B ref 53764); Mon, 07 Feb 2022 00:40:01 +0000 Original-Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 00:39:46 +0000 Original-Received: from localhost ([127.0.0.1]:40373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGs4I-0007i4-F0 for submit@debbugs.gnu.org; Sun, 06 Feb 2022 19:39:46 -0500 Original-Received: from mout.web.de ([212.227.15.3]:55655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGs4G-0007hq-Va for 53764@debbugs.gnu.org; Sun, 06 Feb 2022 19:39:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1644194378; bh=EFliVfT407p7qx41LfZ/1wc3BDtQzvUJrGlRMLraYs0=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=R8Tz3V1XDFMSgJ1cJPKKndfLYS143NK0Ig7Iy3T6ttumir5RpShpG8nIXEq3mfBmT yoRjrfo46iQA7WudZ/3HHU/i7guvfIauFSHVQUiPG/sTTPDEfZoDyBGWCfASEjHP6M FQdmtkIIqMMALauU5YLzPbrpX9hBW7GuDiio3J24= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.57.248.31]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MYLmo-1nm8Ay1mRm-00Vn4r; Mon, 07 Feb 2022 01:39:38 +0100 In-Reply-To: <8735kv61c1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 07 Feb 2022 00:07:42 +0100") X-Provags-ID: V03:K1:r07GV2cYwuco1PzGkLpTjhDDXBqQ9v3X/nAbdMzKPUrfh+7nEfg dgHKr0WcxqeE4Z58hOHtPTtrrYq4INulNLW+25Lj2AtT9o3XXk3YSIxN5+t1kTgw1oMbjLz T7Uj/jA4X8fhM2gusuJQ+cmXw71SNsanNfnOGSqpt+4Wff38AJGjobsV3g81OYGJ9O3Aus8 JbL++cSErryfRLJKaBLAg== X-UI-Out-Filterresults: notjunk:1;V03:K0:AxKMCcXeRuw=:aitF0Yjxeed29msKHluyHq 6pXdfitxvlFjsPXpTnrOLaffa7OA4hXyCqbCQvEmtxXZQOFrf+8mdoXaL+vkMiBLvWTzpWWZP mjhOfG1t9lPBJH9yQ1HXXUALqEbs3pKKtA9Btd9KJD4pNwFOrJYJvhADi/gssVv0qPuyNy64G 6taLN5+1r1yH5yCR/syuPtc4JN5inifNyCRyz7pwyJ9n0bCppMsCOfDHsqOPmSVg4IdVVhcyt +fBcjj0660G3GRY2vkz26YiayvoJ3O1Tpu6QXDt7nfap8K8tsHh22VGSPBZEHS7shkynuKh5e apYiHLmNI9eM+xmQU8fQwUHRCPs90lObMtgD0+PAZ55BW/ny3Lg13doVPI8PUctIhYu+GnhRF y+YPEnfM/aOTu+yI/vtL/S47gV6PWfUahxo5lp710WD98Dkhxxhu+BZok+2yo0TU01lX7sPm4 2ZjXX8hq7UU4u4xCgk/GWOY/8l1ZO9YndOXR0NrrmxOiWoARoTOYv14vadpCA97PxkXF+krC9 TeCgQEOMSHHcdMhpK5AAmHZpLn6L0dwBRDepN2rsFOnZFuAJ8HGR49h9IBmjNZJ2hRscpnusN 0KiYtO+nwYaOLCw02Gwsg8710nrBBuS7a9e2N8jM+FFbm/Ih5HRBSKv/69dKR8ILYAkQUiILJ ud+3cH5T6rQ4L8NJAXElD9JIPsphstnfeR/c5RUAsZyr+VacuIQf5SNX1Rr0eTOijYwzL1v45 /fp0xbaOjtRfASSNhUEYAB7vcN22ZtmiVDhDiL91EhNGZIckBamMHw89s7/Lbrf3nuBb2UUQ 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" Xref: news.gmane.io gmane.emacs.bugs:226203 Archived-At: Lars Ingebrigtsen writes: > We have a chicken/egg problem, though. Adding `diary-file' to > `auto-mode-alist' would be fine, but we calculate that in calendar.el, > so people not using the calendar won't get the mode. > > We could move diary-file out of calendar.el and put it in... > bindings.el or something, though? I'm not sure anymore if this is a good idea anyway, because (doc of `diary-file'): "Diary files can contain directives to include the contents of other files; for details, see the documentation for the variable `diary-list-entries-hook'". No magic is able to ensure that all of these files are always opened with the right mode. Dunno. When the diary-file is opened with `diary-show-all-entries', the mode is already changed to diary-mode. We could automatically add a file local variable when Emacs creates the (main) diary file for the user. An alternative approach: we change the name of the diary-file to .diary and associate the suffix ".diary" with diary-mode. When the user then names his/her included diary files like "holidays.diary" and "work.diary", the mode would be enabled for these files, too. Michael.