From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: [Patch] org-protocol default template should be nil Date: Wed, 01 Sep 2010 07:10:03 +0200 Message-ID: References: <878w3m2ua3.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=55534 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oqfad-0000fK-2K for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 01:10:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqfaX-0007Oi-Ni for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 01:10:26 -0400 Received: from lo.gmane.org ([80.91.229.12]:50215) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqfaX-0007OX-AQ for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 01:10:21 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OqfaV-0001Hw-JX for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 07:10:19 +0200 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Sep 2010 07:10:19 +0200 Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Sep 2010 07:10:19 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I dont know if its related but something has broken the use of ,---- | org-default-notes-file is a variable defined in `org.el'. | Its value is "refile.org" | | Documentation: | Default target for storing notes. | Used as a fall back file for org-remember.el and org-capture.el, for | templates that do not specify a target file. `---- for me too. I tend not to specify a destination file in my templates and instead refile at a later date (hence the variable above is set to refile.org). Now I get a backtrace :- ,---- | Debugger entered--Lisp error: (error "Not enough arguments for format string") | format("^\\(\\*+\\)[ ]+\\(?:\\(TODO\\|STARTED\\|WAITING\\|DONE\\|CANCELLED\\|REPORT\\|BUG\\|KNOWNCAUSE\\|FIXED\\)\\>\\)?\\(?:[ ]*\\(\\[#.\\]\\)\\)?\\(?:[ ]*\\(?:\\[[0-9%%/]+\\]\\)\\)?[ ]*\\(%s\\)\\(?:[ ]*\\(?:\\[[0-9%%/]+\\]\\)\\)?\\(?:[ ]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[ ]*$" "Tasks To Refile") | org-capture-set-target-location() | org-capture(nil) | call-interactively(org-capture nil nil) `---- As a side note it was a bit of a misnomer. Possibly the storage should use a 'org-default-capture-file variable since "notes" have their own distinct meaning. regards r. (apologies if this is a double post). Sebastian Rose writes: > Hi Carsten, > > > this little patch fixes an issue Richard brought up. > > We always used the "w" template as the default for `org-remember' and > also used it for `org-capture' for historical reasons. > > Unfortunately, this breaks, if the user has no "w" template defined. > > The patch below simply set's the custom variable > `org-protocol-default-template-key' to nil, so the interactive template > selection is used by default. This works for both, remember an capture. > > I will adjust the docs, once the patch is applied. > > > > > diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el > index 3f240fd..21f28e7 100644 > --- a/lisp/org-protocol.el > +++ b/lisp/org-protocol.el > @@ -260,7 +260,7 @@ Here is an example: > :group 'org-protocol > :type '(alist)) > > -(defcustom org-protocol-default-template-key "w" > +(defcustom org-protocol-default-template-key nil > "The default org-remember-templates key to use." > :group 'org-protocol > :type 'string) > > > > > > Thanks, > > Sebastian > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >