From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Calendar, diary, and diary-mode Date: Tue, 06 Sep 2005 09:03:15 -0400 Message-ID: <87ll2al59p.fsf-monnier+emacs@gnu.org> References: <87psrnmjbk.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1126012994 4234 80.91.229.2 (6 Sep 2005 13:23:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2005 13:23:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 06 15:23:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ECdLm-0001YX-0X for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2005 15:18:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ECdQG-00050Q-Cx for ged-emacs-devel@m.gmane.org; Tue, 06 Sep 2005 09:23:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ECdP3-0004e8-LH for emacs-devel@gnu.org; Tue, 06 Sep 2005 09:22:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ECdOz-0004ca-Gm for emacs-devel@gnu.org; Tue, 06 Sep 2005 09:22:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ECdNe-0003zM-Jc for emacs-devel@gnu.org; Tue, 06 Sep 2005 09:20:54 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ECdAZ-0007M8-DJ for emacs-devel@gnu.org; Tue, 06 Sep 2005 09:07:23 -0400 Original-Received: from alfajor ([70.49.81.90]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050906130316.GYET26102.tomts10-srv.bellnexxia.net@alfajor>; Tue, 6 Sep 2005 09:03:16 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 4A93BD72C5; Tue, 6 Sep 2005 09:03:15 -0400 (EDT) Original-To: quarl+dated+1126426057.472365@nospam.quarl.org In-Reply-To: (Karl Chen's message of "Tue, 06 Sep 2005 01:13:00 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42656 Archived-At: Stefan> How is diary-mode used? It's defined and seems to Stefan> work if I call it manually, but it's not directly used Stefan> anywhere. WAIM? > There are at least two functions that do basically > (find-file-noselect (diary-check-diary-file) t). It might be a > good idea to refactor this, creating a function that returns the > buffer for the diary file, setting major-mode, etc. when opening. Yes, that's pretty much what I do, locally, but it's obvious enough that I'd like to hear how the current code is actually used. diary-lib.el has many other oddities. E.g. it passes diary-file through substitute-in-file-name sometimes, but not always. Stefan