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: Thu, 13 Dec 2018 17:25:29 +0100 Message-ID: <87o99p4cna.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> <87sh1t5ots.fsf@nicolasgoaziou.fr> <87o9cg6ci3.fsf@nicolasgoaziou.fr> <87sh1szjhf.fsf@gmail.com> <3C79C151-715A-4BF7-8CBF-63614A723721@scratch.space> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXTny-0005DS-Jl for emacs-orgmode@gnu.org; Thu, 13 Dec 2018 11:25:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXTnx-0000mr-Os for emacs-orgmode@gnu.org; Thu, 13 Dec 2018 11:25:42 -0500 In-Reply-To: (Kaushal Modi's message of "Thu, 13 Dec 2018 10:24:47 -0500") 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: van@scratch.space, Eric Abrahamsen , emacs-org list , Bastien Guerry Hello, Kaushal Modi writes: > I have formatted 2 patches to address this (attached). If they look fine, I > can commit them to master. Thank you. > + (unless (org-capture-get :no-save) > + ;; Save the target file. > + (save-buffer)) The comment does not look terribly useful. I would put the whole `unless' in a single line. Barring that nitpicking of mine, LGTM! Regards, -- Nicolas Goaziou