浏览代码

Partially revert commit adcebf

* ox.el (org-export-async-init-file):
* ox-odt.el (org-odt-with-latex):
* ox-html.el (org-html-with-latex):
* org.el (org-return-follows-link):
* ob-python.el (org-babel-python-command): Don't use :set.

Thanks to Glenn Morris for pointing at this.
Bastien Guerry 12 年之前
父节点
当前提交
22a061f575
共有 5 个文件被更改,包括 9 次插入16 次删除
  1. 2 4
      lisp/ob-python.el
  2. 4 6
      lisp/org.el
  3. 1 2
      lisp/ox-html.el
  4. 1 2
      lisp/ox-odt.el
  5. 1 2
      lisp/ox.el

+ 2 - 4
lisp/ob-python.el

@@ -47,15 +47,13 @@
   :group 'org-babel
   :group 'org-babel
   :type 'string)
   :type 'string)
 
 
-(defcustom org-babel-python-mode 'python
+(defcustom org-babel-python-mode
+  (if (or (featurep 'xemacs) (featurep 'python-mode)) 'python-mode 'python)
   "Preferred python mode for use in running python interactively.
   "Preferred python mode for use in running python interactively.
 This will typically be either 'python or 'python-mode."
 This will typically be either 'python or 'python-mode."
   :group 'org-babel
   :group 'org-babel
   :version "24.4"
   :version "24.4"
   :package-version '(Org . "8.0")
   :package-version '(Org . "8.0")
-  :set (lambda (var val)
-	 (set-default var (if (or (featurep 'xemacs) (featurep 'python-mode))
-			      'python-mode 'python)))
   :type 'symbol)
   :type 'symbol)
 
 
 (defvar org-src-preserve-indentation)
 (defvar org-src-preserve-indentation)

+ 4 - 6
lisp/org.el

@@ -1725,17 +1725,15 @@ In tables, the special behavior of RET has precedence."
   :group 'org-link-follow
   :group 'org-link-follow
   :type 'boolean)
   :type 'boolean)
 
 
-(defcustom org-mouse-1-follows-link 450
+(defcustom org-mouse-1-follows-link
+  (if (boundp 'mouse-1-click-follows-link) mouse-1-click-follows-link t)
   "Non-nil means mouse-1 on a link will follow the link.
   "Non-nil means mouse-1 on a link will follow the link.
 A longer mouse click will still set point.  Does not work on XEmacs.
 A longer mouse click will still set point.  Does not work on XEmacs.
 Needs to be set before org.el is loaded."
 Needs to be set before org.el is loaded."
   :group 'org-link-follow
   :group 'org-link-follow
   :version "24.4"
   :version "24.4"
   :package-version '(Org . "8.3")
   :package-version '(Org . "8.3")
-  :set (lambda (var val)
-	 (set-default var (if (boundp 'mouse-1-click-follows-link)
-			      mouse-1-click-follows-link t)))
-  :type '(choice 
+  :type '(choice
 	  (const :tag "A double click follows the link" 'double)
 	  (const :tag "A double click follows the link" 'double)
 	  (const :tag "Unconditionally follow the link with mouse-1" t)
 	  (const :tag "Unconditionally follow the link with mouse-1" t)
 	  (integer :tag "mouse-1 click does not follow the link if longer than N ms" 450)))
 	  (integer :tag "mouse-1 click does not follow the link if longer than N ms" 450)))
@@ -20407,7 +20405,7 @@ If `org-special-ctrl-o' is nil, just call `open-line' everywhere."
     (open-line n))
     (open-line n))
    ((org-at-table-p)
    ((org-at-table-p)
     (org-table-insert-row))
     (org-table-insert-row))
-   (t    
+   (t
     (open-line n))))
     (open-line n))))
 
 
 (defun org-return (&optional indent)
 (defun org-return (&optional indent)

+ 1 - 2
lisp/ox-html.el

@@ -673,7 +673,7 @@ The function should return the string to be exported."
 
 
 ;;;; LaTeX
 ;;;; LaTeX
 
 
-(defcustom org-html-with-latex t
+(defcustom org-html-with-latex org-export-with-latex
   "Non-nil means process LaTeX math snippets.
   "Non-nil means process LaTeX math snippets.
 
 
 When set, the exporter will process LaTeX environments and
 When set, the exporter will process LaTeX environments and
@@ -694,7 +694,6 @@ t              Synonym for `mathjax'."
   :group 'org-export-html
   :group 'org-export-html
   :version "24.4"
   :version "24.4"
   :package-version '(Org . "8.0")
   :package-version '(Org . "8.0")
-  :set (lambda (var val) (set-default var org-export-with-latex))
   :type '(choice
   :type '(choice
 	  (const :tag "Do not process math in any way" nil)
 	  (const :tag "Do not process math in any way" nil)
 	  (const :tag "Use dvipng to make images" dvipng)
 	  (const :tag "Use dvipng to make images" dvipng)

+ 1 - 2
lisp/ox-odt.el

@@ -704,7 +704,7 @@ The function should return the string to be exported."
 
 
 ;;;; LaTeX
 ;;;; LaTeX
 
 
-(defcustom org-odt-with-latex t
+(defcustom org-odt-with-latex org-export-with-latex
   "Non-nil means process LaTeX math snippets.
   "Non-nil means process LaTeX math snippets.
 
 
 When set, the exporter will process LaTeX environments and
 When set, the exporter will process LaTeX environments and
@@ -725,7 +725,6 @@ t              Synonym for `mathjax'."
   :group 'org-export-odt
   :group 'org-export-odt
   :version "24.4"
   :version "24.4"
   :package-version '(Org . "8.0")
   :package-version '(Org . "8.0")
-  :set (lambda (var val) (set-default var org-export-with-latex))
   :type '(choice
   :type '(choice
 	  (const :tag "Do not process math in any way" nil)
 	  (const :tag "Do not process math in any way" nil)
 	  (const :tag "Use dvipng to make images" dvipng)
 	  (const :tag "Use dvipng to make images" dvipng)

+ 1 - 2
lisp/ox.el

@@ -822,7 +822,7 @@ automatically.  But you can retrieve them with \\[org-export-stack]."
   :package-version '(Org . "8.0")
   :package-version '(Org . "8.0")
   :type 'boolean)
   :type 'boolean)
 
 
-(defcustom org-export-async-init-file "~/.emacs.el"
+(defcustom org-export-async-init-file user-init-file
   "File used to initialize external export process.
   "File used to initialize external export process.
 Value must be an absolute file name.  It defaults to user's
 Value must be an absolute file name.  It defaults to user's
 initialization file.  Though, a specific configuration makes the
 initialization file.  Though, a specific configuration makes the
@@ -830,7 +830,6 @@ process faster and the export more portable."
   :group 'org-export-general
   :group 'org-export-general
   :version "24.4"
   :version "24.4"
   :package-version '(Org . "8.0")
   :package-version '(Org . "8.0")
-  :set (lambda (var val) (set-default var user-init-file))
   :type '(file :must-match t))
   :type '(file :must-match t))
 
 
 (defcustom org-export-dispatch-use-expert-ui nil
 (defcustom org-export-dispatch-use-expert-ui nil