瀏覽代碼

Merge branch 'maint'

Kyle Meyer 10 年之前
父節點
當前提交
984b1ff0ab
共有 18 個文件被更改,包括 99 次插入84 次删除
  1. 16 16
      doc/org.texi
  2. 1 1
      lisp/ob-clojure.el
  3. 1 1
      lisp/ob-core.el
  4. 1 1
      lisp/ob-exp.el
  5. 1 1
      lisp/ob-lilypond.el
  6. 3 3
      lisp/ob-ocaml.el
  7. 7 7
      lisp/org-agenda.el
  8. 4 4
      lisp/org-archive.el
  9. 1 1
      lisp/org-capture.el
  10. 1 1
      lisp/org-colview.el
  11. 11 0
      lisp/org-compat.el
  12. 1 1
      lisp/org-crypt.el
  13. 1 1
      lisp/org-feed.el
  14. 4 3
      lisp/org-mouse.el
  15. 4 2
      lisp/org-pcomplete.el
  16. 31 30
      lisp/org.el
  17. 10 10
      lisp/ox-html.el
  18. 1 1
      lisp/ox-org.el

+ 16 - 16
doc/org.texi

@@ -8642,7 +8642,7 @@ be accumulated.  You can add a filter preset through the option
 @orgcmd{_,org-agenda-filter-by-effort}
 @orgcmd{_,org-agenda-filter-by-effort}
 @vindex org-agenda-effort-filter-preset
 @vindex org-agenda-effort-filter-preset
 @vindex org-sort-agenda-noeffort-is-high
 @vindex org-sort-agenda-noeffort-is-high
