From: Xi Shen <davidshen84@gmail.com>
To: "Emacs-orgmode@gnu.org" <Emacs-orgmode@gnu.org>
Subject: Where should I add a new utility function?
Date: Wed, 08 Jun 2016 07:41:43 +0000 [thread overview]
Message-ID: <CANO68EPeMtcRvxQkAO03_WHK4LbfEjdxkwqMJ7+L=Zht7Fq66Q@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 514 bytes --]
Hi,
I would like to add a utility function which will be used by the
org-babel-execute:sql function. The function would look like this:
+(defun platform-convert-file-name (file)
+ (if (fboundp 'cygwin-convert-file-name-to-windows)
+ (format "\"%s\"" (cygwin-convert-file-name-to-windows file))
+ (t file)))
+
As its name suggests, this function if very platform specific. Should I put
this definition in the ob-sql.el file, the ob-core.el file or somewhere
else?
Thanks,
David
--
Thanks,
David S.
[-- Attachment #2: Type: text/html, Size: 1085 bytes --]
reply other threads:[~2016-06-08 7:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANO68EPeMtcRvxQkAO03_WHK4LbfEjdxkwqMJ7+L=Zht7Fq66Q@mail.gmail.com' \
--to=davidshen84@gmail.com \
--cc=Emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).