Merge branch 'maint'

This commit is contained in:
Achim Gratz 2013-01-06 18:33:16 +01:00
commit 19460418a0
9 changed files with 36 additions and 20 deletions

View File

@ -3103,7 +3103,7 @@ and prefix with \"OrgSrc\". For example,
(lambda (style text-block text-id text-begins-block-p) (lambda (style text-block text-id text-begins-block-p)
(insert (format "<text:span text:style-name=\"%s\">" style)))) (insert (format "<text:span text:style-name=\"%s\">" style))))
(hfy-end-span-handler (lambda nil (insert "</text:span>")))) (hfy-end-span-handler (lambda nil (insert "</text:span>"))))
(with-no-warnings (htmlfontify-string line)))) (org-no-warnings (htmlfontify-string line))))
(defun org-e-odt-do-format-code (defun org-e-odt-do-format-code
(code &optional lang refs retain-labels num-start) (code &optional lang refs retain-labels num-start)

View File

@ -906,7 +906,7 @@ you want to use two-columns display (see `org-agenda-menu-two-columns')."
:version "24.1" :version "24.1"
:type 'boolean) :type 'boolean)
(define-obsolete-variable-alias 'org-agenda-menu-two-column 'org-agenda-menu-two-columns "24.3") (org-define-obsolete-variable-alias 'org-agenda-menu-two-column 'org-agenda-menu-two-columns "24.3")
(defcustom org-agenda-menu-two-columns nil (defcustom org-agenda-menu-two-columns nil
"Non-nil means, use two columns to show custom commands in the dispatcher. "Non-nil means, use two columns to show custom commands in the dispatcher.
@ -916,7 +916,7 @@ to nil."
:version "24.1" :version "24.1"
:type 'boolean) :type 'boolean)
(define-obsolete-variable-alias 'org-finalize-agenda-hook 'org-agenda-finalize-hook "24.3") (org-define-obsolete-variable-alias 'org-finalize-agenda-hook 'org-agenda-finalize-hook "24.3")
(defcustom org-agenda-finalize-hook nil (defcustom org-agenda-finalize-hook nil
"Hook run just before displaying an agenda buffer. "Hook run just before displaying an agenda buffer.
The buffer is still writable when the hook is called. The buffer is still writable when the hook is called.
@ -7775,7 +7775,7 @@ When called with a prefix argument, include all archive files as well."
""))) "")))
(force-mode-line-update)) (force-mode-line-update))
(define-obsolete-function-alias (org-define-obsolete-function-alias
'org-agenda-post-command-hook 'org-agenda-update-agenda-type "24.3") 'org-agenda-post-command-hook 'org-agenda-update-agenda-type "24.3")
(defun org-agenda-update-agenda-type () (defun org-agenda-update-agenda-type ()

View File

@ -221,7 +221,7 @@ file name Play this sound file, fall back to beep"
(const :tag "Standard beep" t) (const :tag "Standard beep" t)
(file :tag "Play sound file"))) (file :tag "Play sound file")))
(define-obsolete-variable-alias 'org-clock-modeline-total (org-define-obsolete-variable-alias 'org-clock-modeline-total
'org-clock-mode-line-total "24.3") 'org-clock-mode-line-total "24.3")
(defcustom org-clock-mode-line-total 'auto (defcustom org-clock-mode-line-total 'auto

View File

@ -169,6 +169,24 @@ If DELETE is non-nil, delete all those overlays."
(set-buffer-modified-p modified-p)) (set-buffer-modified-p modified-p))
(decompose-region beg end))) (decompose-region beg end)))
(defmacro org-define-obsolete-function-alias (o-name c-name when &optional doc)
"Reconcile the two-argument form of
`define-obsolete-function-alias' in XEmacs/Emacs 22 with the 3-4
argument form in Emacs 23 and later."
(if (or (featurep 'xemacs)
(< emacs-major-version 23))
`(define-obsolete-function-alias ,o-name ,c-name)
`(define-obsolete-function-alias ,o-name ,c-name ,when ,doc)))
(defmacro org-define-obsolete-variable-alias (o-name c-name when &optional doc)
"Reconcile the two-argument form of
`define-obsolete-variable-alias' in XEmacs/Emacs 22 with the 3-4
argument form in Emacs 23 and later."
(if (or (featurep 'xemacs)
(< emacs-major-version 23))
`(define-obsolete-variable-alias ,o-name ,c-name)
`(define-obsolete-variable-alias ,o-name ,c-name ,when ,doc)))
;; Miscellaneous functions ;; Miscellaneous functions
(defun org-add-hook (hook function &optional append local) (defun org-add-hook (hook function &optional append local)

View File

@ -44,6 +44,9 @@
(set-face-doc-string new-face docstring))))) (set-face-doc-string new-face docstring)))))
(put 'org-copy-face 'lisp-indent-function 2) (put 'org-copy-face 'lisp-indent-function 2)
(when (featurep 'xemacs)
(put 'mode-line 'face-alias 'modeline))
(defgroup org-faces nil (defgroup org-faces nil
"Faces in Org-mode." "Faces in Org-mode."
:tag "Org Faces" :tag "Org Faces"

View File

@ -83,7 +83,7 @@
:tag "Org ID" :tag "Org ID"
:group 'org) :group 'org)
(define-obsolete-variable-alias (org-define-obsolete-variable-alias
'org-link-to-org-use-id 'org-id-link-to-org-use-id "24.3") 'org-link-to-org-use-id 'org-id-link-to-org-use-id "24.3")
(defcustom org-id-link-to-org-use-id nil (defcustom org-id-link-to-org-use-id nil
"Non-nil means storing a link to an Org file will use entry IDs. "Non-nil means storing a link to an Org file will use entry IDs.

View File

@ -1718,7 +1718,7 @@ information."
(org-lparse-end-paragraph) (org-lparse-end-paragraph)
(org-lparse-end-list-item (or type "u"))) (org-lparse-end-list-item (or type "u")))
(define-obsolete-function-alias (org-define-obsolete-function-alias
'org-lparse-preprocess-after-blockquote-hook 'org-lparse-preprocess-after-blockquote-hook
'org-lparse-preprocess-after-blockquote 'org-lparse-preprocess-after-blockquote
"24.3") "24.3")
@ -1736,7 +1736,7 @@ information."
(format "ORG-%s-END %s" (upcase (match-string 2)) (format "ORG-%s-END %s" (upcase (match-string 2))
(match-string 3))) t t)))) (match-string 3))) t t))))
(define-obsolete-function-alias (org-define-obsolete-function-alias
'org-lparse-strip-experimental-blocks-maybe-hook 'org-lparse-strip-experimental-blocks-maybe-hook
'org-lparse-strip-experimental-blocks-maybe 'org-lparse-strip-experimental-blocks-maybe
"24.3") "24.3")

View File

@ -128,15 +128,15 @@
(filename &optional up)) (filename &optional up))
(declare-function server-edit "server" (&optional arg)) (declare-function server-edit "server" (&optional arg))
(define-obsolete-function-alias (org-define-obsolete-function-alias
'org-protocol-unhex-compound 'org-link-unescape-compound 'org-protocol-unhex-compound 'org-link-unescape-compound
"2011-02-17") "2011-02-17")
(define-obsolete-function-alias (org-define-obsolete-function-alias
'org-protocol-unhex-string 'org-link-unescape 'org-protocol-unhex-string 'org-link-unescape
"2011-02-17") "2011-02-17")
(define-obsolete-function-alias (org-define-obsolete-function-alias
'org-protocol-unhex-single-byte-sequence 'org-protocol-unhex-single-byte-sequence
'org-link-unescape-single-byte-sequence 'org-link-unescape-single-byte-sequence
"2011-02-17") "2011-02-17")

View File

@ -7572,12 +7572,7 @@ even level numbers will become the next higher odd number."
((< change 0) (max 1 (1+ (* 2 (/ (+ level (* 2 change)) 2)))))) ((< change 0) (max 1 (1+ (* 2 (/ (+ level (* 2 change)) 2))))))
(max 1 (+ level (or change 0))))) (max 1 (+ level (or change 0)))))
(if (boundp 'define-obsolete-function-alias) (org-define-obsolete-function-alias 'org-get-legal-level 'org-get-valid-level "23.1")
(if (or (featurep 'xemacs) (< emacs-major-version 23))
(define-obsolete-function-alias 'org-get-legal-level
'org-get-valid-level)
(define-obsolete-function-alias 'org-get-legal-level
'org-get-valid-level "23.1")))
(defvar org-called-with-limited-levels nil) ;; Dynamically bound in (defvar org-called-with-limited-levels nil) ;; Dynamically bound in
;; ̀org-with-limited-levels' ;; ̀org-with-limited-levels'
@ -18204,7 +18199,7 @@ BEG and END default to the buffer boundaries."
(list 'org-display-inline-remove-overlay)) (list 'org-display-inline-remove-overlay))
(push ov org-inline-image-overlays))))))))) (push ov org-inline-image-overlays)))))))))
(define-obsolete-function-alias (org-define-obsolete-function-alias
'org-display-inline-modification-hook 'org-display-inline-remove-overlay "24.3") 'org-display-inline-modification-hook 'org-display-inline-remove-overlay "24.3")
(defun org-display-inline-remove-overlay (ov after beg end &optional len) (defun org-display-inline-remove-overlay (ov after beg end &optional len)
@ -18586,7 +18581,7 @@ If not, return to the original position and throw an error."
(defvar org-table-auto-blank-field) ; defined in org-table.el (defvar org-table-auto-blank-field) ; defined in org-table.el
(defvar org-speed-command nil) (defvar org-speed-command nil)
(define-obsolete-function-alias (org-define-obsolete-function-alias
'org-speed-command-default-hook 'org-speed-command-activate "24.3") 'org-speed-command-default-hook 'org-speed-command-activate "24.3")
(defun org-speed-command-activate (keys) (defun org-speed-command-activate (keys)
@ -18599,7 +18594,7 @@ Use `org-speed-commands-user' for further customization."
(cdr (assoc keys (append org-speed-commands-user (cdr (assoc keys (append org-speed-commands-user
org-speed-commands-default))))) org-speed-commands-default)))))
(define-obsolete-function-alias (org-define-obsolete-function-alias
'org-babel-speed-command-hook 'org-babel-speed-command-activate "24.3") 'org-babel-speed-command-hook 'org-babel-speed-command-activate "24.3")
(defun org-babel-speed-command-activate (keys) (defun org-babel-speed-command-activate (keys)