-Filter the agenda view with respect to effort estimates.  
+Filter the agenda view with respect to effort estimates.
 You first need to set up allowed efforts globally, for example
 You first need to set up allowed efforts globally, for example
 @lisp
 @lisp
 (setq org-global-properties
 (setq org-global-properties
@@ -14392,7 +14392,7 @@ however, override everything.
 
 
 @subsubheading @LaTeX{} specific properties
 @subsubheading @LaTeX{} specific properties
 
 
-@multitable {@code{:latex-link-with-unknown-path-format}} {@code{org-latex-link-with-unknown-path-format}} 
+@multitable {@code{:latex-link-with-unknown-path-format}} {@code{org-latex-link-with-unknown-path-format}}
 @item @code{:latex-active-timestamp-format}    @tab @code{org-latex-active-timestamp-format}
 @item @code{:latex-active-timestamp-format}    @tab @code{org-latex-active-timestamp-format}
 @item @code{:latex-caption-above}              @tab @code{org-latex-caption-above}
 @item @code{:latex-caption-above}              @tab @code{org-latex-caption-above}
 @item @code{:latex-classes}                    @tab @code{org-latex-classes}
 @item @code{:latex-classes}                    @tab @code{org-latex-classes}
@@ -15084,22 +15084,22 @@ Code blocks in the following languages are supported.
 @multitable @columnfractions 0.25 0.25 0.25 0.25
 @multitable @columnfractions 0.25 0.25 0.25 0.25
 @headitem @b{Language} @tab @b{Identifier} @tab @b{Language} @tab @b{Identifier}
 @headitem @b{Language} @tab @b{Identifier} @tab @b{Language} @tab @b{Identifier}
 @item Asymptote @tab asymptote @tab Awk @tab awk
 @item Asymptote @tab asymptote @tab Awk @tab awk
-@item C @tab C @tab C++ @tab C++ 
-@item Clojure @tab clojure @tab CSS @tab css 
-@item D @tab d @tab ditaa @tab ditaa 
+@item C @tab C @tab C++ @tab C++
+@item Clojure @tab clojure @tab CSS @tab css
+@item D @tab d @tab ditaa @tab ditaa
 @item Graphviz @tab dot @tab Emacs Calc @tab calc
 @item Graphviz @tab dot @tab Emacs Calc @tab calc
 @item Emacs Lisp @tab emacs-lisp @tab Fortran @tab fortran
 @item Emacs Lisp @tab emacs-lisp @tab Fortran @tab fortran
-@item gnuplot @tab gnuplot @tab Haskell @tab haskell 
-@item Java @tab java @tab Javascript @tab js 
-@item LaTeX @tab latex @tab Ledger @tab ledger 
-@item Lisp @tab lisp @tab Lilypond @tab lilypond 
-@item MATLAB @tab matlab @tab Mscgen @tab mscgen 
-@item Objective Caml @tab ocaml @tab Octave @tab octave 
-@item Org mode @tab org @tab Oz @tab oz 
-@item Perl @tab perl @tab Plantuml @tab plantuml 
-@item Processing.js @tab processing @tab Python @tab python 
-@item R @tab R @tab Ruby @tab ruby 
-@item Sass @tab sass @tab Scheme @tab scheme 
+@item gnuplot @tab gnuplot @tab Haskell @tab haskell
+@item Java @tab java @tab Javascript @tab js
+@item LaTeX @tab latex @tab Ledger @tab ledger
+@item Lisp @tab lisp @tab Lilypond @tab lilypond
+@item MATLAB @tab matlab @tab Mscgen @tab mscgen
+@item Objective Caml @tab ocaml @tab Octave @tab octave
+@item Org mode @tab org @tab Oz @tab oz
+@item Perl @tab perl @tab Plantuml @tab plantuml
+@item Processing.js @tab processing @tab Python @tab python
+@item R @tab R @tab Ruby @tab ruby
+@item Sass @tab sass @tab Scheme @tab scheme
 @item GNU Screen @tab screen @tab Sed @tab sed
 @item GNU Screen @tab screen @tab Sed @tab sed
 @item shell @tab sh @tab SQL @tab sql
 @item shell @tab sh @tab SQL @tab sql
 @item SQLite @tab sqlite @tab @tab
 @item SQLite @tab sqlite @tab @tab

+ 1 - 1
lisp/ob-clojure.el

@@ -99,7 +99,7 @@
       (slime
       (slime
        (require 'slime)
        (require 'slime)
        (with-temp-buffer
        (with-temp-buffer
-    	 (insert expanded)
+	 (insert expanded)
 	 (setq result
 	 (setq result
 	       (slime-eval
 	       (slime-eval
 		`(swank:eval-and-grab-output
 		`(swank:eval-and-grab-output

+ 1 - 1
lisp/ob-core.el

@@ -37,7 +37,7 @@
 (defvar org-babel-call-process-region-original nil)
 (defvar org-babel-call-process-region-original nil)
 (defvar org-src-lang-modes)
 (defvar org-src-lang-modes)
 (defvar org-babel-library-of-babel)
 (defvar org-babel-library-of-babel)
-(declare-function show-all "outline" ())
+(declare-function outline-show-all "outline" ())
 (declare-function org-every "org" (pred seq))
 (declare-function org-every "org" (pred seq))
 (declare-function org-remove-indentation "org" (code &optional n))
 (declare-function org-remove-indentation "org" (code &optional n))
 (declare-function org-reduce "org" (CL-FUNC CL-SEQ &rest CL-KEYS))
 (declare-function org-reduce "org" (CL-FUNC CL-SEQ &rest CL-KEYS))

+ 1 - 1
lisp/ob-exp.el

@@ -384,7 +384,7 @@ replaced with its value."
 	    (nth 1 info))))
 	    (nth 1 info))))
   (org-fill-template
   (org-fill-template
    (if (eq type 'inline)
    (if (eq type 'inline)
-       org-babel-exp-inline-code-template 
+       org-babel-exp-inline-code-template
        org-babel-exp-code-template)
        org-babel-exp-code-template)
    `(("lang"  . ,(nth 0 info))
    `(("lang"  . ,(nth 0 info))
      ("body"  . ,(org-escape-code-in-string (nth 1 info)))
      ("body"  . ,(org-escape-code-in-string (nth 1 info)))

+ 1 - 1
lisp/ob-lilypond.el

@@ -265,7 +265,7 @@ LINE is the erroneous line"
     (setq case-fold-search nil)
     (setq case-fold-search nil)
     (if (search-forward line nil t)
     (if (search-forward line nil t)
         (progn
         (progn
-          (show-all)
+          (outline-show-all)
           (set-mark (point))
           (set-mark (point))
           (goto-char (- (point) (length line))))
           (goto-char (- (point) (length line))))
       (goto-char temp))))
       (goto-char temp))))

+ 3 - 3
lisp/ob-ocaml.el

@@ -83,9 +83,9 @@
 				   (mapcar #'org-babel-trim (reverse raw)))))))
 				   (mapcar #'org-babel-trim (reverse raw)))))))
 	 (raw (org-babel-trim clean))
 	 (raw (org-babel-trim clean))
 	 (result-params (cdr (assoc :result-params params)))
 	 (result-params (cdr (assoc :result-params params)))
-	 (parsed 
-	  (string-match 
-	   "\\(\\(.*\n\\)*\\)[^:\n]+ : \\([^=\n]+\\) =\\(\n\\| \\)\\(.+\\)$" 
+	 (parsed
+	  (string-match
+	   "\\(\\(.*\n\\)*\\)[^:\n]+ : \\([^=\n]+\\) =\\(\n\\| \\)\\(.+\\)$"
 	   raw))
 	   raw))
 	 (output (match-string 1 raw))
 	 (output (match-string 1 raw))
 	 (type (match-string 3 raw))
 	 (type (match-string 3 raw))

+ 7 - 7
lisp/org-agenda.el

@@ -8408,7 +8408,7 @@ When called with a prefix argument, include all archive files as well."
 	(and (outline-next-heading)
 	(and (outline-next-heading)
 	     (org-flag-heading nil)))	; show the next heading
 	     (org-flag-heading nil)))	; show the next heading
       (when (outline-invisible-p)
       (when (outline-invisible-p)
-	(show-entry))			; display invisible text
+	(outline-show-entry))			; display invisible text
       (recenter (/ (window-height) 2))
       (recenter (/ (window-height) 2))
       (org-back-to-heading t)
       (org-back-to-heading t)
       (if (re-search-forward org-complex-heading-regexp nil t)
       (if (re-search-forward org-complex-heading-regexp nil t)
@@ -8665,7 +8665,7 @@ folded."
 	  (select-window org-agenda-show-window)
 	  (select-window org-agenda-show-window)
 	  (ignore-errors (scroll-up)))
 	  (ignore-errors (scroll-up)))
       (org-agenda-goto t)
       (org-agenda-goto t)
-      (if arg (org-show-entry) (show-subtree))
+      (if arg (org-show-entry) (outline-show-subtree))
       (setq org-agenda-show-window (selected-window)))
       (setq org-agenda-show-window (selected-window)))
     (select-window win)))
     (select-window win)))
 
 
@@ -8697,7 +8697,7 @@ if it was hidden in the outline."
     (set-window-start (selected-window) (point-at-bol))
     (set-window-start (selected-window) (point-at-bol))
     (cond
     (cond
      ((= more 0)
      ((= more 0)
-      (hide-subtree)
+      (outline-hide-subtree)
       (save-excursion
       (save-excursion
 	(org-back-to-heading)
 	(org-back-to-heading)
 	(run-hook-with-args 'org-cycle-hook 'folded))
 	(run-hook-with-args 'org-cycle-hook 'folded))
@@ -8705,26 +8705,26 @@ if it was hidden in the outline."
      ((and (org-called-interactively-p 'any) (= more 1))
      ((and (org-called-interactively-p 'any) (= more 1))
       (message "Remote: show with default settings"))
       (message "Remote: show with default settings"))
      ((= more 2)
      ((= more 2)
-      (show-entry)
+      (outline-show-entry)
       (org-show-children)
       (org-show-children)
       (save-excursion
       (save-excursion
 	(org-back-to-heading)
 	(org-back-to-heading)
 	(run-hook-with-args 'org-cycle-hook 'children))
 	(run-hook-with-args 'org-cycle-hook 'children))
       (message "Remote: CHILDREN"))
       (message "Remote: CHILDREN"))
      ((= more 3)
      ((= more 3)
-      (show-subtree)
+      (outline-show-subtree)
       (save-excursion
       (save-excursion
 	(org-back-to-heading)
 	(org-back-to-heading)
 	(run-hook-with-args 'org-cycle-hook 'subtree))
 	(run-hook-with-args 'org-cycle-hook 'subtree))
       (message "Remote: SUBTREE"))
       (message "Remote: SUBTREE"))
      ((= more 4)
      ((= more 4)
-      (show-subtree)
+      (outline-show-subtree)
       (save-excursion
       (save-excursion
 	(org-back-to-heading)
 	(org-back-to-heading)
 	(org-cycle-hide-drawers 'subtree '("LOGBOOK")))
 	(org-cycle-hide-drawers 'subtree '("LOGBOOK")))
       (message "Remote: SUBTREE AND LOGBOOK"))
       (message "Remote: SUBTREE AND LOGBOOK"))
      ((> more 4)
      ((> more 4)
-      (show-subtree)
+      (outline-show-subtree)
       (message "Remote: SUBTREE AND ALL DRAWERS")))
       (message "Remote: SUBTREE AND ALL DRAWERS")))
     (select-window win)))
     (select-window win)))
 
 

+ 4 - 4
lisp/org-archive.el

@@ -317,7 +317,7 @@ this heading."
 		     org-odd-levels-only
 		     org-odd-levels-only
 		   tr-org-odd-levels-only)))
 		   tr-org-odd-levels-only)))
 	    (goto-char (point-min))
 	    (goto-char (point-min))
