From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#53764: 27.1; shouldn't ~/diary be in diary-mode? Date: Mon, 07 Feb 2022 00:07:42 +0100 Message-ID: <8735kv61c1.fsf@gnus.org> References: <87h79f8urg.fsf@tucano.isti.cnr.it> <87v8xtdcr4.fsf@gnus.org> <878rupbbll.fsf@tucano.isti.cnr.it> <87k0e9asjk.fsf@gnus.org> <877da8c3jn.fsf@tucano.isti.cnr.it> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19154"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53764@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 00:08:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGqdn-0004nj-4h for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 00:08:19 +0100 Original-Received: from localhost ([::1]:38306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGqdl-0003yv-Qq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Feb 2022 18:08:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGqdW-0003ya-23 for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 18:08:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46295) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGqdV-0001ik-Ob for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 18:08:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGqdV-0002T8-IC for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 18:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Feb 2022 23:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53764 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 53764-submit@debbugs.gnu.org id=B53764.16441888749475 (code B ref 53764); Sun, 06 Feb 2022 23:08:01 +0000 Original-Received: (at 53764) by debbugs.gnu.org; 6 Feb 2022 23:07:54 +0000 Original-Received: from localhost ([127.0.0.1]:40191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGqdN-0002Sl-Qn for submit@debbugs.gnu.org; Sun, 06 Feb 2022 18:07:54 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:32906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGqdL-0002SW-MV for 53764@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=; Original-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 ) id 1nGqdC-0000mM-Oi; Mon, 07 Feb 2022 00:07:45 +0100 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" In-Reply-To: <877da8c3jn.fsf@tucano.isti.cnr.it> ("Francesco =?UTF-8?Q?Potort=C3=AC?="'s message of "Sun, 06 Feb 2022 00:11:08 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226184 Archived-At: Francesco Potort=C3=AC 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 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