From mboxrd@z Thu Jan 1 00:00:00 1970 From: asr@ufl.edu (Allen S. Rout) Subject: Clean capture from command line? Date: Tue, 16 Nov 2010 15:43:25 -0500 Message-ID: <87eialkniq.fsf@ufl.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=51276 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PISru-0002ER-Ga for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 16:15:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PISrt-0004KO-6h for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 16:15:10 -0500 Received: from lo.gmane.org ([80.91.229.12]:41756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PISrs-0004KG-W4 for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 16:15:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PISro-0003C0-Nj for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 22:15:04 +0100 Received: from n128-227-87-239.xlate.ufl.edu ([128.227.87.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Nov 2010 22:15:04 +0100 Received: from asr by n128-227-87-239.xlate.ufl.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Nov 2010 22:15:04 +0100 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'm one of the legion gradually slipping more and more of my day-to-day process into org-mode. (Thanks, Carsten!) One of the things I'd like to be able to do is capture a new TODO from a command line. e.g. shell$ capture "Fred wants a new database VM, 60G" and maybe eventually something obnoxious with e.g. zenity, so that a key chord popped up a text dialog which would just seamlessly get fed to org-capture. Basically, I want to make the notation and just keep sailing. Of course, I've got the relevant org files open in an emacs on another desktop: miles and miles away. :) The obvious solution shell$ emacsclient -c -e "(org-capture)" (and maybe a '-t', to keep it in the tty) has a problem: when I finish the capture, I'm left with the session, and worse, when I try to close the emacsclient, (C-x #) it tells me "No server buffers remain to edit", and I have to M-x delete-frame. Harshing my buzz, definitely. A gmane search on 'capture command line' in this group didn't seem to help much. Am I thinking about the problem the wrong way? How do you-all do that sort of ad-hoc capture? - Allen S. Rout