-	    (show-all)
+	    (outline-show-all)
 	    (if (and heading (not (and datetree-date (not datetree-subheading-p))))
 	    (if (and heading (not (and datetree-date (not datetree-subheading-p))))
 		(progn
 		(progn
 		  (if (re-search-forward
 		  (if (re-search-forward
@@ -332,7 +332,7 @@ this heading."
 		    (insert (if datetree-date "" "\n") heading "\n")
 		    (insert (if datetree-date "" "\n") heading "\n")
 		    (end-of-line 0))
 		    (end-of-line 0))
 		  ;; Make the subtree visible
 		  ;; Make the subtree visible
-		  (show-subtree)
+		  (outline-show-subtree)
 		  (if org-archive-reversed-order
 		  (if org-archive-reversed-order
 		      (progn
 		      (progn
 			(org-back-to-heading t)
 			(org-back-to-heading t)
@@ -454,7 +454,7 @@ sibling does not exist, it will be created at the end of the subtree."
 	 (format-time-string
 	 (format-time-string
 	  (substring (cdr org-time-stamp-formats) 1 -1)))
 	  (substring (cdr org-time-stamp-formats) 1 -1)))
 	(outline-up-heading 1 t)
 	(outline-up-heading 1 t)
-	(hide-subtree)
+	(outline-hide-subtree)
 	(org-cycle-show-empty-lines 'folded)
 	(org-cycle-show-empty-lines 'folded)
 	(goto-char pos)))
 	(goto-char pos)))
     (org-reveal)
     (org-reveal)
@@ -565,7 +565,7 @@ the children that do not contain any open TODO items."
 	(save-excursion
 	(save-excursion
 	  (org-back-to-heading t)
 	  (org-back-to-heading t)
 	  (setq set (org-toggle-tag org-archive-tag))
 	  (setq set (org-toggle-tag org-archive-tag))
-	  (when set (hide-subtree)))
+	  (when set (outline-hide-subtree)))
 	(and set (beginning-of-line 1))
 	(and set (beginning-of-line 1))
 	(message "Subtree %s" (if set "archived" "unarchived"))))))
 	(message "Subtree %s" (if set "archived" "unarchived"))))))
 
 

+ 1 - 1
lisp/org-capture.el

@@ -1006,7 +1006,7 @@ may have been stored before."
   (org-switch-to-buffer-other-window
   (org-switch-to-buffer-other-window
    (org-capture-get-indirect-buffer (org-capture-get :buffer) "CAPTURE"))
    (org-capture-get-indirect-buffer (org-capture-get :buffer) "CAPTURE"))
   (widen)
   (widen)
-  (show-all)
+  (outline-show-all)
   (goto-char (org-capture-get :pos))
   (goto-char (org-capture-get :pos))
   (org-set-local 'org-capture-target-marker
   (org-set-local 'org-capture-target-marker
 		 (point-marker))
 		 (point-marker))

+ 1 - 1
lisp/org-colview.el

