From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: [PATCH] org-capture: Add a custom to control save target file or not. Date: Thu, 13 Dec 2018 14:12:13 -0500 Message-ID: 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> <87o99p4cna.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d3396a057cec190e" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXWPn-0006AS-Jp for emacs-orgmode@gnu.org; Thu, 13 Dec 2018 14:12:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXWPm-0001vh-Op for emacs-orgmode@gnu.org; Thu, 13 Dec 2018 14:12:55 -0500 In-Reply-To: <87o99p4cna.fsf@nicolasgoaziou.fr> 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: van@scratch.space, Eric Abrahamsen , emacs-org list , Bastien Guerry --000000000000d3396a057cec190e Content-Type: text/plain; charset="UTF-8" On Thu, Dec 13, 2018 at 11:25 AM Nicolas Goaziou wrote: > > > + (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! > Thanks. I have made the suggested change, and pushed to master, merged into next. --000000000000d3396a057cec190e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Dec 13= , 2018 at 11:25 AM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

> +=C2=A0 =C2=A0 (unless (org-capture-get :no-save)
> +=C2=A0 =C2=A0 =C2=A0 ;; Save the target file.
> +=C2=A0 =C2=A0 =C2=A0 (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!

= Thanks. I have made the suggested change, and pushed to master, merged into= next.
--000000000000d3396a057cec190e--