From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: [PATCH] small fix for org-log-beginning Date: Sun, 14 Dec 2014 17:09:45 +0800 Message-ID: <877fxumwbq.fsf@ericabrahamsen.net> References: <87bnn6n2z6.fsf@ericabrahamsen.net> <874msy8x6f.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0566-0002PS-Sc for emacs-orgmode@gnu.org; Sun, 14 Dec 2014 04:04:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0561-0007H6-EA for emacs-orgmode@gnu.org; Sun, 14 Dec 2014 04:04:14 -0500 Received: from plane.gmane.org ([80.91.229.3]:40526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0561-0007Gy-7P for emacs-orgmode@gnu.org; Sun, 14 Dec 2014 04:04:09 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y0560-0002lK-8k for emacs-orgmode@gnu.org; Sun, 14 Dec 2014 10:04:08 +0100 Received: from 114.248.13.96 ([114.248.13.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Dec 2014 10:04:08 +0100 Received: from eric by 114.248.13.96 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Dec 2014 10:04:08 +0100 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> I'm still slowly chewing on making more use of log items, and found a >> small bug in org-log-beginning. It contains a partial re-implementation >> of something we already have a function for: org-log-into-drawer. It was >> causing me occasional bugs, but I only just looked into it. > > Applied. Thank you. > > > Regards, Ack, wait! I think that was a bad patch. If org-log-into-drawer is simply set to t, the t falls through into the drawer regexp and causes and error. I'm sorry -- I was sure I'd tested all the variants. The question is, should `org-log-into-drawer' always return the string name of the drawer or nil, or should `org-log-beginning' check if the return value isn't a string, and substitute the "LOGBOOK" default? I guess I'm leaning towards the first... Eric