@@ -548,7 +548,7 @@ Where possible, use the standard interface for changing this line."
       (condition-case nil (org-no-warnings (next-line 1)) (error nil))
       (condition-case nil (org-no-warnings (next-line 1)) (error nil))
       (setq hidep (org-at-heading-p 1)))
       (setq hidep (org-at-heading-p 1)))
     (eval form)
     (eval form)
-    (and hidep (hide-entry))))
+    (and hidep (outline-hide-entry))))
 
 
 (defun org-columns-previous-allowed-value ()
 (defun org-columns-previous-allowed-value ()
   "Switch to the previous allowed value for this column."
   "Switch to the previous allowed value for this column."

+ 11 - 0
lisp/org-compat.el

@@ -539,6 +539,17 @@ Implements `file-equal-p' for older emacsen and XEmacs."
       (buffer-narrowed-p)
       (buffer-narrowed-p)
     (/= (- (point-max) (point-min)) (buffer-size))))
     (/= (- (point-max) (point-min)) (buffer-size))))
 
 
+;; As of Emacs 25.1, `outline-mode` functions are under the 'outline-'
+;; prefix.
+(when (< emacs-major-version 25)
+  (defalias 'outline-show-all 'show-all)
+  (defalias 'outline-hide-subtree 'hide-subtree)
+  (defalias 'outline-show-subtree 'show-subtree)
+  (defalias 'outline-show-branches 'show-branches)
+  (defalias 'outline-show-entry 'show-entry)
+  (defalias 'outline-hide-entry 'hide-entry)
+  (defalias 'outline-hide-sublevels 'hide-sublevels))
+
 (defmacro org-with-silent-modifications (&rest body)
 (defmacro org-with-silent-modifications (&rest body)
   (if (fboundp 'with-silent-modifications)
   (if (fboundp 'with-silent-modifications)
       `(with-silent-modifications ,@body)
       `(with-silent-modifications ,@body)

+ 1 - 1
lisp/org-crypt.el

@@ -191,7 +191,7 @@ See `org-crypt-disable-auto-save'."
           (insert encrypted-text)
           (insert encrypted-text)
           (when folded
           (when folded
             (goto-char start-heading)
             (goto-char start-heading)
-            (hide-subtree))
+            (outline-hide-subtree))
           nil)))))
           nil)))))
 
 
 (defun org-decrypt-entry ()
 (defun org-decrypt-entry ()

+ 1 - 1
lisp/org-feed.el

@@ -406,7 +406,7 @@ it can be a list structured like an entry in `org-feed-alist'."
 
 
 	  ;; Normalize the visibility of the inbox tree
 	  ;; Normalize the visibility of the inbox tree
 	  (goto-char inbox-pos)
 	  (goto-char inbox-pos)
-	  (hide-subtree)
+	  (outline-hide-subtree)
 	  (org-show-children)
 	  (org-show-children)
 	  (org-cycle-hide-drawers 'children)
 	  (org-cycle-hide-drawers 'children)
 
 

+ 4 - 3
lisp/org-mouse.el

@@ -497,7 +497,7 @@ SCHEDULED: or DEADLINE: or ANYTHINGLIKETHIS:"
    `("Main Menu"
    `("Main Menu"
      ["Show Overview" org-mouse-show-overview t]
      ["Show Overview" org-mouse-show-overview t]
      ["Show Headlines" org-mouse-show-headlines t]
      ["Show Headlines" org-mouse-show-headlines t]
-     ["Show All" show-all t]
+     ["Show All" outline-show-all t]
      ["Remove Highlights" org-remove-occur-highlights
      ["Remove Highlights" org-remove-occur-highlights
       :visible org-occur-highlights]
       :visible org-occur-highlights]
      "--"
      "--"
@@ -586,7 +586,7 @@ This means, between the beginning of line and the point."
     (:end				; insert text here
     (:end				; insert text here
      (skip-chars-backward " \t")
      (skip-chars-backward " \t")
      (kill-region (point) (point-at-eol))
      (kill-region (point) (point-at-eol))
-     (unless (org-looking-back org-mouse-punctuation)
+     (unless (org-looking-back org-mouse-punctuation (line-beginning-position))
        (insert (concat org-mouse-punctuation " ")))))
        (insert (concat org-mouse-punctuation " ")))))
   (insert text)
   (insert text)
   (beginning-of-line))
   (beginning-of-line))
@@ -644,7 +644,8 @@ This means, between the beginning of line and the point."
 					'org-mode-restart))))
 					'org-mode-restart))))
      ((or (eolp)
      ((or (eolp)
 	  (and (looking-at "\\(  \\|\t\\)\\(+:[0-9a-zA-Z_:]+\\)?\\(  \\|\t\\)+$")
 	  (and (looking-at "\\(  \\|\t\\)\\(+:[0-9a-zA-Z_:]+\\)?\\(  \\|\t\\)+$")
-	       (org-looking-back "  \\|\t" (- (point) 2))))
+	       (org-looking-back "  \\|\t" (- (point) 2)
+				 (line-beginning-position))))
       (org-mouse-popup-global-menu))
       (org-mouse-popup-global-menu))
      ((funcall get-context :checkbox)
      ((funcall get-context :checkbox)
       (popup-menu
       (popup-menu

+ 4 - 2
lisp/org-pcomplete.el

@@ -93,8 +93,10 @@ The return value is a string naming the thing at point."
 	     (skip-chars-backward "[ \t\n]")
 	     (skip-chars-backward "[ \t\n]")
 	     ;; org-drawer-regexp matches a whole line but while
 	     ;; org-drawer-regexp matches a whole line but while
 	     ;; looking-back, we just ignore trailing whitespaces
 	     ;; looking-back, we just ignore trailing whitespaces
-	     (or (org-looking-back (substring org-drawer-regexp 0 -1))
-		 (org-looking-back org-property-re))))
+	     (or (org-looking-back (substring org-drawer-regexp 0 -1)
+				   (line-beginning-position))
+		 (org-looking-back org-property-re
+				   (line-beginning-position)))))
       (cons "prop" nil))
       (cons "prop" nil))
      ((and (equal (char-before beg1) ?:)
      ((and (equal (char-before beg1) ?:)
 	   (not (equal (char-after (point-at-bol)) ?*)))
 	   (not (equal (char-after (point-at-bol)) ?*)))

+ 31 - 30
lisp/org.el

@@ -6743,7 +6743,7 @@ show the entire buffer, including any drawers.
 	(org-unlogged-message "Startup visibility, plus VISIBILITY properties"))
 	(org-unlogged-message "Startup visibility, plus VISIBILITY properties"))
 
 
        ((equal arg '(64))
        ((equal arg '(64))
-	(show-all)
+	(outline-show-all)
 	(org-unlogged-message "Entire buffer visible, including drawers"))
 	(org-unlogged-message "Entire buffer visible, including drawers"))
 
 
        ;; Try cdlatex TAB completion
        ;; Try cdlatex TAB completion
@@ -6842,7 +6842,7 @@ Use \\[org-edit-special] to edit table.el tables"))
 	   (eq org-cycle-global-status 'contents))
 	   (eq org-cycle-global-status 'contents))
       ;; We just showed the table of contents - now show everything
       ;; We just showed the table of contents - now show everything
       (run-hook-with-args 'org-pre-cycle-hook 'all)
       (run-hook-with-args 'org-pre-cycle-hook 'all)
-      (show-all)
+      (outline-show-all)
       (unless ga (org-unlogged-message "SHOW ALL"))
       (unless ga (org-unlogged-message "SHOW ALL"))
       (setq org-cycle-global-status 'all)
       (setq org-cycle-global-status 'all)
       (run-hook-with-args 'org-cycle-hook 'all))
       (run-hook-with-args 'org-cycle-hook 'all))
@@ -6976,8 +6976,8 @@ With a numeric prefix, show all headlines up to that level."
 	 (if (derived-mode-p 'org-mode) org-cycle-include-plain-lists nil)))
 	 (if (derived-mode-p 'org-mode) org-cycle-include-plain-lists nil)))
     (cond
     (cond
      ((integerp arg)
      ((integerp arg)
-      (show-all)
-      (hide-sublevels arg)
+      (outline-show-all)
+      (outline-hide-sublevels arg)
       (setq org-cycle-global-status 'contents))
       (setq org-cycle-global-status 'contents))
      ((equal arg '(4))
      ((equal arg '(4))
       (org-set-startup-visibility)
       (org-set-startup-visibility)
@@ -6994,7 +6994,7 @@ With a numeric prefix, show all headlines up to that level."
     (org-content))
     (org-content))
    ((or (eq org-startup-folded 'showeverything)
    ((or (eq org-startup-folded 'showeverything)
 	(eq org-startup-folded nil))
 	(eq org-startup-folded nil))
-    (show-all)))
+    (outline-show-all)))
   (unless (eq org-startup-folded 'showeverything)
   (unless (eq org-startup-folded 'showeverything)
     (if org-hide-block-startup (org-hide-block-all))
     (if org-hide-block-startup (org-hide-block-all))
     (org-set-visibility-according-to-property 'no-cleanup)
     (org-set-visibility-according-to-property 'no-cleanup)
@@ -7013,11 +7013,11 @@ With a numeric prefix, show all headlines up to that level."
 	 (let ((state (match-string 3)))
 	 (let ((state (match-string 3)))
 	   (save-excursion
 	   (save-excursion
 	     (org-back-to-heading t)
 	     (org-back-to-heading t)
-	     (hide-subtree)
+	     (outline-hide-subtree)
 	     (org-reveal)
 	     (org-reveal)
 	     (cond
 	     (cond
 	      ((equal state "folded")
 	      ((equal state "folded")
-	       (hide-subtree))
+	       (outline-hide-subtree))
 	      ((equal state "children")
 	      ((equal state "children")
 	       (org-show-hidden-entry)
 	       (org-show-hidden-entry)
 	       (org-show-children))
 	       (org-show-children))
@@ -7027,7 +7027,7 @@ With a numeric prefix, show all headlines up to that level."
 		   (org-narrow-to-subtree)
 		   (org-narrow-to-subtree)
 		   (org-content))))
 		   (org-content))))
 	      ((member state '("all" "showall"))
 	      ((member state '("all" "showall"))
-	       (show-subtree)))))))
+	       (outline-show-subtree)))))))
      (unless no-cleanup
      (unless no-cleanup
        (org-cycle-hide-archived-subtrees 'all)
        (org-cycle-hide-archived-subtrees 'all)
        (org-cycle-hide-drawers 'all)
        (org-cycle-hide-drawers 'all)
@@ -7051,7 +7051,7 @@ results."
 		 (progn
 		 (progn
 		   (goto-char (match-beginning 0))
 		   (goto-char (match-beginning 0))
 		   (funcall outline-level))))))
 		   (funcall outline-level))))))
-      (and level (hide-sublevels level)))))
+      (and level (outline-hide-sublevels level)))))
 
 
 (defun org-content (&optional arg)
 (defun org-content (&optional arg)
   "Show all headlines in the buffer, like a table of contents.
   "Show all headlines in the buffer, like a table of contents.
@@ -7070,7 +7070,7 @@ With numerical argument N, show content up to level N."
 		  (looking-at org-outline-regexp))
 		  (looking-at org-outline-regexp))
 	(if (integerp arg)
 	(if (integerp arg)
 	    (org-show-children (1- arg))
 	    (org-show-children (1- arg))
-	  (show-branches))
+	  (outline-show-branches))
 	(if (bobp) (throw 'exit nil))))))
 	(if (bobp) (throw 'exit nil))))))
 
 
 (defun org-optimize-window-after-visibility-change (state)
 (defun org-optimize-window-after-visibility-change (state)
@@ -7121,7 +7121,7 @@ This function is the default value of the hook `org-cycle-hook'."
 	    (if (and (not (outline-invisible-p))
 	    (if (and (not (outline-invisible-p))
 		     (save-excursion
 		     (save-excursion
 		       (goto-char (point-at-eol)) (outline-invisible-p)))
 		       (goto-char (point-at-eol)) (outline-invisible-p)))
-		(hide-entry))))
+		(outline-hide-entry))))
 	(org-cycle-show-empty-lines 'overview)
 	(org-cycle-show-empty-lines 'overview)
 	(org-cycle-hide-drawers 'overview)))))
 	(org-cycle-hide-drawers 'overview)))))
 
 
@@ -7285,7 +7285,7 @@ DATA should have been made by `org-outline-overlay-data'."
     (save-excursion
     (save-excursion
       (save-restriction
       (save-restriction
 	(widen)
 	(widen)
-	(show-all)
+	(outline-show-all)
 	(mapc (lambda (c)
 	(mapc (lambda (c)
 		(outline-flag-region (car c) (cdr c) t))
 		(outline-flag-region (car c) (cdr c) t))
 	      data)))))
 	      data)))))
@@ -7670,7 +7670,7 @@ frame is not changed."
     (if (featurep 'xemacs)
     (if (featurep 'xemacs)
         (save-excursion (org-mode) (turn-on-font-lock)))
         (save-excursion (org-mode) (turn-on-font-lock)))
     (narrow-to-region beg end)
     (narrow-to-region beg end)
-    (show-all)
+    (outline-show-all)
     (goto-char pos)
     (goto-char pos)
     (run-hook-with-args 'org-cycle-hook 'all)
     (run-hook-with-args 'org-cycle-hook 'all)
     (and (window-live-p cwin) (select-window cwin))))
     (and (window-live-p cwin) (select-window cwin))))
@@ -7839,7 +7839,7 @@ heading, unconditionally."
 	      (re-search-forward org-outline-regexp-bol)
 	      (re-search-forward org-outline-regexp-bol)
 	      (beginning-of-line 0))
 	      (beginning-of-line 0))
 	    (skip-chars-backward " \r\t\n")
 	    (skip-chars-backward " \r\t\n")
-	    (and (not (looking-back "^\\*+" (line-beginning-position)))
+	    (and (not (org-looking-back "^\\*+" (line-beginning-position)))
 		 (looking-at "[ \t]+") (replace-match ""))
 		 (looking-at "[ \t]+") (replace-match ""))
 	    (unless (eobp) (forward-char 1))
 	    (unless (eobp) (forward-char 1))
 	    (when (looking-at "^\\*")
 	    (when (looking-at "^\\*")
@@ -8470,7 +8470,7 @@ case."
       (insert (make-string (- ne-ins ne-beg) ?\n)))
       (insert (make-string (- ne-ins ne-beg) ?\n)))
     (move-marker ins-point nil)
     (move-marker ins-point nil)
     (if folded
     (if folded
-	(hide-subtree)
+	(outline-hide-subtree)
       (org-show-entry)
       (org-show-entry)
       (org-show-children)
       (org-show-children)
       (org-cycle-hide-drawers 'children))
       (org-cycle-hide-drawers 'children))
@@ -8641,7 +8641,7 @@ When REMOVE is non-nil, remove the subtree from the clipboard."
 	      (eq org-subtree-clip (current-kill 0))
 	      (eq org-subtree-clip (current-kill 0))
 	      org-subtree-clip-folded)
 	      org-subtree-clip-folded)
 	 ;; The tree was folded before it was killed/copied
 	 ;; The tree was folded before it was killed/copied
-	 (hide-subtree))
+	 (outline-hide-subtree))
      (and for-yank (goto-char newend))
      (and for-yank (goto-char newend))
      (and remove (setq kill-ring (cdr kill-ring))))))
      (and remove (setq kill-ring (cdr kill-ring))))))
 
 
@@ -8940,7 +8940,7 @@ When sorting is done, call `org-after-sorting-entries-or-items-hook'."
 		       (point))
 		       (point))
 	    what "children")
 	    what "children")
       (goto-char start)
       (goto-char start)
