From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: [PATCH] ob-python: specify defcustom parameters Date: Fri, 07 Dec 2012 21:07:40 +0100 Message-ID: <8738zhiq2b.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th4DO-0006zf-Uh for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 15:08:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Th4DN-0004mE-2w for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 15:08:06 -0500 Received: from plane.gmane.org ([80.91.229.3]:37108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th4DM-0004m7-Sx for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 15:08:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Th4DR-0004ja-IE for emacs-orgmode@gnu.org; Fri, 07 Dec 2012 21:08:09 +0100 Received: from pd9eb454b.dip.t-dialin.net ([217.235.69.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2012 21:08:09 +0100 Received: from Stromeko by pd9eb454b.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2012 21:08:09 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 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