From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] ob-sql.el: Support sqlcmd and cygwin environment Date: Tue, 14 Jun 2016 13:52:32 +0200 Message-ID: <87vb1c0yyn.fsf@saiph.selenimh> References: <87r3c4em1r.fsf@saiph.selenimh> <87a8isdso8.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCmtf-0007RP-Lh for Emacs-orgmode@gnu.org; Tue, 14 Jun 2016 07:52:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCmtd-0005lI-Pc for Emacs-orgmode@gnu.org; Tue, 14 Jun 2016 07:52:42 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:36425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCmtd-0005l9-JK for Emacs-orgmode@gnu.org; Tue, 14 Jun 2016 07:52:41 -0400 In-Reply-To: (Xi Shen's message of "Mon, 13 Jun 2016 06:30:32 +0000") 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: Xi Shen Cc: "Emacs-orgmode@gnu.org" Hello, Xi Shen writes: > I think I uploaded the wrong patch. Sorry~ Please check this one. It looks good. Thank you. I have one minor comment about it, see below. Also, could you provide an entry for ORG-NEWS since this is a user visible change? > +(defun org-babel-sql-convert-standard-filename (file) > + "Convert the file name to OS standard. > +In Cygwin environment, is uses Cygwin specific function to > +convert the file name and double quote it. Otherwise, uses Emacs > +standard conversion function." > + (if (fboundp 'cygwin-convert-file-name-to-windows) > + (format "\"%s\"" (cygwin-convert-file-name-to-windows file)) > + (convert-standard-filename file))) `cygwin-convert-file-name-to-windows' is going to generate a compilation warning. You need to declare it with `declare-function' at the top of the file. I'm also surprised that the function above doesn't return a string already. Are you sure the `format' part is needed? Regards, -- Nicolas Goaziou