-      (show-subtree)
+      (outline-show-subtree)
       (outline-next-heading))
       (outline-next-heading))
      (t
      (t
       ;; we will sort the top-level entries in this file
       ;; we will sort the top-level entries in this file
@@ -8956,7 +8956,7 @@ When sorting is done, call `org-after-sorting-entries-or-items-hook'."
       (setq end (point-max))
       (setq end (point-max))
       (setq what "top-level")
       (setq what "top-level")
       (goto-char start)
       (goto-char start)
-      (show-all)))
+      (outline-show-all)))
 
 
     (setq beg (point))
     (setq beg (point))
     (when (>= beg end) (goto-char start) (user-error "Nothing to sort"))
     (when (>= beg end) (goto-char start) (user-error "Nothing to sort"))
@@ -12965,7 +12965,7 @@ statistics everywhere."
 	    		(and (listp org-provide-todo-statistics)
 	    		(and (listp org-provide-todo-statistics)
 			     (stringp (car org-provide-todo-statistics))
 			     (stringp (car org-provide-todo-statistics))
 	    		     (or (member kwd org-provide-todo-statistics)
 	    		     (or (member kwd org-provide-todo-statistics)
-	    			 (member kwd org-done-keywords)))
+				 (member kwd org-done-keywords)))
 			(and (listp org-provide-todo-statistics)
 			(and (listp org-provide-todo-statistics)
 			     (listp (car org-provide-todo-statistics))
 			     (listp (car org-provide-todo-statistics))
 			     (or (member kwd (car org-provide-todo-statistics))
 			     (or (member kwd (car org-provide-todo-statistics))
@@ -12974,7 +12974,7 @@ statistics everywhere."
 	    	    (setq cnt-all (1+ cnt-all))
 	    	    (setq cnt-all (1+ cnt-all))
 	    	  (if (eq org-provide-todo-statistics t)
 	    	  (if (eq org-provide-todo-statistics t)
 	    	      (and kwd (setq cnt-all (1+ cnt-all)))))
 	    	      (and kwd (setq cnt-all (1+ cnt-all)))))
-	    	(when (or (and (member org-provide-todo-statistics '(t all-headlines))
+		(when (or (and (member org-provide-todo-statistics '(t all-headlines))
 			       (member kwd org-done-keywords))
 			       (member kwd org-done-keywords))
 			  (and (listp org-provide-todo-statistics)
 			  (and (listp org-provide-todo-statistics)
 			       (listp (car org-provide-todo-statistics))
 			       (listp (car org-provide-todo-statistics))
@@ -16765,7 +16765,7 @@ So these are more for recording a certain time/date."
     (org-defkey map (kbd ".")
     (org-defkey map (kbd ".")
                 (lambda () (interactive)
                 (lambda () (interactive)
 		  ;; Are we at the beginning of the prompt?
 		  ;; Are we at the beginning of the prompt?
-		  (if (looking-back "^[^:]+: ")
+		  (if (org-looking-back "^[^:]+: " (line-beginning-position))
 		      (org-eval-in-calendar '(calendar-goto-today))
 		      (org-eval-in-calendar '(calendar-goto-today))
 		    (insert "."))))
 		    (insert "."))))
     (org-defkey map (kbd "C-.")
     (org-defkey map (kbd "C-.")
@@ -18058,7 +18058,8 @@ When SUPPRESS-TMP-DELAY is non-nil, suppress delays like \"--2d\"."
 	    (message "No clock to adjust")
 	    (message "No clock to adjust")
 	  (cond ((save-excursion ; fix previous clock?
 	  (cond ((save-excursion ; fix previous clock?
 		   (re-search-backward org-ts-regexp0 nil t)
 		   (re-search-backward org-ts-regexp0 nil t)
-		   (org-looking-back (concat org-clock-string " \\[")))
+		   (org-looking-back (concat org-clock-string " \\[")
+				     (line-beginning-position)))
 		 (setq fixnext 1 clrgx (concat org-ts-regexp0 "\\] =>.*$")))
 		 (setq fixnext 1 clrgx (concat org-ts-regexp0 "\\] =>.*$")))
 		((save-excursion ; fix next clock?
 		((save-excursion ; fix next clock?
 		   (re-search-backward org-ts-regexp0 nil t)
 		   (re-search-backward org-ts-regexp0 nil t)
@@ -19728,12 +19729,12 @@ boundaries."
 ;; Outline functions from `outline-mode-prefix-map'
 ;; Outline functions from `outline-mode-prefix-map'
 ;; that can be remapped in Org:
 ;; that can be remapped in Org:
 (define-key org-mode-map [remap outline-mark-subtree] 'org-mark-subtree)
 (define-key org-mode-map [remap outline-mark-subtree] 'org-mark-subtree)
-(define-key org-mode-map [remap show-subtree] 'org-show-subtree)
+(define-key org-mode-map [remap outline-show-subtree] 'org-show-subtree)
 (define-key org-mode-map [remap outline-forward-same-level]
 (define-key org-mode-map [remap outline-forward-same-level]
   'org-forward-heading-same-level)
   'org-forward-heading-same-level)
 (define-key org-mode-map [remap outline-backward-same-level]
 (define-key org-mode-map [remap outline-backward-same-level]
   'org-backward-heading-same-level)
   'org-backward-heading-same-level)
-(define-key org-mode-map [remap show-branches]
+(define-key org-mode-map [remap outline-show-branches]
   'org-kill-note-or-show-branches)
   'org-kill-note-or-show-branches)
 (define-key org-mode-map [remap outline-promote] 'org-promote-subtree)
 (define-key org-mode-map [remap outline-promote] 'org-promote-subtree)
 (define-key org-mode-map [remap outline-demote] 'org-demote-subtree)
 (define-key org-mode-map [remap outline-demote] 'org-demote-subtree)
@@ -19854,7 +19855,7 @@ boundaries."
 
 
 ;; All the other keys
 ;; All the other keys
 
 
-(org-defkey org-mode-map "\C-c\C-a" 'show-all)  ; in case allout messed up.
+(org-defkey org-mode-map "\C-c\C-a" 'outline-show-all)  ; in case allout messed up.
 (org-defkey org-mode-map "\C-c\C-r" 'org-reveal)
 (org-defkey org-mode-map "\C-c\C-r" 'org-reveal)
 (if (boundp 'narrow-map)
 (if (boundp 'narrow-map)
     (org-defkey narrow-map "s" 'org-narrow-to-subtree)
     (org-defkey narrow-map "s" 'org-narrow-to-subtree)
@@ -20240,7 +20241,7 @@ The detailed reaction depends on the user option `org-catch-invisible-edits'."
 	      (if invisible-before-point
 	      (if invisible-before-point
 		  (goto-char (previous-single-char-property-change
 		  (goto-char (previous-single-char-property-change
 			      (point) 'invisible)))
 			      (point) 'invisible)))
-	      (show-subtree))
+	      (outline-show-subtree))
 	    (cond
 	    (cond
 	     ((eq org-catch-invisible-edits 'show)
 	     ((eq org-catch-invisible-edits 'show)
 	      ;; That's it, we do the edit after showing
 	      ;; That's it, we do the edit after showing
@@ -21253,8 +21254,8 @@ Use \\[org-edit-special] to edit table.el tables"))
   (interactive)
   (interactive)
   (if (not org-finish-function)
   (if (not org-finish-function)
       (progn
       (progn
-	(hide-subtree)
-	(call-interactively 'show-branches))
+	(outline-hide-subtree)
+	(call-interactively 'outline-show-branches))
     (let ((org-note-abort t))
     (let ((org-note-abort t))
       (funcall org-finish-function))))
       (funcall org-finish-function))))
 
 
@@ -21730,7 +21731,7 @@ on context.  See the individual commands for more information."
      ["Cycle Global Visibility" org-shifttab :active (not (org-at-table-p))]
      ["Cycle Global Visibility" org-shifttab :active (not (org-at-table-p))]
      ["Sparse Tree..." org-sparse-tree t]
      ["Sparse Tree..." org-sparse-tree t]
      ["Reveal Context" org-reveal t]
      ["Reveal Context" org-reveal t]
-     ["Show All" show-all t]
+     ["Show All" outline-show-all t]
      "--"
      "--"
      ["Subtree to indirect buffer" org-tree-to-indirect-buffer t])
      ["Subtree to indirect buffer" org-tree-to-indirect-buffer t])
     "--"
     "--"
@@ -24126,7 +24127,7 @@ interactive command with similar behavior."
 	     (or (looking-at org-outline-regexp)
 	     (or (looking-at org-outline-regexp)
 		 (re-search-forward org-outline-regexp-bol end t))
 		 (re-search-forward org-outline-regexp-bol end t))
 	     (while (and (< (point) end) (looking-at org-outline-regexp))
 	     (while (and (< (point) end) (looking-at org-outline-regexp))
-	       (hide-subtree)
+	       (outline-hide-subtree)
 	       (org-cycle-show-empty-lines 'folded)
 	       (org-cycle-show-empty-lines 'folded)
 	       (condition-case nil
 	       (condition-case nil
 		   (outline-forward-same-level 1)
 		   (outline-forward-same-level 1)

+ 10 - 10
lisp/ox-html.el

@@ -1088,10 +1088,10 @@ linebreaks    Let MathJax perform automatic linebreaks.  Valid values
 indent        If align is not center, how far from the left/right side?
 indent        If align is not center, how far from the left/right side?
               Valid values are \"left\" and \"right\"
               Valid values are \"left\" and \"right\"
 multlinewidth The width of the multline environment.
 multlinewidth The width of the multline environment.
-autonumber    How to number equations.  Valid values are \"None\", 
+autonumber    How to number equations.  Valid values are \"None\",
               \"all\" and \"AMS Math\".
               \"all\" and \"AMS Math\".
 tagindent     The amount tags are indented.
 tagindent     The amount tags are indented.
-tagside       Which side to show tags/labels on.  Valid values are 
+tagside       Which side to show tags/labels on.  Valid values are
               \"left\" and \"right\"
               \"left\" and \"right\"
 
 
 You can also customize this for each buffer, using something like
 You can also customize this for each buffer, using something like
@@ -1116,14 +1116,14 @@ MathJax CDN Terms of Service.
 	       (list :tag "align  (alignment of displayed equations)"
 	       (list :tag "align  (alignment of displayed equations)"
 		     (const :format "       " align) (string))
 		     (const :format "       " align) (string))
 	       (list :tag "font (used to display math)"
 	       (list :tag "font (used to display math)"
-	       	     (const :format "            " font)
-	       	     (choice (const "TeX")
-	       		     (const "STIX-Web")
-	       		     (const "Asana-Math")
-	       		     (const "Neo-Euler")
-	       		     (const "Gyre-Pagella")
-	       		     (const "Gyre-Termes")
-	       		     (const "Latin-Modern")))
+		     (const :format "            " font)
+		     (choice (const "TeX")
+			     (const "STIX-Web")
+			     (const "Asana-Math")
+			     (const "Neo-Euler")
+			     (const "Gyre-Pagella")
+			     (const "Gyre-Termes")
+			     (const "Latin-Modern")))
 	       (list :tag "linebreaks (automatic line-breaking)"
 	       (list :tag "linebreaks (automatic line-breaking)"
 		     (const :format "      " linebreaks)
 		     (const :format "      " linebreaks)
 		     (choice (const "true")
 		     (choice (const "true")

+ 1 - 1
lisp/ox-org.el

@@ -298,7 +298,7 @@ Return output file name."
 	   newbuf)
 	   newbuf)
       (with-current-buffer work-buffer
       (with-current-buffer work-buffer
         (font-lock-ensure)
         (font-lock-ensure)
-        (show-all)
+        (outline-show-all)
         (org-show-block-all)
         (org-show-block-all)
         (setq newbuf (htmlize-buffer)))
         (setq newbuf (htmlize-buffer)))
       (with-current-buffer newbuf
       (with-current-buffer newbuf