瀏覽代碼

Merge branch 'maint'

Bastien Guerry 12 年之前
父節點
當前提交
668ba5de0e
共有 10 個文件被更改,包括 26 次插入47 次删除
  1. 4 0
      contrib/lisp/org-colview-xemacs.el
  2. 1 0
      lisp/org-agenda.el
  3. 1 0
      lisp/org-archive.el
  4. 3 0
      lisp/org-clock.el
  5. 5 0
      lisp/org-colview.el
  6. 3 5
      lisp/org-docview.el
  7. 4 0
      lisp/org-id.el
  8. 0 8
      lisp/org-macs.el
  9. 3 0
      lisp/org-table.el
  10. 2 34
      lisp/org.el

+ 4 - 0
contrib/lisp/org-colview-xemacs.el

@@ -477,6 +477,7 @@ This is the compiled version of the format.")
 (defvar org-colview-initial-truncate-line-value nil
 (defvar org-colview-initial-truncate-line-value nil
   "Remember the value of `truncate-lines' across colview.")
   "Remember the value of `truncate-lines' across colview.")
 
 
+;;;###autoload
 (defun org-columns-remove-overlays ()
 (defun org-columns-remove-overlays ()
   "Remove all currently active column overlays."
   "Remove all currently active column overlays."
   (interactive)
   (interactive)
@@ -820,6 +821,7 @@ around it."
   (let ((value (get-char-property (point) 'org-columns-value)))
   (let ((value (get-char-property (point) 'org-columns-value)))
     (org-open-link-from-string value arg)))
     (org-open-link-from-string value arg)))
 
 
+;;;###autoload
 (defun org-columns-get-format-and-top-level ()
 (defun org-columns-get-format-and-top-level ()
   (let (fmt)
   (let (fmt)
     (when (condition-case nil (org-back-to-heading) (error nil))
     (when (condition-case nil (org-back-to-heading) (error nil))
@@ -1091,6 +1093,7 @@ Don't set this, this is meant for dynamic scoping.")
                     (org-overlay-display ov (format fmt val))))))
                     (org-overlay-display ov (format fmt val))))))
 	    org-columns-overlays))))
 	    org-columns-overlays))))
 
 
+;;;###autoload
 (defun org-columns-compute (property)
 (defun org-columns-compute (property)
   "Sum the values of property PROPERTY hierarchically, for the entire buffer."
   "Sum the values of property PROPERTY hierarchically, for the entire buffer."
   (interactive)
   (interactive)
@@ -1187,6 +1190,7 @@ Don't set this, this is meant for dynamic scoping.")
 	(setq sum (+ (string-to-number (pop l)) (/ sum 60))))
 	(setq sum (+ (string-to-number (pop l)) (/ sum 60))))
       sum)))
       sum)))
 
 
