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 04:45:41 +0100 Message-ID: <878runz6e2.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> <87zgn35x2u.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40409"; 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: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 04:46:14 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 1nGuyj-000AK4-W5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 04:46:14 +0100 Original-Received: from localhost ([::1]:48498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGuyi-0004m0-LG for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Feb 2022 22:46:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGuyY-0004ln-9c for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 22:46:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGuyX-0003oZ-WC for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 22:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGuyX-0002K0-VT for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2022 22:46: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 03:46: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.16442055538907 (code B ref 53764); Mon, 07 Feb 2022 03:46:01 +0000 Original-Received: (at 53764) by debbugs.gnu.org; 7 Feb 2022 03:45:53 +0000 Original-Received: from localhost ([127.0.0.1]:40598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGuyP-0002Jb-F8 for submit@debbugs.gnu.org; Sun, 06 Feb 2022 22:45:53 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:35280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGuyN-0002JO-2H for 53764@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=; 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 1nGuyD-0003ci-UD; Mon, 07 Feb 2022 04:45:44 +0100 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" In-Reply-To: <87zgn35x2u.fsf@web.de> (Michael Heerdegen's message of "Mon, 07 Feb 2022 01:39:37 +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:226220 Archived-At: Michael Heerdegen 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