From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-capture: Add a custom to control save target file or not. Date: Fri, 28 Sep 2018 22:50:23 +0200 Message-ID: <87sh1t5ots.fsf@nicolasgoaziou.fr> References: <19dc1211.1e75.162b770bd5c.Coremail.tumashu@163.com> <87po34y2ya.fsf@nicolasgoaziou.fr> <77a63bcf.32cc.162bcc4a5d0.Coremail.tumashu@163.com> <877epap70f.fsf@nicolasgoaziou.fr> <875zyro5jz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5ziZ-0003lf-PY for emacs-orgmode@gnu.org; Fri, 28 Sep 2018 16:50:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5ziU-0004t3-Rk for emacs-orgmode@gnu.org; Fri, 28 Sep 2018 16:50:31 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:39155) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g5ziU-0004s1-Jr for emacs-orgmode@gnu.org; Fri, 28 Sep 2018 16:50:26 -0400 In-Reply-To: (Kaushal Modi's message of "Fri, 28 Sep 2018 08:28:16 -0400") 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" To: Kaushal Modi Cc: tumashu , emacs-org list Hello, Kaushal Modi writes: > @Nicolas, tumashu: Would love to get your comments. I don't remember the initial report. However, saving the capture buffer may be problematic if there was unsaved modifications before the capture process. Saving silently the file would also save unrelated changes. Also, isn't it easy enough to add a `save-buffer' call in a hook? Regards, -- Nicolas Goaziou