emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: [PATCH] ob-python: specify defcustom parameters
Date: Fri, 07 Dec 2012 21:07:40 +0100	[thread overview]
Message-ID: <8738zhiq2b.fsf@Rainer.invalid> (raw)


This avoids a byte-compiler warning and makes these customizations
easier to find.

--8<---------------cut here---------------start------------->8---
commit 9666909a8db4f8ba54c6cabde40f35cbf82a3b52 (HEAD, refs/heads/lth-mk)
Author: Achim Gratz <Stromeko@Stromeko.DE>
Date:   Fri Dec 7 21:05:52 2012 +0100

    ob-python: specify defcustom parameters
    
    * lisp/ob-python.el (org-babel-python-hline-to,
      org-babel-python-None-to): Specify customize group as 'org-babel and
      widget type as 'string.

	Modified   lisp/ob-python.el
diff --git a/lisp/ob-python.el b/lisp/ob-python.el
index 4d94ecf..e393d1d 100644
--- a/lisp/ob-python.el
+++ b/lisp/ob-python.el
@@ -53,10 +53,14 @@ (defvar org-babel-python-mode (if (featurep 'xemacs) 'python-mode 'python)
 (defvar org-src-preserve-indentation)
 
 (defcustom org-babel-python-hline-to "None"
-  "Replace hlines in incoming tables with this when translating to python.")
+  "Replace hlines in incoming tables with this when translating to python."
+  :group 'org-babel
+  :type 'string)
 
 (defcustom org-babel-python-None-to 'hline
-  "Replace 'None' in python tables with this before returning.")
+  "Replace 'None' in python tables with this before returning."
+  :group 'org-babel
+  :type 'string)
 
 (defun org-babel-execute:python (body params)
   "Execute a block of Python code with Babel.

--8<---------------cut here---------------end--------------->8---

Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds

             reply	other threads:[~2012-12-07 20:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-07 20:07 Achim Gratz [this message]
2012-12-11 14:42 ` [PATCH] ob-python: specify defcustom parameters Eric Schulte
2012-12-11 18:43   ` Achim Gratz
2012-12-12  0:26     ` Eric Schulte

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=8738zhiq2b.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --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).