emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Where should I add a new utility function?
@ 2016-06-08  7:41 Xi Shen
  0 siblings, 0 replies; only message in thread
From: Xi Shen @ 2016-06-08  7:41 UTC (permalink / raw)
  To: Emacs-orgmode@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-08  7:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-08  7:41 Where should I add a new utility function? Xi Shen

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).