diff options
| author | Stefan Monnier | 2013-11-12 14:11:22 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2013-11-12 14:11:22 -0500 |
| commit | 666ffc7e09d3f55e2ce370bc3cf0bda347ae2e21 (patch) | |
| tree | f9fd870f75195e853e0df4fd242055beacc360cc /lisp/org/org.el | |
| parent | 32d15ad99ccc01985ac36db9f9fabdf721202b6d (diff) | |
| download | emacs-666ffc7e09d3f55e2ce370bc3cf0bda347ae2e21.tar.gz emacs-666ffc7e09d3f55e2ce370bc3cf0bda347ae2e21.zip | |
Address some byte-compiler warnings.
* lisp/org/ob-abc.el (org-babel-expand-body:abc): Use dolist.
(org-babel-execute:abc): Fix regexp quoting.
* lisp/org/ob-calc.el (org--var-syms): Rename from `var-syms'.
* lisp/org/ob-lilypond.el (ly-compile-lilyfile): Remove redundant let-binding.
* lisp/org/ob-table.el (sbe): Move debug declaration.
* lisp/org/org-clock.el (org--msg-extra): Rename from `msg-extra'.
* lisp/org/org.el (org-version): Avoid var name starting with _.
(org-inhibit-startup, org-called-with-limited-levels)
(org-link-search-inhibit-query, org-time-was-given)
(org-end-time-was-given, org-def, org-defdecode, org-with-time):
* lisp/org/org-colview.el (org-agenda-overriding-columns-format):
* lisp/org/org-agenda.el (org-agenda-multi, org-depend-tag-blocked)
(org-agenda-show-log-scoped):
* lisp/org/ob-python.el (py-which-bufname, python-shell-buffer-name):
* lisp/org/ob-haskell.el (org-export-copy-to-kill-ring):
* lisp/org/ob-exp.el (org-link-search-inhibit-query):
* lisp/org/ob-R.el (ess-eval-visibly-p):
* lisp/org/ob-core.el (org-src-window-setup): Declare before use.
(org-babel-expand-noweb-references): Remove unused `blocks-in-buffer'.
* lisp/org/ox-odt.el (org-odt-hfy-face-to-css):
* lisp/org/org-src.el (org-src-associate-babel-session, org-src-get-lang-mode):
* lisp/org/org-bibtex.el (org-bibtex-get, org-bibtex-ask, org-bibtex)
(org-bibtex-check):
* lisp/org/ob-tangle.el (org-babel-tangle, org-babel-spec-to-string)
(org-babel-tangle-single-block, org-babel-tangle-comment-links):
* ob-table.el (sbe):
* lisp/org/ob-sqlite.el (org-babel-sqlite-expand-vars):
* lisp/org/ob-sql.el (org-babel-sql-expand-vars):
* lisp/org/ob-shen.el (org-babel-execute:shen):
* lisp/org/ob-sh.el (org-babel-execute:sh, org-babel-sh-evaluate):
* lisp/org/ob-scala.el (org-babel-scala-evaluate):
* lisp/org/ob-ruby.el (org-babel-ruby-table-or-string)
(org-babel-ruby-evaluate):
* ob-python.el (org-babel-python-table-or-string)
(org-babel-python-evaluate-external-process)
(org-babel-python-evaluate-session):
* lisp/org/ob-picolisp.el (org-babel-execute:picolisp):
* lisp/org/ob-perl.el (org-babel-perl-evaluate):
* lisp/org/ob-maxima.el (org-babel-execute:maxima):
* lisp/org/ob-lisp.el (org-babel-execute:lisp):
* lisp/org/ob-java.el (org-babel-execute:java):
* lisp/org/ob-io.el (org-babel-io-evaluate):
* ob-haskell.el (org-babel-execute:haskell):
* lisp/org/ob-fortran.el (org-babel-execute:fortran):
* ob-exp.el (org-babel-exp-code):
* lisp/org/ob-emacs-lisp.el (org-babel-execute:emacs-lisp):
* lisp/org/ob-ditaa.el (org-babel-execute:ditaa):
* ob-core.el (org-babel-execute-src-block, org-babel-sha1-hash)
(org-babel-parse-header-arguments, org-babel-reassemble-table)
(org-babel-goto-src-block-head, org-babel-mark-block)
(org-babel-expand-noweb-references, org-babel-script-escape)
(org-babel-process-file-name):
* lisp/org/ob-clojure.el (org-babel-execute:clojure):
* ob-calc.el (org-babel-execute:calc):
* lisp/org/ob-awk.el (org-babel-execute:awk):
* ob-abc.el (org-babel-execute:abc):
* ob-R.el (org-babel-expand-body:R):
* lisp/org/ob-C.el (org-babel-C-execute): Avoid deprecated ((lambda) ...).
Diffstat (limited to 'lisp/org/org.el')
| -rw-r--r-- | lisp/org/org.el | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el index 4a74d44fe1d..8e23ec9f87f 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -82,7 +82,7 @@ | |||
| 82 | (require 'org-macs) | 82 | (require 'org-macs) |
| 83 | (require 'org-compat) | 83 | (require 'org-compat) |
| 84 | 84 | ||
| 85 | ;; `org-outline-regexp' ought to be a defconst but is let-binding in | 85 | ;; `org-outline-regexp' ought to be a defconst but is let-bound in |
| 86 | ;; some places -- e.g. see the macro `org-with-limited-levels'. | 86 | ;; some places -- e.g. see the macro `org-with-limited-levels'. |
| 87 | ;; | 87 | ;; |
| 88 | ;; In Org buffers, the value of `outline-regexp' is that of | 88 | ;; In Org buffers, the value of `outline-regexp' is that of |
| @@ -304,13 +304,13 @@ When MESSAGE is non-nil, display a message with the version." | |||
| 304 | org-install-dir | 304 | org-install-dir |
| 305 | (concat "mixed installation! " org-install-dir " and " org-dir)) | 305 | (concat "mixed installation! " org-install-dir " and " org-dir)) |
| 306 | "org-loaddefs.el can not be found!"))) | 306 | "org-loaddefs.el can not be found!"))) |
| 307 | (_version (if full version org-version))) | 307 | (version1 (if full version org-version))) |
| 308 | (if (org-called-interactively-p 'interactive) | 308 | (if (org-called-interactively-p 'interactive) |
| 309 | (if here | 309 | (if here |
| 310 | (insert version) | 310 | (insert version) |
| 311 | (message version)) | 311 | (message version)) |
| 312 | (if message (message _version)) | 312 | (if message (message _version)) |
| 313 | _version))) | 313 | version1))) |
| 314 | 314 | ||
| 315 | (defconst org-version (org-version)) | 315 | (defconst org-version (org-version)) |
| 316 | 316 | ||
| @@ -4804,6 +4804,8 @@ This can be turned on/off through `org-toggle-tags-groups'." | |||
| 4804 | :group 'org-startup | 4804 | :group 'org-startup |
| 4805 | :type 'boolean) | 4805 | :type 'boolean) |
| 4806 | 4806 | ||
| 4807 | (defvar org-inhibit-startup nil) ; Dynamically-scoped param. | ||
| 4808 | |||
| 4807 | (defun org-toggle-tags-groups () | 4809 | (defun org-toggle-tags-groups () |
| 4808 | "Toggle support for group tags. | 4810 | "Toggle support for group tags. |
| 4809 | Support for group tags is controlled by the option | 4811 | Support for group tags is controlled by the option |
| @@ -5264,7 +5266,6 @@ This variable is set by `org-before-change-function'. | |||
| 5264 | "Every change indicates that a table might need an update." | 5266 | "Every change indicates that a table might need an update." |
| 5265 | (setq org-table-may-need-update t)) | 5267 | (setq org-table-may-need-update t)) |
| 5266 | (defvar org-mode-map) | 5268 | (defvar org-mode-map) |
| 5267 | (defvar org-inhibit-startup nil) ; Dynamically-scoped param. | ||
| 5268 | (defvar org-inhibit-startup-visibility-stuff nil) ; Dynamically-scoped param. | 5269 | (defvar org-inhibit-startup-visibility-stuff nil) ; Dynamically-scoped param. |
| 5269 | (defvar org-agenda-keep-modes nil) ; Dynamically-scoped param. | 5270 | (defvar org-agenda-keep-modes nil) ; Dynamically-scoped param. |
| 5270 | (defvar org-inhibit-logging nil) ; Dynamically-scoped param. | 5271 | (defvar org-inhibit-logging nil) ; Dynamically-scoped param. |
| @@ -6714,6 +6715,8 @@ in special contexts. | |||
| 6714 | (setq org-cycle-global-status 'overview) | 6715 | (setq org-cycle-global-status 'overview) |
| 6715 | (run-hook-with-args 'org-cycle-hook 'overview))))) | 6716 | (run-hook-with-args 'org-cycle-hook 'overview))))) |
| 6716 | 6717 | ||
| 6718 | (defvar org-called-with-limited-levels);Dyn-bound in ̀org-with-limited-levels'. | ||
| 6719 | |||
| 6717 | (defun org-cycle-internal-local () | 6720 | (defun org-cycle-internal-local () |
| 6718 | "Do the local cycling action." | 6721 | "Do the local cycling action." |
| 6719 | (let ((goal-column 0) eoh eol eos has-children children-skipped struct) | 6722 | (let ((goal-column 0) eoh eol eos has-children children-skipped struct) |
| @@ -7944,8 +7947,6 @@ even level numbers will become the next higher odd number." | |||
| 7944 | (define-obsolete-function-alias 'org-get-legal-level | 7947 | (define-obsolete-function-alias 'org-get-legal-level |
| 7945 | 'org-get-valid-level "23.1"))) | 7948 | 'org-get-valid-level "23.1"))) |
| 7946 | 7949 | ||
| 7947 | (defvar org-called-with-limited-levels nil) ;; Dynamically bound in | ||
| 7948 | ;; ̀org-with-limited-levels' | ||
| 7949 | (defun org-promote () | 7950 | (defun org-promote () |
| 7950 | "Promote the current heading higher up the tree. | 7951 | "Promote the current heading higher up the tree. |
| 7951 | If the region is active in `transient-mark-mode', promote all headings | 7952 | If the region is active in `transient-mark-mode', promote all headings |
| @@ -10321,6 +10322,7 @@ Functions in this hook must return t if they identify and follow | |||
| 10321 | a link at point. If they don't find anything interesting at point, | 10322 | a link at point. If they don't find anything interesting at point, |
| 10322 | they must return nil.") | 10323 | they must return nil.") |
| 10323 | 10324 | ||
| 10325 | (defvar org-link-search-inhibit-query nil) ;; dynamically scoped | ||
| 10324 | (defvar clean-buffer-list-kill-buffer-names) ; Defined in midnight.el | 10326 | (defvar clean-buffer-list-kill-buffer-names) ; Defined in midnight.el |
| 10325 | (defun org-open-at-point (&optional arg reference-buffer) | 10327 | (defun org-open-at-point (&optional arg reference-buffer) |
| 10326 | "Open link at or after point. | 10328 | "Open link at or after point. |
| @@ -10696,7 +10698,6 @@ the window configuration before `org-open-at-point' was called using: | |||
| 10696 | 10698 | ||
| 10697 | (set-window-configuration org-window-config-before-follow-link)") | 10699 | (set-window-configuration org-window-config-before-follow-link)") |
| 10698 | 10700 | ||
| 10699 | (defvar org-link-search-inhibit-query nil) ;; dynamically scoped | ||
| 10700 | (defun org-link-search (s &optional type avoid-pos stealth) | 10701 | (defun org-link-search (s &optional type avoid-pos stealth) |
| 10701 | "Search for a link search option. | 10702 | "Search for a link search option. |
| 10702 | If S is surrounded by forward slashes, it is interpreted as a | 10703 | If S is surrounded by forward slashes, it is interpreted as a |
| @@ -13104,6 +13105,9 @@ nil." | |||
| 13104 | (delete-region (point-at-bol) | 13105 | (delete-region (point-at-bol) |
| 13105 | (min (point-max) (1+ (point-at-eol)))))))))) | 13106 | (min (point-max) (1+ (point-at-eol)))))))))) |
| 13106 | 13107 | ||
| 13108 | (defvar org-time-was-given) ; dynamically scoped parameter | ||
| 13109 | (defvar org-end-time-was-given) ; dynamically scoped parameter | ||
| 13110 | |||
| 13107 | (defun org-add-planning-info (what &optional time &rest remove) | 13111 | (defun org-add-planning-info (what &optional time &rest remove) |
| 13108 | "Insert new timestamp with keyword in the line directly after the headline. | 13112 | "Insert new timestamp with keyword in the line directly after the headline. |
| 13109 | WHAT indicates what kind of time stamp to add. TIME indicates the time to use. | 13113 | WHAT indicates what kind of time stamp to add. TIME indicates the time to use. |
| @@ -16035,8 +16039,6 @@ Return the position where this entry starts, or nil if there is no such entry." | |||
| 16035 | (defvar org-last-changed-timestamp nil) | 16039 | (defvar org-last-changed-timestamp nil) |
| 16036 | (defvar org-last-inserted-timestamp nil | 16040 | (defvar org-last-inserted-timestamp nil |
| 16037 | "The last time stamp inserted with `org-insert-time-stamp'.") | 16041 | "The last time stamp inserted with `org-insert-time-stamp'.") |
| 16038 | (defvar org-time-was-given) ; dynamically scoped parameter | ||
| 16039 | (defvar org-end-time-was-given) ; dynamically scoped parameter | ||
| 16040 | (defvar org-ts-what) ; dynamically scoped parameter | 16042 | (defvar org-ts-what) ; dynamically scoped parameter |
| 16041 | 16043 | ||
| 16042 | (defun org-time-stamp (arg &optional inactive) | 16044 | (defun org-time-stamp (arg &optional inactive) |
| @@ -16225,6 +16227,10 @@ So these are more for recording a certain time/date." | |||
| 16225 | map) | 16227 | map) |
| 16226 | "Keymap for minibuffer commands when using `org-read-date'.") | 16228 | "Keymap for minibuffer commands when using `org-read-date'.") |
| 16227 | 16229 | ||
| 16230 | (defvar org-def) | ||
| 16231 | (defvar org-defdecode) | ||
| 16232 | (defvar org-with-time) | ||
| 16233 | |||
| 16228 | (defun org-read-date (&optional org-with-time to-time from-string prompt | 16234 | (defun org-read-date (&optional org-with-time to-time from-string prompt |
| 16229 | default-time default-input inactive) | 16235 | default-time default-input inactive) |
| 16230 | "Read a date, possibly a time, and make things smooth for the user. | 16236 | "Read a date, possibly a time, and make things smooth for the user. |
| @@ -16371,9 +16377,6 @@ user." | |||
| 16371 | (nth 2 final) (nth 1 final)) | 16377 | (nth 2 final) (nth 1 final)) |
| 16372 | (format "%04d-%02d-%02d" (nth 5 final) (nth 4 final) (nth 3 final)))))) | 16378 | (format "%04d-%02d-%02d" (nth 5 final) (nth 4 final) (nth 3 final)))))) |
| 16373 | 16379 | ||
| 16374 | (defvar org-def) | ||
| 16375 | (defvar org-defdecode) | ||
| 16376 | (defvar org-with-time) | ||
| 16377 | (defun org-read-date-display () | 16380 | (defun org-read-date-display () |
| 16378 | "Display the current date prompt interpretation in the minibuffer." | 16381 | "Display the current date prompt interpretation in the minibuffer." |
| 16379 | (when org-read-date-display-live | 16382 | (when org-read-date-display-live |