From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Display most recent log item in Agenda Date: Sat, 20 Dec 2014 22:13:22 +0100 Message-ID: <874msqyqh9.fsf@nicolasgoaziou.fr> References: <87388imto5.fsf@ericabrahamsen.net> <878uia6kdh.fsf@nicolasgoaziou.fr> <87ppbllmqj.fsf@ericabrahamsen.net> <87vbld5biw.fsf@nicolasgoaziou.fr> <87wq5sqqin.fsf@ericabrahamsen.net> <87k31s559y.fsf@nicolasgoaziou.fr> <874msuoidy.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2RKE-00082Z-UL for emacs-orgmode@gnu.org; Sat, 20 Dec 2014 16:12:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y2RK6-0006jb-HI for emacs-orgmode@gnu.org; Sat, 20 Dec 2014 16:12:34 -0500 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:59294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2RK6-0006jG-Ap for emacs-orgmode@gnu.org; Sat, 20 Dec 2014 16:12:26 -0500 In-Reply-To: <874msuoidy.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 17 Dec 2014 15:16:57 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Eric Abrahamsen writes: > I'm not terribly worried about finding the real last state note with > 100% accuracy -- as you say, that's not really possible. This would be a > convenience function displaying a useful bit of information, and if it > fails to do so no planes will crash. I should try to answer this to bug reports. More seriously, if the function is using some heuristics to find the last note, this should be documented somewhere (e.g., a caveat when `org-log-into-drawer' is nil). > I'd be inclined just to go to the location of `org-log-beginning', look > around for likely log notes, show the most recent one if we can find > it, and bail if not. What do you think? That's the idea. The tricky part may be "look around for likely log notes", depending on how hard you want to try. Regards,