From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [PATCH] ob-python: specify defcustom parameters Date: Tue, 11 Dec 2012 19:43:41 +0100 Message-ID: <87zk1kxwde.fsf@Rainer.invalid> References: <8738zhiq2b.fsf@Rainer.invalid> <87obi0mpxw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiUoK-0004LH-1s for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 13:44:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiUoF-0000ur-1O for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 13:44:07 -0500 Received: from plane.gmane.org ([80.91.229.3]:40908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiUoE-0000ue-Qp for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 13:44:02 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TiUoM-0002Ck-Qd for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 19:44:10 +0100 Received: from pd9eb2efa.dip.t-dialin.net ([217.235.46.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Dec 2012 19:44:10 +0100 Received: from Stromeko by pd9eb2efa.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Dec 2012 19:44:10 +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 --=-=-= Content-Type: text/plain Eric Schulte writes: > Again, could you send a git format-patch version of this patch? Sorry if this comes through twice, but it appears that Gmane has dropped my first posting. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-ob-python-specify-defcustom-parameters.patch >From b759805cca39914843222c25a63854c7694d7e80 Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Fri, 7 Dec 2012 21:05:52 +0100 Subject: [PATCH 2/4] 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. --- lisp/ob-python.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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. -- 1.8.0.1 --=-=-= Content-Type: text/plain Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada --=-=-=--