+;;;###autoload
 (defun org-columns-number-to-string (n fmt &optional printf)
 (defun org-columns-number-to-string (n fmt &optional printf)
   "Convert a computed column number to a string value, according to FMT."
   "Convert a computed column number to a string value, according to FMT."
   (cond
   (cond

+ 1 - 0
lisp/org-agenda.el

@@ -5452,6 +5452,7 @@ This function is invoked if `org-agenda-todo-ignore-deadlines',
 	(>= days n)
 	(>= days n)
       (<= days n))))
       (<= days n))))
 
 
+;;;###autoload
 (defun org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item
 (defun org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item
   (&optional end)
   (&optional end)
   "Do we have a reason to ignore this TODO entry because it has a time stamp?"
   "Do we have a reason to ignore this TODO entry because it has a time stamp?"

+ 1 - 0
lisp/org-archive.el

@@ -135,6 +135,7 @@ information."
 	  (match-string 1))
 	  (match-string 1))
 	 (t org-archive-location))))))
 	 (t org-archive-location))))))
 
 
+;;;###autoload
 (defun org-add-archive-files (files)
 (defun org-add-archive-files (files)
   "Splice the archive files into the list of files.
   "Splice the archive files into the list of files.
 This implies visiting all these files and finding out what the
 This implies visiting all these files and finding out what the

+ 3 - 0
lisp/org-clock.el

@@ -1873,6 +1873,7 @@ will be easy to remove."
       (overlay-put ov 'end-glyph (make-glyph tx)))
       (overlay-put ov 'end-glyph (make-glyph tx)))
     (push ov org-clock-overlays)))
     (push ov org-clock-overlays)))
 
 
+;;;###autoload
 (defun org-clock-remove-overlays (&optional beg end noremove)
 (defun org-clock-remove-overlays (&optional beg end noremove)
   "Remove the occur highlights from the buffer.
   "Remove the occur highlights from the buffer.
 BEG and END are ignored.  If NOREMOVE is nil, remove this function
 BEG and END are ignored.  If NOREMOVE is nil, remove this function
@@ -2145,6 +2146,7 @@ If you can combine both, the month starting day will have priority."
    ((= n 3) "3rd")
    ((= n 3) "3rd")
    ((= n 4) "4th")))
    ((= n 4) "4th")))
 
 
+;;;###autoload
 (defun org-clocktable-shift (dir n)
 (defun org-clocktable-shift (dir n)
   "Try to shift the :block date of the clocktable at point.
   "Try to shift the :block date of the clocktable at point.
 Point must be in the #+BEGIN: line of a clocktable, or this function
 Point must be in the #+BEGIN: line of a clocktable, or this function
@@ -2754,6 +2756,7 @@ This function is made for clock tables."
 (defvar org-clock-loaded nil
 (defvar org-clock-loaded nil
   "Was the clock file loaded?")
   "Was the clock file loaded?")
 
 
+;;;###autoload
 (defun org-clock-update-time-maybe ()
 (defun org-clock-update-time-maybe ()
   "If this is a CLOCK line, update it and return t.
   "If this is a CLOCK line, update it and return t.
 Otherwise, return nil."
 Otherwise, return nil."

+ 5 - 0
lisp/org-colview.el

@@ -323,6 +323,7 @@ for the duration of the command.")
 (defvar org-colview-initial-truncate-line-value nil
 (defvar org-colview-initial-truncate-line-value nil
   "Remember the value of `truncate-lines' across colview.")
   "Remember the value of `truncate-lines' across colview.")
 
 
+;;;###autoload
 (defun org-columns-remove-overlays ()
 (defun org-columns-remove-overlays ()
   "Remove all currently active column overlays."
   "Remove all currently active column overlays."
   (interactive)
   (interactive)
@@ -670,6 +671,7 @@ around it."
   (let ((value (get-char-property (point) 'org-columns-value)))
   (let ((value (get-char-property (point) 'org-columns-value)))
     (org-open-link-from-string value arg)))
     (org-open-link-from-string value arg)))
 
 
+;;;###autoload
 (defun org-columns-get-format-and-top-level ()
 (defun org-columns-get-format-and-top-level ()
   (let ((fmt (org-columns-get-format)))
   (let ((fmt (org-columns-get-format)))
     (org-columns-goto-top-level)
     (org-columns-goto-top-level)
@@ -951,6 +953,8 @@ display, or in the #+COLUMNS line of the current buffer."
 
 
 (defvar org-inlinetask-min-level
 (defvar org-inlinetask-min-level
   (if (featurep 'org-inlinetask) org-inlinetask-min-level 15))
   (if (featurep 'org-inlinetask) org-inlinetask-min-level 15))
+
+;;;###autoload
 (defun org-columns-compute (property)
 (defun org-columns-compute (property)
   "Sum the values of property PROPERTY hierarchically, for the entire buffer."
   "Sum the values of property PROPERTY hierarchically, for the entire buffer."
   (interactive)
   (interactive)
@@ -1054,6 +1058,7 @@ display, or in the #+COLUMNS line of the current buffer."
 	(setq sum (+ (string-to-number (pop l)) (/ sum 60))))
 	(setq sum (+ (string-to-number (pop l)) (/ sum 60))))
       sum)))
       sum)))
 
 
+;;;###autoload
 (defun org-columns-number-to-string (n fmt &optional printf)
 (defun org-columns-number-to-string (n fmt &optional printf)
   "Convert a computed column number to a string value, according to FMT."
   "Convert a computed column number to a string value, according to FMT."
   (cond
   (cond

+ 3 - 5
lisp/org-docview.el

@@ -44,12 +44,10 @@
 
 
 
 
 (require 'org)
 (require 'org)
+(require 'doc-view)
 
 
-(declare-function doc-view-goto-page "ext:doc-view" (page))
-(declare-function image-mode-window-get "ext:image-mode"
-		  (prop &optional winprops))
-
-(org-autoload "doc-view" '(doc-view-goto-page))
+(declare-function doc-view-goto-page "doc-view" (page))
+(declare-function image-mode-window-get "image-mode" (prop &optional winprops))
 
 
 (org-add-link-type "docview" 'org-docview-open 'org-docview-export)
 (org-add-link-type "docview" 'org-docview-open 'org-docview-export)
 (add-hook 'org-store-link-functions 'org-docview-store-link)
 (add-hook 'org-store-link-functions 'org-docview-store-link)

+ 4 - 0
lisp/org-id.el

@@ -233,6 +233,7 @@ With optional argument FORCE, force the creation of a new ID."
     (org-entry-put (point) "ID" nil))
     (org-entry-put (point) "ID" nil))
   (org-id-get (point) 'create))
   (org-id-get (point) 'create))
 
 
+;;;###autoload
 (defun org-id-copy ()
 (defun org-id-copy ()
   "Copy the ID of the entry at point to the kill ring.
   "Copy the ID of the entry at point to the kill ring.
 Create an ID if necessary."
 Create an ID if necessary."
@@ -258,6 +259,7 @@ In any case, the ID of the entry is returned."
 	(org-id-add-location id (buffer-file-name (buffer-base-buffer)))
 	(org-id-add-location id (buffer-file-name (buffer-base-buffer)))
 	id)))))
 	id)))))
 
 
+;;;###autoload
 (defun org-id-get-with-outline-path-completion (&optional targets)
 (defun org-id-get-with-outline-path-completion (&optional targets)
   "Use `outline-path-completion' to retrieve the ID of an entry.
   "Use `outline-path-completion' to retrieve the ID of an entry.
 TARGETS may be a setting for `org-refile-targets' to define
 TARGETS may be a setting for `org-refile-targets' to define
@@ -274,6 +276,7 @@ If necessary, the ID is created."
     (prog1 (org-id-get pom 'create)
     (prog1 (org-id-get pom 'create)
       (move-marker pom nil))))
       (move-marker pom nil))))
 
 
+;;;###autoload
 (defun org-id-get-with-outline-drilling (&optional targets)
 (defun org-id-get-with-outline-drilling (&optional targets)
   "Use an outline-cycling interface to retrieve the ID of an entry.
   "Use an outline-cycling interface to retrieve the ID of an entry.
 This only finds entries in the current buffer, using `org-get-location'.
 This only finds entries in the current buffer, using `org-get-location'.
@@ -320,6 +323,7 @@ With optional argument MARKERP, return the position as a new marker."
 
 
 ;; Creating new IDs
 ;; Creating new IDs
 
 
+;;;###autoload
 (defun org-id-new (&optional prefix)
 (defun org-id-new (&optional prefix)
   "Create a new globally unique ID.
   "Create a new globally unique ID.
 
 

+ 0 - 8
lisp/org-macs.el

@@ -283,14 +283,6 @@ we turn off invisibility temporarily.  Use this in a `let' form."
        (<= (match-beginning n) pos)
        (<= (match-beginning n) pos)
        (>= (match-end n) pos)))
        (>= (match-end n) pos)))
 
 
-(defun org-autoload (file functions)
-  "Establish autoload for all FUNCTIONS in FILE, if not bound already."
-  (let ((d (format "Documentation will be available after `%s.el' is loaded."
-		   file))
-	f)
-    (while (setq f (pop functions))
-      (or (fboundp f) (autoload f file d t)))))
-
 (defun org-match-line (re)
 (defun org-match-line (re)
   "Looking-at at the beginning of the current line."
   "Looking-at at the beginning of the current line."
   (save-excursion
   (save-excursion

+ 3 - 0
lisp/org-table.el

@@ -921,6 +921,7 @@ When nil, simply write \"#ERROR\" in corrupted fields.")
     (setq org-table-may-need-update nil)
     (setq org-table-may-need-update nil)
     ))
     ))
 
 
+;;;###autoload
 (defun org-table-begin (&optional table-type)
 (defun org-table-begin (&optional table-type)
   "Find the beginning of the table and return its position.
   "Find the beginning of the table and return its position.
 With argument TABLE-TYPE, go to the beginning of a table.el-type table."
 With argument TABLE-TYPE, go to the beginning of a table.el-type table."
@@ -934,6 +935,7 @@ With argument TABLE-TYPE, go to the beginning of a table.el-type table."
       (beginning-of-line 2)
       (beginning-of-line 2)
       (point))))
       (point))))
 
 
+;;;###autoload
 (defun org-table-end (&optional table-type)
 (defun org-table-end (&optional table-type)
   "Find the end of the table and return its position.
   "Find the end of the table and return its position.
 With argument TABLE-TYPE, go to the end of a table.el-type table."
 With argument TABLE-TYPE, go to the end of a table.el-type table."
@@ -1205,6 +1207,7 @@ Return t when the line exists, nil if it does not exist."
 		(< (setq cnt (1+ cnt)) N)))
 		(< (setq cnt (1+ cnt)) N)))
     (= cnt N)))
     (= cnt N)))
 
 
+;;;###autoload
 (defun org-table-blank-field ()
 (defun org-table-blank-field ()
   "Blank the current table field or active region."
   "Blank the current table field or active region."
   (interactive)
   (interactive)

+ 2 - 34
lisp/org.el

@@ -4242,12 +4242,6 @@ Normal means, no org-mode-specific context."
   "Detect the first line outside a table when searching from within it.
   "Detect the first line outside a table when searching from within it.
 This works for both table types.")
 This works for both table types.")
 
 
-;; Autoload the functions in org-table.el that are needed by functions here.
-
-(eval-and-compile
-  (org-autoload "org-table"
-		'(org-table-begin org-table-blank-field org-table-end)))
-
 (defconst org-TBLFM-regexp "^[ \t]*#\\+TBLFM: "
 (defconst org-TBLFM-regexp "^[ \t]*#\\+TBLFM: "
   "Detect a #+TBLFM line.")
   "Detect a #+TBLFM line.")
 
 
@@ -4328,12 +4322,6 @@ If TABLE-TYPE is non-nil, also check for table.el-type tables."
 	(re-search-forward org-table-any-border-regexp nil 1))))
 	(re-search-forward org-table-any-border-regexp nil 1))))
   (unless quietly (message "Mapping tables: done")))
   (unless quietly (message "Mapping tables: done")))
 
 
