GNU bug report logs - #53764
27.1; shouldn't ~/diary be in diary-mode?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Francesco Potortì <pot@HIDDEN>; dated Thu, 3 Feb 2022 22:13:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 9 Feb 2022 21:52:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 09 16:52:55 2022
Received: from localhost ([127.0.0.1]:53008 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nHutT-0005z3-JI
	for submit <at> debbugs.gnu.org; Wed, 09 Feb 2022 16:52:55 -0500
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:57347)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1nHutQ-0005yq-Sm
 for 53764 <at> debbugs.gnu.org; Wed, 09 Feb 2022 16:52:53 -0500
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 86AE6108FB1;
 Wed,  9 Feb 2022 22:52:48 +0100 (CET)
Message-Id: <87y22jaerz.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Wed, 09 Feb 2022 22:52:48 +0100
To: Andreas Schwab <schwab@HIDDEN>
In-Reply-To: <87zgmzloj6.fsf@HIDDEN> (schwab@HIDDEN)
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <875ypravpv.fsf@HIDDEN> <87mtj3vxeg.fsf@HIDDEN>
 <87zgmzaokw.fsf@HIDDEN> <87zgmzloj6.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220209215248.29235.44667@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 53764
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

>>>>>Do we have a convenience function that says whether we have a match in
>>>>>auto-mode-alist?  `set-auto-mode--apply-alist' seems to be the closest I
>>>>>can find, and...  it's not that close.  :-/  But I guess it could be
>>>>>refactored out of there.
>>>>
>>>> This one seems to do the job:
>>>> (add-to-list 'auto-mode-alist
>>>> 	     (cons diary-file 'diary-mode)
>>>> 	     	   (lambda (a b) (equal (car a) (car b))))
>>>
>>>The user may have used a regexp like "diary$", "diary\\'", etc, so that
>>>doesn't work.
>>
>> Sorry, I don't get it.  I am suggeting to add the name of the actual file (the one in diary-file) to the mode alist.  Looking for possible matches is a (small) optimisation. Why do we need a completely reliable matching code?
>
>If you put it at the end, it won't hide any preexisting match.

Little matter, in my opinion.  If the user haa set up anything, that will match.  It's okay.  We don't want to hide anything.  We just want to improve user experience in the common case when the user has not read the source code and does not know about diary-mode.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 9 Feb 2022 21:26:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 09 16:26:43 2022
Received: from localhost ([127.0.0.1]:52978 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nHuU7-0005Fu-16
	for submit <at> debbugs.gnu.org; Wed, 09 Feb 2022 16:26:43 -0500
Received: from mail-out.m-online.net ([212.18.0.9]:39985)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <whitebox@HIDDEN>) id 1nHuU4-0005Fj-Kp
 for 53764 <at> debbugs.gnu.org; Wed, 09 Feb 2022 16:26:41 -0500
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 4JvCcb3CJLz1r3wd;
 Wed,  9 Feb 2022 22:26:39 +0100 (CET)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.70])
 by mail.m-online.net (Postfix) with ESMTP id 4JvCcb1dlCz1qqkC;
 Wed,  9 Feb 2022 22:26:39 +0100 (CET)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,
 port 10024)
 with ESMTP id GVDfpCRyGfjh; Wed,  9 Feb 2022 22:26:38 +0100 (CET)
X-Auth-Info: oVenC7xCP2z5y3m2t1BugAUSOMkYggm7G/p92AsLAvJdkMOSDsEZnPbkXg94zfQA
Received: from igel.home (ppp-46-244-168-183.dynamic.mnet-online.de
 [46.244.168.183])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Wed,  9 Feb 2022 22:26:38 +0100 (CET)
Received: by igel.home (Postfix, from userid 1000)
 id CC1062C3AE3; Wed,  9 Feb 2022 22:26:37 +0100 (CET)
From: Andreas Schwab <schwab@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <875ypravpv.fsf@HIDDEN> <87mtj3vxeg.fsf@HIDDEN>
 <87zgmzaokw.fsf@HIDDEN>
X-Yow: I was in EXCRUCIATING PAIN until I started reading JACK AND JILL
 Magazine!!
Date: Wed, 09 Feb 2022 22:26:37 +0100
In-Reply-To: <87zgmzaokw.fsf@HIDDEN> ("Francesco =?utf-8?Q?Pot?=
 =?utf-8?Q?ort=C3=AC=22's?=
 message of "Wed, 09 Feb 2022 19:21:03 +0100")
Message-ID: <87zgmzloj6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 53764
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.5 (-)

On Feb 09 2022, Francesco Potortì wrote:

> Francesco Potortì <pot@HIDDEN> writes:
>>>>Do we have a convenience function that says whether we have a match in
>>>>auto-mode-alist?  `set-auto-mode--apply-alist' seems to be the closest I
>>>>can find, and...  it's not that close.  :-/  But I guess it could be
>>>>refactored out of there.
>>>
>>> This one seems to do the job:
>>> (add-to-list 'auto-mode-alist
>>> 	     (cons diary-file 'diary-mode)
>>> 	     	   (lambda (a b) (equal (car a) (car b))))
>>
>>The user may have used a regexp like "diary$", "diary\\'", etc, so that
>>doesn't work.
>
> Sorry, I don't get it.  I am suggeting to add the name of the actual file (the one in diary-file) to the mode alist.  Looking for possible matches is a (small) optimisation. Why do we need a completely reliable matching code?

If you put it at the end, it won't hide any preexisting match.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 9 Feb 2022 18:21:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 09 13:21:10 2022
Received: from localhost ([127.0.0.1]:52596 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nHraY-0003YU-8D
	for submit <at> debbugs.gnu.org; Wed, 09 Feb 2022 13:21:10 -0500
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:40912)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1nHraV-0003YI-Sz
 for 53764 <at> debbugs.gnu.org; Wed, 09 Feb 2022 13:21:08 -0500
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 97563FF112;
 Wed,  9 Feb 2022 19:21:03 +0100 (CET)
Message-Id: <87zgmzaokw.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Wed, 09 Feb 2022 19:21:03 +0100
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87mtj3vxeg.fsf@HIDDEN> (larsi@HIDDEN)
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <875ypravpv.fsf@HIDDEN> <87mtj3vxeg.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220209182103.31391.93361@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 53764
Cc: 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Francesco Potortì <pot@HIDDEN> writes:
>>>Do we have a convenience function that says whether we have a match in
>>>auto-mode-alist?  `set-auto-mode--apply-alist' seems to be the closest I
>>>can find, and...  it's not that close.  :-/  But I guess it could be
>>>refactored out of there.
>>
>> This one seems to do the job:
>> (add-to-list 'auto-mode-alist
>> 	     (cons diary-file 'diary-mode)
>> 	     	   (lambda (a b) (equal (car a) (car b))))
>
>The user may have used a regexp like "diary$", "diary\\'", etc, so that
>doesn't work.

Sorry, I don't get it.  I am suggeting to add the name of the actual file (the one in diary-file) to the mode alist.  Looking for possible matches is a (small) optimisation. Why do we need a completely reliable matching code?

>>>We could move diary-file out of calendar.el and put it in...
>>>bindings.el or something, though?
>>
>> I would add it to the mode alist just after diary-file's defcustom
>
>As I said, that wouldn't help that much, because then you only get it
>added to auto-mode-alist after loading calendar.el (since there's where
>it's defined today).

In fact, both M-x diary and M-x appt-activate do load calendar, so it seems that any usage of diary, appointment or calendar functions would do the right thing, as long as the diary file is found after that.  Well, better than nothing, maybe.  In principle, after adding the hook, one could check whether any buffer is finding the diary file and change its mode...




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 9 Feb 2022 18:03:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 09 13:03:38 2022
Received: from localhost ([127.0.0.1]:52586 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nHrJa-000360-Fd
	for submit <at> debbugs.gnu.org; Wed, 09 Feb 2022 13:03:38 -0500
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:39656)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1nHrJY-00035n-9h
 for 53764 <at> debbugs.gnu.org; Wed, 09 Feb 2022 13:03:36 -0500
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 758EF10847B;
 Wed,  9 Feb 2022 19:03:32 +0100 (CET)
Message-Id: <871r0bc3yj.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Wed, 09 Feb 2022 19:03:32 +0100
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <875yprxeui.fsf@HIDDEN> (larsi@HIDDEN)
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <87zgn35x2u.fsf@HIDDEN> <878runz6e2.fsf@HIDDEN>
 <87pmnzz4xa.fsf@HIDDEN> <875yprxeui.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
X-PPP-Message-ID: <20220209180332.25443.99941@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 53764
Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:
>> Maybe we can leave a short remark about the existence of the mode in the
>> manual?

I'd say definitely yes.

>We could also have `diary-make-entry' put a diary mode cookie into the
>diary file (if the file doesn't exist already).
>
>That'd make the buffer a big uglier when editing it from Calendar (with
>`i d' etc), though.

Only if the mode is set at the end of file, I think that putting the
-*- diary -*- string at the beginning would not make it bad.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 8 Feb 2022 06:11:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 08 01:11:17 2022
Received: from localhost ([127.0.0.1]:44835 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nHJif-0006Cd-H7
	for submit <at> debbugs.gnu.org; Tue, 08 Feb 2022 01:11:17 -0500
Received: from quimby.gnus.org ([95.216.78.240]:48036)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nHJia-0006CM-Ix
 for 53764 <at> debbugs.gnu.org; Tue, 08 Feb 2022 01:11:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=9CBB3T+ic16oKGZb0CoSLp3m+3d8w4akS9KrgUicPzE=; b=lI/jivAjqweq2C5yAf9OjSa/Ar
 UVL9UnFMgc6F4bT9V1/PDkessZFPci94jcNHH/r8T3+WMWyu8OvqqzRSv/n6hprppZAfgrOOLrU/H
 nke/EtvB/fRcYSuqWL/oiBprSs4LZ+5NJGxkGmSx6KsKgNymF5FLiaKLKSwZDaXxpImk=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nHJiR-0001eG-MU; Tue, 08 Feb 2022 07:11:06 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <87zgn35x2u.fsf@HIDDEN> <878runz6e2.fsf@HIDDEN>
 <86o83ilb57.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWooZvx7uZjXVqE
 fnkyLi3///8QUN7IAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YCCAYCFJ/c4/0AAAG6SURBVDjLZZMN
 coQgDIWDeABsL+AEDpBCT0Bz/zP1PWTVdTO7I+Yj/1Fku8sStpRiVVWx7Sn2FQn2N5OEnw4RtXAH
 AfpMX6JZwhYusKkCdgITyASyhUV/khaCFqPJYSMxVKvaWgXgI7dhlGLLVU33qAMgXIM/lCDMp2uu
 wwKSq0lkKL6UPUmcQNUijeo49y3VE+TW2gTeLe4q8QTIos1r8W+RxJTyAIx5REfVkCWLoZJpOszh
 FOmnaImVJxbKGM60RjNkO1s8ktmlNnlOIzU4Wqx+ACAUtMinhYQR9tMijWm/W8yXmdAl3383LliY
 MVm8rf0MjkCVY0gTCC8ZOlM6hrlxeskIDMuQutamE2Br2gC8gh5q7YLeRosoWMKvdzE5Fq7LWC8s
 HaxW94xLx7AEYcYOS2vFXXMW9tddrikoAPzXCXi+gwz/B6B0ant5nR7A6eKlH64I6GaqJoCOiBne
 9Vi4ad1cTzewjocrHks+8qRkrTJv9MXfPJUJfF9vWprK68al7yLrCe7XsTz+CUZv3MsTqBkrqg+L
 zj1fvHMAd8BvSuLq+3IDvXQsP6X4Xq7uWqAWf3z6xQn+AWl4oE3+7z5XAAAAJXRFWHRkYXRlOmNy
 ZWF0ZQAyMDIyLTAyLTA4VDA2OjAyOjIwKzAwOjAww14+UQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAy
 Mi0wMi0wOFQwNjowMjoyMCswMDowMLIDhu0AAAAASUVORK5CYII=
X-Now-Playing: Melanie de Biasio's _Blackened Cities_: "Blackened Cities"
Date: Tue, 08 Feb 2022 07:11:00 +0100
In-Reply-To: <86o83ilb57.fsf@HIDDEN> (Juri Linkov's message of "Mon, 
 07 Feb 2022 21:39:00 +0200")
Message-ID: <87fsotvqff.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Juri Linkov <juri@HIDDEN> writes: > The only case when
 I see the diary file is when quitting Calendar > leaves the diary buffer
 floating in the buffer list, so every time after > using Calendar have to
 visit the diary buffer and manua [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53764
Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Juri Linkov <juri@HIDDEN> writes:

> The only case when I see the diary file is when quitting Calendar
> leaves the diary buffer floating in the buffer list, so every time after
> using Calendar have to visit the diary buffer and manually kill it.

That buffer is included in `calendar-buffer-list', so `calendar-exit'
calls `quit-window' on that buffer.  So you could have
`quit-window-hook' kill the buffer, I guess?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 8 Feb 2022 01:17:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 20:17:01 2022
Received: from localhost ([127.0.0.1]:44343 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nHF7t-0001f6-GO
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2022 20:17:01 -0500
Received: from smtp-1.orcon.net.nz ([60.234.4.34]:48489)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <psainty@HIDDEN>) id 1nHF7p-0001en-Mo
 for 53764 <at> debbugs.gnu.org; Mon, 07 Feb 2022 20:17:00 -0500
Received: from [10.253.37.70] (port=33388 helo=webmail.orcon.net.nz)
 by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1)
 (envelope-from <psainty@HIDDEN>)
 id 1nHF7i-0008JR-Oj; Tue, 08 Feb 2022 14:16:50 +1300
Received: from ip-139-180-65-103.kinect.net.nz ([139.180.65.103])
 via [10.253.37.253] by webmail.orcon.net.nz
 with HTTP (HTTP/1.1 POST); Tue, 08 Feb 2022 14:16:50 +1300
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Tue, 08 Feb 2022 14:16:50 +1300
From: Phil Sainty <psainty@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in =?UTF-8?Q?diary-mode=3F?=
In-Reply-To: <87zgn35x2u.fsf@HIDDEN>
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <87zgn35x2u.fsf@HIDDEN>
Message-ID: <74eba74a460c09e725497f4ee26799a6@HIDDEN>
X-Sender: psainty@HIDDEN
User-Agent: Orcon Webmail
X-GeoIP: --
X-Spam_score: -2.9
X-Spam_score_int: -28
X-Spam_bar: --
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 53764
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2022-02-07 13:39, Michael Heerdegen wrote:
> We could automatically add a file local variable when Emacs
> creates the (main) diary file for the user.

To me this seems *much* better than the "do nothing" option.

People who don't want it can just delete the file-local var,
or change it to specify a different mode.

It won't directly help people with pre-existing diary files,
but if the change is called out in NEWS then those users can
be alerted to the fact that they might want to make that
change manually.


-Phil





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 23:51:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 18:51:00 2022
Received: from localhost ([127.0.0.1]:44127 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nHDme-0007rl-Av
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2022 18:51:00 -0500
Received: from mout.web.de ([212.227.15.3]:59821)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1nHDmc-0007rV-SP
 for 53764 <at> debbugs.gnu.org; Mon, 07 Feb 2022 18:50:59 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1644277852;
 bh=iEunDnPsLrliA/gqa7zSsPVQ1ofB8Ow2y2Kzr7bixqw=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=WcZkoWM+ZK5IHNepqfl23GINh+A/hZy5beSQtVsoPamOgYBeyUnpJiwAYeFxvAgzN
 hdABrOY4aHEhd2Q/qXh/IXMU7vYTdKdZoigbQXs6u/FAKVtzr61bBKBCEKkoKx1MWL
 G+SZ3bsbmfS0UNu+gIFseXym6tJue+l0UgPp1sM4=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([84.57.248.31]) by smtp.web.de (mrweb006
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N0Zs0-1oDR6G0p08-00wddQ; Tue, 08
 Feb 2022 00:50:52 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <87zgn35x2u.fsf@HIDDEN> <878runz6e2.fsf@HIDDEN>
 <87pmnzz4xa.fsf@HIDDEN> <875yprxeui.fsf@HIDDEN>
Date: Tue, 08 Feb 2022 00:50:51 +0100
In-Reply-To: <875yprxeui.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon,
 07 Feb 2022 09:25:57 +0100")
Message-ID: <87o83ixmlg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:dzdH9axLStSlxCxnatTKi0dNMvVnR7m4DhJzLNXaXGVVvM+mCUt
 oz4Mc5RwxN23wBWBGTRsfNLi177caSIN9EG2EVTNvK01bsVehHLUzUHkTabn5gIybZ5NfVl
 WdZe8R0+A14uMdVEzJ2JKuvM53zfmK2tj9CIOTun4AbjGlYLWHyRxlbnPOFWJeTrzaCBGns
 LaJK9gUymFUkb0IVcQPIQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:ep+QSwkNqBk=:gcgWygxRWVkxKf2xv7L661
 yjpWK2IUqbgxrtDshACQPHblRMsI2JU1MCGifJ17TtdpjDv8nCcxHBC+58SN+gGX+p48ssapD
 CyQkoyECh2eHWkogOdfdqigQinop4rgwy+622jQXPzPHdVWsLFH4HGcWiAiEsFuaIvXgrwwEp
 ScibsmWJH2JKQM0dGo51due5W9mfDBceMCskhwNNN+vxFtx5RA4B10g8UGd/saGk6QQu40+9W
 4ch0H3eX5ajNcr7pbbcbPQ/Uogj+/kZMk6tKF0uJ+BrX+ARHRD+wT4sL38eY8lNk+ZTxXt9nv
 94VOepVdCbbYoz3m7q2EhvrGBOCrLTZXwbDMgRYN1lCdjMDQQthvGDpCU2pQlQEOetGV0XYT2
 UVI4rgE0iALlwe9GzK8kfVw8v04L2vdE37s40FU2vaB6cUQWhbSN3tzqBwrSfSNNbPpc6uf6a
 yVgZ2oWnSjn+EZsSWzzr/3OtzOZsbvjls97xvvle9Q3RMRcfBpLAvjxXSeeEYXAzk0TGr7i6C
 ArHs8Q6RhpZqVdFCiuf6MwDrQBhykAP4xtqkW+yon4Jicu5gtcpHbNI36Xc+muVAKF7TwCBjX
 cxP7nShxxy14Cs9BeydNeDK2aXQq6nQ2yGQnm7rLmE+NUe231S42RrcHjiZVGvVVvA+im1pC+
 jazfwdny821m+MprIc+0dAP/+uUNsKzG1nNFFaXzRzl5zaDYB3eufNXJec86CfWbCqMqEkxti
 tvzUk3TNXspiCaXKckT9VXbps1hjA4aTIuUIWkUe/5ovXrTPXpDrLXpSZl5XwWtdY9rCmj+sA
 482gGoDQIsHBYzO6cK//HEmaPk8C+zi318Yv2PI4Kp7SIWFFUXg6sKZC2cvlokBiosbkAJ7wX
 jj9kDXUkuZrIKzppNRfJ7V08YNtxsZ8pfupv/MHxiR0MyAjcVj9Gc5UZELVEePzfcrnnc28aS
 y8WEIAkPefaokdFaj3qJz+Ce3vz4d1C3KRcvJ7Jt8voRI5+udO4UoIuhk1LIC0bKfHET370Bd
 nD4fucWNis/F4egMWuDFPKWyUM9R/GUW7niZYfTxu6qukeF9jtjDbT9bgT4yolxFK+ipGvcEq
 bfZcL33M4eLLG0=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53764
Cc: 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> We could also have `diary-make-entry' put a diary mode cookie into the
> diary file (if the file doesn't exist already).
>
> That'd make the buffer a big uglier when editing it from Calendar (with
> `i d' etc), though.

For me, by far no reason not to do that.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 19:50:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 14:50:35 2022
Received: from localhost ([127.0.0.1]:43845 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nHA1z-0007xi-Lq
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2022 14:50:35 -0500
Received: from relay5-d.mail.gandi.net ([217.70.183.197]:54681)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1nHA1x-0007xL-Cp
 for 53764 <at> debbugs.gnu.org; Mon, 07 Feb 2022 14:50:34 -0500
Received: (Authenticated sender: juri@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id A3D8A1C0007;
 Mon,  7 Feb 2022 19:50:25 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
Organization: LINKOV.NET
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <87zgn35x2u.fsf@HIDDEN> <878runz6e2.fsf@HIDDEN>
Date: Mon, 07 Feb 2022 21:39:00 +0200
In-Reply-To: <878runz6e2.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon,
 07 Feb 2022 04:45:41 +0100")
Message-ID: <86o83ilb57.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53764
Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Perhaps we should just do nothing -- people normally access the diary
> file via Calendar, which does everything it's supposed to.  Loading the
> diary file with `C-x C-f' is probably something most people don't do.

The only case when I see the diary file is when quitting Calendar
leaves the diary buffer floating in the buffer list, so every time after
using Calendar have to visit the diary buffer and manually kill it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 09:28:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 04:28:24 2022
Received: from localhost ([127.0.0.1]:40989 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nH0Jr-0003Rr-UP
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2022 04:28:24 -0500
Received: from quimby.gnus.org ([95.216.78.240]:37572)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nH0Jq-0003Rd-8V
 for 53764 <at> debbugs.gnu.org; Mon, 07 Feb 2022 04:28:22 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=gIF2LTsnt16dUKkTyuYnovt6GbE8rMpTaVH4O1oaBFk=; b=pyfK+VSLzQ/wsYdHksed/lP/1p
 TaoDekD/rB4+Ym6cyO+iizq4K69H4UDyrPXms/AXuUt+oFReKlr5ibJxXlhm6hmAFZTPYXAMeZQEv
 haxSkJZ96btIsO9TRTNheV+VGbrMXGVQXlNBWReEbbOyGuYFuufDcNuoEApxFxhGl6gY=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nH0Jd-0006xq-4Z; Mon, 07 Feb 2022 10:28:15 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <875ypravpv.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVcd5vLy9s8KU6I
 MCj////w2edLAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YCBwkZLqPZpr4AAAGYSURBVDjLhZNrloMw
 CIUBNwB2AwQ3oGb/e5sLMT2245zJD9Py5fIKIfpnrfFs5wh+BvQHIFJ7sgbW43FJ4o+gydDEN3At
 hcQfrm4Oe63Is9LPdkmwvcGWO+syDB3gMGMSyX872Su/A7CZEhdwJyg4PwBmJuTboQtCS3yAlcSh
 QyfFpR/iCThBA+gnAETLofBLO+ymHq2AZkFwDZACs4Cn1y6+Zq3ksXUqu0kD6CzIAqflG3iQ+pIg
 BlBEN4NlR2aoOCYIRC9gRujMDrAVQAZimi0ze4NBIGJYnBTgLICWEQJE43eTL1CFoDAD2A6KNxjp
 ohupOLL9d5A3m6BN0OmYoKUr8wJtHYCmolUdCbZqYoGM6jayctmgaOosE6SiV/BjZbyN/Fmtkgvg
 PqIFDUE31kuBttekS8Xeg9ligrRdAIPgegcxJldzsFf5BVZTFGBfCsduma7JPbhkEJw+nS6AdBcU
 iiwx+TVZFBNUM+HJg19p6h8g8v3nTZ2/gdcTOqnPXk0Q42XlPdInqKcWmVRedIJ+A9c6Y/sBUdlz
 AnD0b+cAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDItMDdUMDk6MjU6NDUrMDA6MDBEIwjGAAAA
 JXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAyLTA3VDA5OjI1OjQ1KzAwOjAwNX6wegAAAABJRU5ErkJg
 gg==
X-Now-Playing: Joni Mitchell's _Don Juan's Reckless Daughter_: "Paprika Plains"
Date: Mon, 07 Feb 2022 10:28:07 +0100
In-Reply-To: <875ypravpv.fsf@HIDDEN> ("Francesco =?utf-8?Q?Pot?=
 =?utf-8?Q?ort=C3=AC=22's?=
 message of "Mon, 07 Feb 2022 10:10:04 +0100")
Message-ID: <87mtj3vxeg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Francesco Potortì <pot@HIDDEN> writes: >>Do we have a convenience
    function that says whether we have a match in >>auto-mode-alist? `set-auto-mode--apply-alist'
    seems to be the closest I >>can find, and... it's not that close. :-/ But
    I gue [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53764
Cc: 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Francesco Potort=C3=AC <pot@HIDDEN> writes:

>>Do we have a convenience function that says whether we have a match in
>>auto-mode-alist?  `set-auto-mode--apply-alist' seems to be the closest I
>>can find, and...  it's not that close.  :-/  But I guess it could be
>>refactored out of there.
>
> This one seems to do the job:
> (add-to-list 'auto-mode-alist
> 	     (cons diary-file 'diary-mode)
> 	     	   (lambda (a b) (equal (car a) (car b))))

The user may have used a regexp like "diary$", "diary\\'", etc, so that
doesn't work.

>>We could move diary-file out of calendar.el and put it in...
>>bindings.el or something, though?
>
> I would add it to the mode alist just after diary-file's defcustom

As I said, that wouldn't help that much, because then you only get it
added to auto-mode-alist after loading calendar.el (since there's where
it's defined today).

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 09:10:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 04:10:11 2022
Received: from localhost ([127.0.0.1]:40956 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nH02E-0002zO-Nl
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2022 04:10:11 -0500
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:44415)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1nH02C-0002zA-Uu
 for 53764 <at> debbugs.gnu.org; Mon, 07 Feb 2022 04:10:09 -0500
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 2ED49107432;
 Mon,  7 Feb 2022 10:10:05 +0100 (CET)
Message-Id: <875ypravpv.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Mon, 07 Feb 2022 10:10:04 +0100
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <8735kv61c1.fsf@HIDDEN> (larsi@HIDDEN)
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220207091005.25083.94849@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 53764
Cc: 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

>Francesco Potortì <pot@HIDDEN> writes:
>> If diary-file is already in the auto-mode-alist, we do nothing.  No override.
>
>Do we have a convenience function that says whether we have a match in
>auto-mode-alist?  `set-auto-mode--apply-alist' seems to be the closest I
>can find, and...  it's not that close.  :-/  But I guess it could be
>refactored out of there.

This one seems to do the job:
(add-to-list 'auto-mode-alist
	     (cons diary-file 'diary-mode)
	     	   (lambda (a b) (equal (car a) (car b))))

>Michael Heerdegen <michael_heerdegen@HIDDEN> writes:
>> I vote "do it".  People will rather change `diary-mode' than writing
>> something own from scratch.  The - not unuseful - mode is too hard to
>> discover currently.

That was my point, in fact.

>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.

That would not do a complete job.  I have used M-x diary for years before ever trying M-x calendar.  Occasionally I suse calendar today, but mst of the time I add entries to diary by hand.  I have (appt-activate t) in my .emacs.

>We could move diary-file out of calendar.el and put it in...
>bindings.el or something, though?

I would add it to the mode alist just after diary-file's defcustom




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 08:26:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 03:26:10 2022
Received: from localhost ([127.0.0.1]:40821 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGzLe-0005ds-2P
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2022 03:26:10 -0500
Received: from quimby.gnus.org ([95.216.78.240]:37062)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nGzLb-0005de-U0
 for 53764 <at> debbugs.gnu.org; Mon, 07 Feb 2022 03:26:08 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=2WFXNd+tBTDHc0J8mv6a0ZO1HraWCDxaqLx0yzT2+eg=; b=CQdTtzxE568X7c97LTOE+IeDO1
 0EndoNEib4K3C5sJk5vG9jemBak+vIvtQRQ6c4J/7OvwwDAxbMHDHZWP+jGCy580ygr1TKhqApSIx
 rnSrPZ8749gmfKul9xzpa6OGq3HlWK7+22aVj1/51Pphod/zfSQyTLKxl2fcnuCXiTZo=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nGzLS-0006OX-Ob; Mon, 07 Feb 2022 09:26:01 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <87zgn35x2u.fsf@HIDDEN> <878runz6e2.fsf@HIDDEN>
 <87pmnzz4xa.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEVTLCchERJtSTKQ
 UTX///9NncUgAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YCBwgYGpq0CX0AAAFrSURBVDjLlZRtlsMg
 CEUBNwDpBhQ3kOr+9zaAxjid9Md4Thv1yoc8EgCUMRhhGwoD2B8gcGZE9oUAHGUYYJxg5OkBaII1
 LlBPeSRwmX4OGIfwGxB8BO4OHwDDlxgB+AHE1Y4PU9/kEiBqhLMEvsIdBHPTmBbz+FrA/HGLUkux
 I4lvC66KMTHANwBOPcO0kN+gAc4YOyAmGMGpoGwxCIZQqlqUcg1gvklpaOsWGWyRbct+2hJMgEKQ
 RWyvn6q1p2xbM3H162rvZ6utU5tA/OGaAGWlhpxRLnB3x9RUIpGnfgCG/wEv/KPkHmoBDo1ucOAC
 8AyGeHgD2YHbeWP+sbAd6xPum9cJUjadoAWYrxFFDHofLup+hyM7SCflBbb3wywSOfI570Dfpmbt
 3qF4NfYECg48ma3BJZu8p7XcSvdKmvsb0tu+DEuxK8iraSqSVmXv8JhSwbrAdh+qRRbADVdrrAtE
 Qvb5iUWvBfoPZYFAcZyWubYAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDItMDdUMDg6MjQ6MjYr
 MDA6MDCB8KlnAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAyLTA3VDA4OjI0OjI2KzAwOjAw8K0R
 2wAAAABJRU5ErkJggg==
X-Now-Playing: Pink Floyd's _Animals_: "Dogs"
Date: Mon, 07 Feb 2022 09:25:57 +0100
In-Reply-To: <87pmnzz4xa.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 07
 Feb 2022 05:17:21 +0100")
Message-ID: <875yprxeui.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > Maybe
 we can leave a short remark about the existence of the mode in the > manual?
 We could also have `diary-make-entry' put a diary mode cookie into the diary
 file (if the file doesn't exist already). 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53764
Cc: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Maybe we can leave a short remark about the existence of the mode in the
> manual?

We could also have `diary-make-entry' put a diary mode cookie into the
diary file (if the file doesn't exist already).

That'd make the buffer a big uglier when editing it from Calendar (with
`i d' etc), though.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 05:08:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 00:08:08 2022
Received: from localhost ([127.0.0.1]:40663 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGwG0-0000ZR-6J
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2022 00:08:08 -0500
Received: from eggs.gnu.org ([209.51.188.92]:48624)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1nGwFy-0000Yt-GE
 for 53764 <at> debbugs.gnu.org; Mon, 07 Feb 2022 00:08:07 -0500
Received: from [2001:470:142:3::e] (port=43880 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rms@HIDDEN>)
 id 1nGwFs-0005WC-Ve; Mon, 07 Feb 2022 00:08:01 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From:
 mime-version; bh=5NAnIhDUcFFOTc4Q/Jvu4g80Tw8vPNxtXRVcb1Ch/vk=; b=UJD1MIkJ0ZNf
 S8DOA4l+2fXbsaXFYxyQOTuGaL9K3xx5RI7KeNd1/mq7sf70Mai4D/pU88+ZzedOjmjnicCYLeyWM
 sEp0ufkbAOw1HrATqoX4NPl6ibwOGunm2A80dFgQqgsUIzuVL8yaWNHoxLD/XL/FsMPuTNNcnTyHa
 bvQfTwmBJmBb0la/fYU9uGl8zEjS4xD+ksHbfGOeWx1FBoJQGe8Yd7bZJu2o1fQ1j6FkmCBsJXoua
 5X7WiMhY35hp1ZPLm3/tE92SGYjiMVOBef6ahTRrRzFtrA8BjXQpwwdG45095Mdsvpp3pUm2wiPu4
 bgFkDD/sJS4OlDihYxYXsw==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1nGwFs-0005nh-KX; Mon, 07 Feb 2022 00:08:00 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
In-Reply-To: <87ee4gmyy9.fsf@HIDDEN> (message from Michael Heerdegen on Sun,
 06 Feb 2022 04:54:54 +0100)
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <87ee4gmyy9.fsf@HIDDEN>
Message-Id: <E1nGwFs-0005nh-KX@HIDDEN>
Date: Mon, 07 Feb 2022 00:08:00 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53764
Cc: larsi@HIDDEN, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

I think this change is a good one -- it is natural for Diary
mode to be selected by default.

But there is one thing I ask people to make sure of.

I edit my diary file in Fundamental mode.  I don't keep
it in the precise format Diary mode requires.

So please make sure that -*-fundamental-*- in the first line
overrides the new default.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 04:17:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 06 23:17:32 2022
Received: from localhost ([127.0.0.1]:40640 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGvT1-0007YK-Nx
	for submit <at> debbugs.gnu.org; Sun, 06 Feb 2022 23:17:31 -0500
Received: from mout.web.de ([212.227.17.11]:58095)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1nGvSz-0007Re-3L
 for 53764 <at> debbugs.gnu.org; Sun, 06 Feb 2022 23:17:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1644207442;
 bh=sFb7P86NrOhlUlvBEL02dqSuKSrpNJE9ZQWt7JBvoq8=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=CXDN//fxHj+6x5ZrNDN5jT1mgzReZ/kzaaybNl+uw7O17xxADtuLQS1J7XGamXuCj
 ngrlNspue3NQBqa0LWH1psrBq5FCZXlpm8QgjNEEBXyBqFZ3bZP1awVYQ/BxW9s77l
 jhSdknNQ2rgs569AnDH651zlw+6WaNCvLPCZdx/A=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([84.57.248.31]) by smtp.web.de (mrweb105
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1McIgY-1ntH1a2uRo-00cw2D; Mon, 07
 Feb 2022 05:17:22 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <87zgn35x2u.fsf@HIDDEN> <878runz6e2.fsf@HIDDEN>
Date: Mon, 07 Feb 2022 05:17:21 +0100
In-Reply-To: <878runz6e2.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon,
 07 Feb 2022 04:45:41 +0100")
Message-ID: <87pmnzz4xa.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:wJaAXXMUtLJbskC25xFGWZKdmUDkgqOZB2NSGX7nkFm3/yrjM6T
 ScUj+ZXH0bkAHQmns76qsENUGnqR4JJeLGnsSVZeEz6NEMk0hffoNevq71uGFmjx6LkaZpH
 oBZQOJd0qmTzoZTFGGv7u7aWRNJp5nQZYxar1nMU271rS5UCmrzwGWI12G4oP+WFuAMUrF2
 ZpKCQSBJADhxJ0C49sVMw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:Qsdag6V0do0=:D/2ND9hm/x4SHs7DCIp7/i
 dv2TdjIUIEqWF2SqjJwQJBsEnQDjQt1h6BHjL42WclOy7tdzDx9l1BPjY4M7LDGUtGnvm8TxL
 d/TZv2103gFq9i9ZxFGdfudu0/+xQRhAL8EIU36Lu7WybYiGLx884HjMI9qZCrhUdifZBr4az
 CCcUNViwGmPAni56UKvBgC6Eykb7VpbTNFo9JeiDDDaWsfEgmNWi3mqZLB9P13j+QyLyUGWne
 4PgSR3e3yHVXOrDH5/qooc4tWv7DlRiHXEwvUTge2zPiXyxHvKsH40xvhkTSwrQocH7jPuaEh
 4Bck4NmkVsNC9tRu8j5QwS/GR2L+Us/oD09pcaS3nKg/x087OnlPKJqP+qgeGEDTmnNP0EMrj
 QnkWEw5edKGQqbeP4BtOGWQC9PHwwoVYe03pTLrG0Lz5lRsZvndu/PD7w+lQA2w9th/e2yMJP
 ZcU6NR8R+SQFABqSIWRNdM310KCvxMdk7u8TItINughnjAMnECqkdcrJm9hWVhOlcv1CGbaNO
 55aO4WQyfYRs8PbJ090p1e+fDgv4/KocjvAt7rF7Yh6BEnWr2qXDVkJwDHTgal/vLVYAQh+uc
 xyAAZS7/bR/TMWfbfbOsnU7JWOMdYsPcmskUtwe8+LWEGxN/QrJG2pOT8/OZUgIgEbOttNeek
 QRWhj+gMw2ND7xoV+wbTWNoP64zPA80pcJEXSa8ghaA9/d7tO+QfBB5YQC+g0Ay0OJGThuWsX
 PHIW83gsocpTqZabnbEB1qEULRU8RKBrOaUlOWiFHXcmeY6N7gj0ZXFXzkxGl47au6lYcTrn1
 WzU4c9b4wiglSo5cIfZne1xOSTz6US5SXP/19bNwCkGCNeO2F3k0rMqwixtWVXUPY0fFsAlI/
 ji4TWQOZlqpAr+EZjjh8lQ3SfHH41i7UYZwirZh6Ul2tj3Cyti8OAGvXlpYRVCwgXFxOqGePb
 bqnkda8VJZvsy5sWZ1e0T0mt39FivOURGtr4j7mcI6QrNbF1wMhDaprNQ6KN+htlGrInWS28g
 NwlFHoZgGN7q+wZ77Ii52VWGYbyIieBvEqns+yZQaid1oIWk4kKjX9lozKhyZaz8wVozhJz1W
 Icq2x9vaj1RNXs=
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 53764
Cc: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Perhaps we should just do nothing

Yes, perhaps.

> -- people normally access the diary file via Calendar, which does
> everything it's supposed to.  Loading the diary file with `C-x C-f' is
> probably something most people don't do.

But I would not assume that.  People living "everything is a file" do
it.  I didn't know about the mode until I participated in this
discussion, I thought the highlighting would be some magic the diary
does when diary entries are displayed from the calendar, I didn't know
it's just a simple major mode.

And it's not necessary to use the calendar key interface to use the
diary, e.g. for calendar highlighting stuff or annotations.  It isn't
convenient to add complicated diary expressions or #includes to the
diary file from the calendar.  It's legitimate to edit the file the
normal way.

Maybe we can leave a short remark about the existence of the mode in the
manual?

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 03:45:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 06 22:45:53 2022
Received: from localhost ([127.0.0.1]:40598 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGuyP-0002Jb-F8
	for submit <at> debbugs.gnu.org; Sun, 06 Feb 2022 22:45:53 -0500
Received: from quimby.gnus.org ([95.216.78.240]:35280)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nGuyN-0002JO-2H
 for 53764 <at> debbugs.gnu.org; Sun, 06 Feb 2022 22:45:51 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=Yvn6/LanTzXjHO8E8vy7o05XQQ+xgBn7IwvmujwHZIw=; b=e6iun1OKRTvUjrkhppybVXty4c
 sDI7Q4QfYh+1Kok4QMnCL9mJQhhbM4+kqVYDkr9X7SIt+dBZO/CAZyco9YanHxLWUz/DTEFXvGsUK
 efSRTsogY3OGNXqozi9QZ4lTwtRoFHdCTFQ54RES+6nx++Xg7HuzpdgZf4N+9ffb8iMk=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nGuyD-0003ci-UD; Mon, 07 Feb 2022 04:45:44 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
 <87zgn35x2u.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEW6FizDFS5nNx5s
 SyF3MSGlIyiMKiVXWB6QGyRcXiCEQyf///+m4zYeAAAAAWJLR0QLH9fEwAAAAAd0SU1FB+YCBwMo
 MnwSeJUAAAEWSURBVDjLrdRBS8MwFADg9xgd9Pbe5oY7i3draRFPk1nZUZBlHgPOULzKhkdlMq+7
 tPhzzaIDWfPGAsuhh3x5ee8loQBucGMAEDCyD6wQ2q9lIrJrkJjs9Fmh553Z8ulx9cnZ3e2w3S3U
 Tesyh7STrQfng+lV2qOqqjGNW9cRaA3zL5NMkwf1vZ716qo+XbzEcdmPPuBtOXp+XaTvdZZ3TX4x
 zvORStQJglHGFKbU923dVyszNGZSTiBiTwfbchFopw/8BSkCgyF8K9gH/6NIApRgG9KEg5IfC1AE
 ksAvm63Is5t9ckzsh+ad/4EVX8mb10x+QBHI2yO4sgKPJBj4eCAkAemm3JEIEWKOgOTE7pe0C+Rm
 fwDqiV9uYmYg8wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wMi0wN1QwMzo0MDo1MCswMDowMO5y
 QN4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDItMDdUMDM6NDA6NTArMDA6MDCfL/hiAAAAAElF
 TkSuQmCC
X-Now-Playing: Talking Heads's _77_: "Don't Worry About The Government"
Date: Mon, 07 Feb 2022 04:45:41 +0100
In-Reply-To: <87zgn35x2u.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 07
 Feb 2022 01:39:37 +0100")
Message-ID: <878runz6e2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > 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 [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53764
Cc: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> 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.

Hm, right.

> 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.

Hm...  is that worth it?  People are bound to end up with both a
~/.emacs.d/diary and ~/.emacs.d/diary.diary file when they switch
between newer and older Emacs versions.  Renaming files like this is
always painful.

Perhaps we should just do nothing -- people normally access the diary
file via Calendar, which does everything it's supposed to.  Loading the
diary file with `C-x C-f' is probably something most people don't do.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 00:39:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 06 19:39:46 2022
Received: from localhost ([127.0.0.1]:40373 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGs4I-0007i4-F0
	for submit <at> debbugs.gnu.org; Sun, 06 Feb 2022 19:39:46 -0500
Received: from mout.web.de ([212.227.15.3]:55655)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1nGs4G-0007hq-Va
 for 53764 <at> 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
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
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN> <8735kv61c1.fsf@HIDDEN>
Date: Mon, 07 Feb 2022 01:39:37 +0100
In-Reply-To: <8735kv61c1.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Mon,
 07 Feb 2022 00:07:42 +0100")
Message-ID: <87zgn35x2u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:r07GV2cYwuco1PzGkLpTjhDDXBqQ9v3X/nAbdMzKPUrfh+7nEfg
 dgHKr0WcxqeE4Z58hOHtPTtrrYq4INulNLW+25Lj2AtT9o3XXk3YSIxN5+t1kTgw1oMbjLz
 T7Uj/jA4X8fhM2gusuJQ+cmXw71SNsanNfnOGSqpt+4Wff38AJGjobsV3g81OYGJ9O3Aus8
 JbL++cSErryfRLJKaBLAg==
X-Spam-Flag: NO
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/Lbrf3nuBb2UUQZ
 NblAY5vXDJWSQk0jLk0227zeUYxPVsjDfJHhipCXUDjwqoXPr4EdsLmn780Wc1Dc9nb7arUYK
 E41RtS6ljEhjruhYOWVU7Bp2MOzc0sl3dRjBlf9ef2Gx89HyWU3lujf0wxVDDbb/WUVI7JQHE
 ifFfW3+rClR3umgPUnm+dG9lg0ahY6ddoQ2T0tgeiLHW+aWjA1aLLzpI1VJR5uUmSWfDMMHZ/
 AcbjjKGJasX279I0/E8ip7A76SQwQbWZfh4MQXeLtZ7yi1CdI440gCL/sWeyZUBEdQlnTwZ4E
 fPxugyyaXgpcpw=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53764
Cc: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Lars Ingebrigtsen <larsi@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 6 Feb 2022 23:07:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 06 18:07:54 2022
Received: from localhost ([127.0.0.1]:40191 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGqdN-0002Sl-Qn
	for submit <at> debbugs.gnu.org; Sun, 06 Feb 2022 18:07:54 -0500
Received: from quimby.gnus.org ([95.216.78.240]:32906)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nGqdL-0002SW-MV
 for 53764 <at> debbugs.gnu.org; Sun, 06 Feb 2022 18:07:52 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=Fs/H0iv+Upgl4receeDmgHjPXOQ5X17Qw/9Bfa3QJPI=; b=RgaBUr0djJL/pyZUX48MwDSmfn
 tr7xPUIJ8210N6LtGwHs2nPOC3aotHRnr+LPvuY7c57qz3VrUzutSPgrm5Nw2Nje9o18vE96cqMz3
 S2Uz66+vVJBTNuC5ZKCvsHKLnLM8dtEawbBOJQ2xJrcbPfB1bfqhwbwYvNHS+aT0Q0ss=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nGqdC-0000mM-Oi; Mon, 07 Feb 2022 00:07:45 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
 <877da8c3jn.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEUQCgxdMDliTJNL
 PYLCWjejTiPejHr///+9aF0aAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YCBhcDLFP+1FYAAAGfSURB
 VDjLbZJNbsMgEIVxo2Rt2rBvSA4QixO4HVgHCfZNRbj/ETrDf9y8yLHMN+8Ng80YY3wQS5rzTQ46
 s4nxSS3XAi5SftHf5YQmMb9/X9k0F0cC8rzwedkpOYCcJBWSs5TXbQ+pPpbdK6AUX5RSrx0IVAK/
 Gwtp3jiUEj7p9gQUz6teuw4WTrWukAZOJcE/g5OvwRXAjb19slqtGTvqbEBwuLPacEW3a2Z0jGDf
 wOGnBrsVX9PUmmOULmQVOG+xJ4f2BXFbgS+gyvIOUB1wSBj3P9Mb1N0QdboR2N8Gh4tkoaNExwhM
 DLnA/gMpCw95bI7nHgugAXtzzh2CR3UgaHvCJBPq5FN6CZbGJlC7VweO5LRIQI8AZ3UxGAJQwZ6i
 OLe0SALoZ0VApEW6jKXmc57D8iPF06bArD4dSXJYDzkqAMS7qJPTV4EgRLwMxIfwUIAALMQ1EyEA
 7RfyB5cMAePjFnhIQkTSOCs8A/yhhAate3MACgQNgZ7aWaFH47OmAvJ34HJ8hKIS5XMbU9pjRQeO
 YprBd5BdWOBci3qpPzUxBQ9waXW8AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAyLTA2VDIzOjAz
 OjQ0KzAwOjAwwn/57gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMi0wNlQyMzowMzo0NCswMDow
 MLMiQVIAAAAASUVORK5CYII=
X-Now-Playing: Alice Coltrane's _Eternity_: "Wisdom Eye"
Date: Mon, 07 Feb 2022 00:07:42 +0100
In-Reply-To: <877da8c3jn.fsf@HIDDEN> ("Francesco =?utf-8?Q?Pot?=
 =?utf-8?Q?ort=C3=AC=22's?=
 message of "Sun, 06 Feb 2022 00:11:08 +0100")
Message-ID: <8735kv61c1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Francesco Potortì <pot@HIDDEN> writes: > If diary-file is
    already in the auto-mode-alist, we do nothing. No override. Do we have a
   convenience function that says whether we have a match in auto-mode-alist?
    `set-auto-mode--apply-alist' seems to be the closest I can find, and... it's
    not that close. :-/ But I guess it [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53764
Cc: 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Francesco Potort=C3=AC <pot@HIDDEN> writes:

> If diary-file is already in the auto-mode-alist, we do nothing.  No overr=
ide.

Do we have a convenience function that says whether we have a match in
auto-mode-alist?  `set-auto-mode--apply-alist' seems to be the closest I
can find, and...  it's not that close.  :-/  But I guess it could be
refactored out of there.

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

>> But I guess it's pretty unlikely.  Does anybody have an opinion?
>
> I vote "do it".  People will rather change `diary-mode' than writing
> something own from scratch.  The - not unuseful - mode is too hard to
> discover currently.

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?

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 6 Feb 2022 03:55:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 05 22:55:04 2022
Received: from localhost ([127.0.0.1]:36113 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGYdk-0008Vs-If
	for submit <at> debbugs.gnu.org; Sat, 05 Feb 2022 22:55:04 -0500
Received: from mout.web.de ([212.227.15.3]:45773)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1nGYdi-0008VH-EX
 for 53764 <at> debbugs.gnu.org; Sat, 05 Feb 2022 22:55:03 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1644119695;
 bh=Sm0bp9miseAAewSNLsriDjzvTPvftYcygTQmfMSQ9uc=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=A08EmRlu+TME4CVLn7EZhB6z9vURed31IFOZ5SAM+KzhAPUcVTI4LVCNzJHCmRZWZ
 9ozQwcqcTgiQZGrgKDWovSDz13yh+JBPblIq5+F3qiO7ww/DRNAE6WU1JNktv//TSL
 zgZQD/VO6B615EcCibtoQ6Uy3uD7lmB2cI7S6oSY=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([84.57.248.31]) by smtp.web.de (mrweb005
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N7gXO-1mC87h32zy-0151R6; Sun, 06
 Feb 2022 04:54:55 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
Date: Sun, 06 Feb 2022 04:54:54 +0100
In-Reply-To: <87k0e9asjk.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sat,
 05 Feb 2022 22:54:07 +0100")
Message-ID: <87ee4gmyy9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:gjq6qqrcCLE/XBRmT455ZTVoLk2yF4UL+RAd5rySF90HSNRSu6Z
 eBn/kEQz4ggEzV+BxWQMZyEFQiiXGbDrkVwrGqyYrwqoGV+yQHcZ7IMkYF+Skv1NPuAX/cW
 cmWNztuakHR7zKUv0j3FFSXsC5VqeOEJu6KHBpub5e7LqerUDPKODMtA09x4+XtoQwAQ8/O
 hfJtZ9xag85LTg6+UBlZg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:t1SgSxm+Hj8=:5aLU2mBaHHhQ7QB8G/+uaI
 AYnZV/6DlAsvxyY9rhFnQa7ePE5EiYfrEn5ZGaEfPbptjswzBJNSj9+2+KJYvGgJQY3/5391Q
 sguATODVWfvEOuQr7+514C1LyZw4HKEGccVRXzhCicmxRcsNAxGZI9c2PvonB9kKLSmb6memi
 EkToG66QFzZKM6U0KbFSsgp3a5hysyRTJl8UHTY0eajcSrPEdMcppmo9T80LBanLEAQnmjXah
 vJG0qEfK8JjcuOAcDiwOahFaoDvYdqOzAfgAD2+weGUlhKkpEpR1xqQU7/y0Nt6+oge8Nzkem
 VC/acSTQwJPZcTgAHkof++NmwimwhH1171tC5OL2xPp0f44cbseupiZ0n90nCYox4XTZ92Dl3
 Jmwy1fx9/fex3eSJnz8r0iOdiJmL1TMOyz/2da6ROMChjWc6+bBis9xB1Dg1zepwvh2OmAPLt
 kfzML0mBJZ6oHAV8qL5klEP+pDHrT4tzQefCe3scWG79dFSWEAH7bcY2Iu/K0XUzSC4heCQnx
 m9ce73zmYB8lZmKjbMMRHM66F6AXbU8VDS5eU3SJZ5X/1jbg38uDVzZmu9g+VOaZ0SeTG0TbR
 xcWuoR83MlmttXXw4ADxXWxQMCxfhQ1Um03k77M8xGq/Yy3tKwPoYgwv1E9fTiMphaxm0A8Wo
 zD39YRN2DLUEsdAdTsgyWBvpTXg8TH5E88FDpI917rJIoAZX6ztHeTmnZtQP+QtKPa8CJhCwD
 IyegkUf4ezQPGkJJrNP4hOkfwnFSUi/qra4CM7ZRmvf3WRH1NgMXyXs7Pjp6QnE2sjaTtUo56
 ozXjfelSuaPbKbnWk1WLPXxqRGwJjOfgUIIJuvS/wkuZFYB/WAmvlCuFZ3UWnVjsYBd4IfkQP
 3/pMwxGW/KFn+nMpOSf8RRZLtP+4fUJGONPRhK14aCOQ7RpwkvehrDJ902Hg01i8QarT4ZEUP
 C2i8PRPTMrbzIh90w1bEe+/ZTISUAufQlWtuWLpHj6tyB1FMRJZC/gmnf2XRRqVPcOkdDYZk6
 nCMXZbzMfHaJzaV+kNg0bL3AmV/iG/aiv36QVWG9K9fZlotcwqbELcEDv10GYBukkMGwNoRT6
 yQvhctbnb/kmvY=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 53764
Cc: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>, 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> But I guess it's pretty unlikely.  Does anybody have an opinion?

I vote "do it".  People will rather change `diary-mode' than writing
something own from scratch.  The - not unuseful - mode is too hard to
discover currently.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 5 Feb 2022 23:11:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 05 18:11:16 2022
Received: from localhost ([127.0.0.1]:35865 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGUD6-0006wG-29
	for submit <at> debbugs.gnu.org; Sat, 05 Feb 2022 18:11:16 -0500
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:42693)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1nGUD4-0006w4-32
 for 53764 <at> debbugs.gnu.org; Sat, 05 Feb 2022 18:11:14 -0500
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 38092101677;
 Sun,  6 Feb 2022 00:11:09 +0100 (CET)
Message-Id: <877da8c3jn.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Sun, 06 Feb 2022 00:11:08 +0100
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87k0e9asjk.fsf@HIDDEN> (larsi@HIDDEN)
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN> <87k0e9asjk.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220205231109.14056.37433@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 53764
Cc: 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

>Francesco Potortì <pot@HIDDEN> writes:
>> When calendar is loaded, diary-file is initialised.  After that, it
>> could be added to the auto-mode-alist.

Lars:
>That's true.  Grepping around, it looks like we have a number of other
>packages that also add to `auto-mode-alist', so there's some precedence
>for doing this, but I'm a bit unsure in this case.  That is, the user
>may have added something to auto-mode-alist themselves, and we don't
>want to override that.
>
>But I guess it's pretty unlikely.  Does anybody have an opinion?

If diary-file is already in the auto-mode-alist, we do nothing.  No override.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 5 Feb 2022 21:54:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 05 16:54:24 2022
Received: from localhost ([127.0.0.1]:35742 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGT0i-0000Rg-EB
	for submit <at> debbugs.gnu.org; Sat, 05 Feb 2022 16:54:24 -0500
Received: from quimby.gnus.org ([95.216.78.240]:49476)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nGT0e-0000RE-Gl
 for 53764 <at> debbugs.gnu.org; Sat, 05 Feb 2022 16:54:21 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=l4vZtWwH1k5oyF4XsFCvKuEquj4peWu3XUcnKOwiiOs=; b=JeVy0MdO66gcDAchyEzxQJ/9pT
 dZjQztrO3PPll7qSCbKz4PYPyOLfOA7evmeupQxzj33yI9ox8ixR48j0cLPkE2Vg/JXiG1aGSxcx7
 xMLc63D1nbpZxyKvIQEBEA71UdVR21tJeqkENJ+RzD282SFFWygYrYPWRO3dBhdNx+do=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nGT0U-0004CX-S0; Sat, 05 Feb 2022 22:54:13 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
 <878rupbbll.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEUKBAYvHCFdOT68
 i4T////X5tW9AAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YCBRUbDYy9J9EAAAGNSURBVDjLjZMBkuQg
 CEXFuYDoBSJcYAL3v9uAojHTu1VjVaoTn3zwQ6f0lwXX517FklKTzioHReyIhZrO9Q7JF7PyAKfg
 nbKJiAUD631kvRM3ojLTqTw6d9VGPb6alhVApsx5a+8QENunts6lFqIO+len8e5bX0s0a0/cZaoa
 ybKB6eJIAeynFaYW2AfHKztneq7Cs6Y8fttxR40U+hvw8K7aLQlKkxMUDyB7sDT9BSwASS6sYQoM
 YKVhNwu1VwqAA9wegURClaInE0gB9BxV6GyWA+8FmaEbwAI42i5VX1JaoI6eC27go2MfMIehG4hy
 TauyXnmOT4fV/mnrbY/YBElPpQZwN8owz7IYSPCA2WzxsgzkyPGMC89JjInJTyYfJDzBzAZWj0ld
 qa6b20Yf/roDNsN1eTWvrEK+b13eE0f6Wsv2FF4c63tN3P+BMBF/AECW1/7uoJXrrQtkZzYoYFKY
 kKIjj+2JerEwHAUeg+j/V9cjHHctb4KIM9c7xJmROsq70sfCgljpHyDWD2kXUIuxbhsYAAAAJXRF
 WHRkYXRlOmNyZWF0ZQAyMDIyLTAyLTA1VDIxOjI3OjEzKzAwOjAwVyvRBgAAACV0RVh0ZGF0ZTpt
 b2RpZnkAMjAyMi0wMi0wNVQyMToyNzoxMyswMDowMCZ2aboAAAAASUVORK5CYII=
X-Now-Playing: David Bowie's _Young Americans_: "Somebody Up There Likes Me"
Date: Sat, 05 Feb 2022 22:54:07 +0100
In-Reply-To: <878rupbbll.fsf@HIDDEN> ("Francesco =?utf-8?Q?Pot?=
 =?utf-8?Q?ort=C3=AC=22's?=
 message of "Sat, 05 Feb 2022 16:02:30 +0100")
Message-ID: <87k0e9asjk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Francesco Potortì <pot@HIDDEN> writes: > When calendar is
    loaded, diary-file is initialised. After that, it > could be added to the
    auto-mode-alist. That's true. Grepping around, it looks like we have a number
    of other packages that also add to `auto-mode-alist', so there's some precedence
    for doing this, but I'm a bit unsure in this case. That is [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53764
Cc: 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Francesco Potort=C3=AC <pot@HIDDEN> writes:

> When calendar is loaded, diary-file is initialised.  After that, it
> could be added to the auto-mode-alist.

That's true.  Grepping around, it looks like we have a number of other
packages that also add to `auto-mode-alist', so there's some precedence
for doing this, but I'm a bit unsure in this case.  That is, the user
may have added something to auto-mode-alist themselves, and we don't
want to override that.

But I guess it's pretty unlikely.  Does anybody have an opinion?

> The reason I am asking is that I have used the diary for years, and
> only recently, by looking at the source code for other reasons, did I
> discover that a diary-mode exists.
>
> Now I have added -*-diary-*- line to my diary file, but in fact that
> should be automatic, I think.

I think the idea is that you view the diary via the `d' command in
Calendar, and that puts the file in diary mode, I think?

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 5 Feb 2022 15:02:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 05 10:02:39 2022
Received: from localhost ([127.0.0.1]:35422 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGMaF-0007Ar-8o
	for submit <at> debbugs.gnu.org; Sat, 05 Feb 2022 10:02:39 -0500
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:55988)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1nGMaC-0007Ad-Io
 for 53764 <at> debbugs.gnu.org; Sat, 05 Feb 2022 10:02:37 -0500
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 353D910B5A6;
 Sat,  5 Feb 2022 16:02:31 +0100 (CET)
Message-Id: <878rupbbll.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Sat, 05 Feb 2022 16:02:30 +0100
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87v8xtdcr4.fsf@HIDDEN> (larsi@HIDDEN)
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN> <87v8xtdcr4.fsf@HIDDEN>
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220205150231.8828.81008@HIDDEN>
X-PPP-Vhost: potorti.it
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 53764
Cc: 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

>Francesco Potortì <pot@HIDDEN> writes:
>> Is there any reason why the ~/diary file is not read in diary-mode?
>>
>> Shouldn't it be in the auto-mode-alist?
>>
>> Maybe the reason is that the name of the diary is contained in the
>> diay-file variable and can thus be changed?

Lars:
>I think putting any file that's called "diary" in diary-mode would
>probably lead to too many false positives?  "~/.emacs.d/diary" (which is
>the default on many platforms) could safely be put in diary mode,
>though, but I'm not sure that would be all that helpful in practice...

When calendar is loaded, diary-file is initialised.  After that, it could be added to the auto-mode-alist.

The reason I am asking is that I have used the diary for years, and only recently, by looking at the source code for other reasons, did I discover that a diary-mode exists.

Now I have added -*-diary-*- line to my diary file, but in fact that should be automatic, I think.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 53764 <at> debbugs.gnu.org:


Received: (at 53764) by debbugs.gnu.org; 5 Feb 2022 06:54:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 05 01:54:53 2022
Received: from localhost ([127.0.0.1]:33576 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nGEyD-000065-17
	for submit <at> debbugs.gnu.org; Sat, 05 Feb 2022 01:54:53 -0500
Received: from quimby.gnus.org ([95.216.78.240]:42350)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1nGEyB-00005r-Hp
 for 53764 <at> debbugs.gnu.org; Sat, 05 Feb 2022 01:54:51 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=uKzVQJaMV6ZLOE1jujZJRehyB8wbVu2BsmC14aD2C14=; b=n5/Chv864UHnesG7lYwneGY9yv
 rXr2bO69B3mYGdUt7MxtVjCPZLTjbPEGiLIT7tsw0sJ76MIrH1hBgYqENazgxRwDHlYQ5AFP6Fkwx
 9YiToWD19c4FU125SoNHQussnpnvi+gLC9BdwWzaqmZojYnDXyqnXc3G4UqXoUsg1Igg=;
Received: from [84.212.220.105] (helo=giant)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1nGEy2-0005K2-Mi; Sat, 05 Feb 2022 07:54:45 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#53764: 27.1; shouldn't ~/diary be in diary-mode?
References: <87h79f8urg.fsf@HIDDEN>
X-Now-Playing: David Bowie's _Aladdin Sane_: "Let's Spend the Night Together"
Date: Sat, 05 Feb 2022 07:54:39 +0100
In-Reply-To: <87h79f8urg.fsf@HIDDEN> ("Francesco =?utf-8?Q?Pot?=
 =?utf-8?Q?ort=C3=AC=22's?=
 message of "Thu, 03 Feb 2022 23:12:19 +0100")
Message-ID: <87v8xtdcr4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Francesco Potortì <pot@HIDDEN> writes: > Is there any reason
    why the ~/diary file is not read in diary-mode? > > Shouldn't it be in the
    auto-mode-alist? > > Maybe the reason is that the name of the diary is contained
    in the > diay-file var [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53764
Cc: 53764 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Francesco Potort=C3=AC <pot@HIDDEN> writes:

> Is there any reason why the ~/diary file is not read in diary-mode?
>
> Shouldn't it be in the auto-mode-alist?
>
> Maybe the reason is that the name of the diary is contained in the
> diay-file variable and can thus be changed?

I think putting any file that's called "diary" in diary-mode would
probably lead to too many false positives?  "~/.emacs.d/diary" (which is
the default on many platforms) could safely be put in diary mode,
though, but I'm not sure that would be all that helpful in practice...

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Feb 2022 22:12:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 03 17:12:30 2022
Received: from localhost ([127.0.0.1]:58174 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nFkL8-0002yP-Gr
	for submit <at> debbugs.gnu.org; Thu, 03 Feb 2022 17:12:30 -0500
Received: from lists.gnu.org ([209.51.188.17]:33604)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1nFkL4-0002yG-LE
 for submit <at> debbugs.gnu.org; Thu, 03 Feb 2022 17:12:29 -0500
Received: from eggs.gnu.org ([209.51.188.92]:41416)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pot@HIDDEN>) id 1nFkL4-0002Rp-Hn
 for bug-gnu-emacs@HIDDEN; Thu, 03 Feb 2022 17:12:26 -0500
Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:60075)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pot@HIDDEN>) id 1nFkL2-0004fT-Id
 for bug-gnu-emacs@HIDDEN; Thu, 03 Feb 2022 17:12:26 -0500
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 2E60A10B1D4
 for <bug-gnu-emacs@HIDDEN>; Thu,  3 Feb 2022 23:12:20 +0100 (CET)
Message-Id: <87h79f8urg.fsf@HIDDEN>
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Thu, 03 Feb 2022 23:12:19 +0100
To: bug-gnu-emacs@HIDDEN
Subject: 27.1; shouldn't ~/diary be in diary-mode?
Organization: The GNU project
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-PPP-Message-ID: <20220203221220.20750.95033@HIDDEN>
X-PPP-Vhost: potorti.it
Received-SPF: softfail client-ip=79.98.45.16; envelope-from=pot@HIDDEN;
 helo=plesklin7.if1.ehiweb.it
X-Spam_score_int: -11
X-Spam_score: -1.2
X-Spam_bar: -
X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Is there any reason why the ~/diary file is not read in diary-mode?

Shouldn't it be in the auto-mode-alist?

Maybe the reason is that the name of the diary is contained in the diay-file variable and can thus be changed?




Acknowledgement sent to Francesco Potortì <pot@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#53764; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 14 Mar 2022 10:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.