From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Bug: org-capture - org-vm store link requires buffer file not always present [7.4] Date: Mon, 14 Feb 2011 11:15:07 +0100 Message-ID: <87mxlyhqhg.fsf@gnu.org> References: <41zqc6bp2l518n.fsf@mq.edu.au> <87aai1hzae.fsf@gnu.org> <19800.33799.716636.291461@nobunaga.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=53102 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PovSR-0003eo-J5 for emacs-orgmode@gnu.org; Mon, 14 Feb 2011 05:15:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PovSQ-0005ef-5J for emacs-orgmode@gnu.org; Mon, 14 Feb 2011 05:15:03 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:65031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PovSQ-0005dc-0v for emacs-orgmode@gnu.org; Mon, 14 Feb 2011 05:15:02 -0500 Received: by yxl31 with SMTP id 31so2233457yxl.0 for ; Mon, 14 Feb 2011 02:15:01 -0800 (PST) In-Reply-To: <19800.33799.716636.291461@nobunaga.local> (Arik Mitschang's message of "Mon, 14 Feb 2011 12:23:19 +1100") 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: Arik Mitschang Cc: emacs-orgmode@gnu.org Hi Arik, Arik Mitschang writes: > Unfortunately that does not do the trick. Two reasons: > > 1) the vm-select-folder-buffer only triggers an error if there is no > folder buffer, not if there is no file associated with that buffer. > > 2) raising an error stops the execution of the org-capture which > results in the same problem - one will not be able to capture while > visiting this "virtual" folder. Such a restriction is not practical > or useful. Thanks for the explanations. > Here is a patch that works on that change, if the style is not > satisfactory that's okay, but the spirit of the change is there. I've applied a slightly different patch that should do the trick in a simpler way. Please test it and report any problem. Thanks! -- Bastien