-;; Declare and autoload functions from org-agenda.el
-
-(eval-and-compile
-  (org-autoload "org-agenda"
-		'(org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item)))
-
 (declare-function org-clock-save-markers-for-cut-and-paste "org-clock" (beg end))
 (declare-function org-clock-save-markers-for-cut-and-paste "org-clock" (beg end))
 (declare-function org-clock-update-mode-line "org-clock" ())
 (declare-function org-clock-update-mode-line "org-clock" ())
 (declare-function org-resolve-clocks "org-clock"
 (declare-function org-resolve-clocks "org-clock"
@@ -4359,11 +4347,6 @@ If TABLE-TYPE is non-nil, also check for table.el-type tables."
 Return nil if no clock is running."
 Return nil if no clock is running."
   (marker-buffer org-clock-marker))
   (marker-buffer org-clock-marker))
 
 
-(eval-and-compile
-  (org-autoload "org-clock" '(org-clock-remove-overlays
-			      org-clock-update-time-maybe
-			      org-clocktable-shift)))
-
 (defun org-check-running-clock ()
 (defun org-check-running-clock ()
   "Check if the current buffer contains the running clock.
   "Check if the current buffer contains the running clock.
 If yes, offer to stop it and to save the buffer with the changes."
 If yes, offer to stop it and to save the buffer with the changes."
@@ -4563,33 +4546,18 @@ Otherwise, these types are allowed:
 
 
 (defalias 'org-advertized-archive-subtree 'org-archive-subtree)
 (defalias 'org-advertized-archive-subtree 'org-archive-subtree)
 
 
-(eval-and-compile
-  (org-autoload "org-archive"
-		'(org-add-archive-files)))
-
-;; Autoload Column View Code
+;; Declare Column View Code
 
 
 (declare-function org-columns-number-to-string "org-colview" (n fmt &optional printf))
 (declare-function org-columns-number-to-string "org-colview" (n fmt &optional printf))
 (declare-function org-columns-get-format-and-top-level "org-colview" ())
 (declare-function org-columns-get-format-and-top-level "org-colview" ())
 (declare-function org-columns-compute "org-colview" (property))
 (declare-function org-columns-compute "org-colview" (property))
 
 
-(org-autoload (if (featurep 'xemacs) "org-colview-xemacs" "org-colview")
-	      '(org-columns-number-to-string
-		org-columns-get-format-and-top-level
-		org-columns-compute
-		org-columns-remove-overlays))
-
-;; Autoload ID code
+;; Declare ID code
 
 
 (declare-function org-id-store-link "org-id")
 (declare-function org-id-store-link "org-id")
 (declare-function org-id-locations-load "org-id")
 (declare-function org-id-locations-load "org-id")
 (declare-function org-id-locations-save "org-id")
 (declare-function org-id-locations-save "org-id")
 (defvar org-id-track-globally)
 (defvar org-id-track-globally)
-(org-autoload "org-id"
-	      '(org-id-new
-		org-id-copy
-		org-id-get-with-outline-path-completion
-		org-id-get-with-outline-drilling))
 
 
 ;;; Variables for pre-computed regular expressions, all buffer local
 ;;; Variables for pre-computed regular expressions, all buffer local