From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Abrahams Subject: Re: Bug: Bad doc [7.4] Date: Mon, 20 Dec 2010 07:56:49 -0900 Message-ID: References: <03A952A4-467F-45B8-A668-8991218D6E2A@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=52791 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUj2i-0008TP-Ak for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 11:57:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUj2f-0006XC-5Z for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 11:56:59 -0500 Received: from mail-pv0-f169.google.com ([74.125.83.169]:40500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUj2f-0006Wq-0p for emacs-orgmode@gnu.org; Mon, 20 Dec 2010 11:56:57 -0500 Received: by pvc30 with SMTP id 30so884705pvc.0 for ; Mon, 20 Dec 2010 08:56:55 -0800 (PST) In-Reply-To: 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: Carsten Dominik Cc: emacs-orgmode@gnu.org At Mon, 20 Dec 2010 15:16:28 +0100, Carsten Dominik wrote: > > > Hmm, seems to me that it would be more principled to have org-capture > > take an optional argument that indicates the template index, and ask > > me and John to bind our key to (lambda () (org-capture 0)) > > You are right, this is better for consistency. Plus, it would fix your documentation :-) Here's a guideline I use: if you're finding it difficult to document the behavior accurately, you probably designed it wrong or maybe you don't even really understand what it does. That has happened to me enough times that it was worth making up a guideline. > You can do that already, bind something like (org-capture "t") > where "t" is the selection key. > > (define-key global-map "\C-c c" > (lambda () (interactive) (org-capture "t"))) Thanks; if the behavior is ever updated I will switch to that arrangement. -- Dave Abrahams BoostPro Computing http://www.boostpro.com