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 10:28:07 +0100 Message-ID: <87mtj3vxeg.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> <8735kv61c1.fsf@gnus.org> <875ypravpv.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="20745"; 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 11:25: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 1nH1Cv-0005DN-Rz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 11:25:18 +0100 Original-Received: from localhost ([::1]:49676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nH1Cu-00059Z-QS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 05:25:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nH0KU-0001qi-27 for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 04:29:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nH0KT-000717-MU for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 04:29:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nH0KT-0003Sl-Ke for bug-gnu-emacs@gnu.org; Mon, 07 Feb 2022 04:29: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: Mon, 07 Feb 2022 09:29: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.164422610413263 (code B ref 53764); Mon, 07 Feb 2022 09:29:01 +0000 Original-Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 09:28:24 +0000 Original-Received: from localhost ([127.0.0.1]:40989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH0Jr-0003Rr-UP for submit@debbugs.gnu.org; Mon, 07 Feb 2022 04:28:24 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:37572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nH0Jq-0003Rd-8V for 53764@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=; 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 1nH0Jd-0006xq-4Z; Mon, 07 Feb 2022 10:28:15 +0100 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" In-Reply-To: <875ypravpv.fsf@tucano.isti.cnr.it> ("Francesco =?UTF-8?Q?Potort=C3=AC?="'s message of "Mon, 07 Feb 2022 10:10:04 +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:226235 Archived-At: Francesco Potort=C3=AC 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