aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus2017-10-05 21:30:05 +0200
committerRasmus2017-10-05 21:30:05 +0200
commit2a32ee1fbc148d440fc12aa390ed3d2cc7d6fe3b (patch)
tree43c391f7c71899e5feca84749c29e874c4d3c8bc
parent57ab49f7da6e7c978932b565ed63d66c07ce8c30 (diff)
downloademacs-2a32ee1fbc148d440fc12aa390ed3d2cc7d6fe3b.tar.gz
emacs-2a32ee1fbc148d440fc12aa390ed3d2cc7d6fe3b.zip
Update Org to v9.1.2
Please note this is a bugfix release. See etc/ORG-NEWS for details.
-rw-r--r--doc/misc/org.texi19
-rw-r--r--etc/refcards/orgcard.tex2
-rw-r--r--lisp/org/ob-hledger.el2
-rw-r--r--lisp/org/ob-lob.el14
-rw-r--r--lisp/org/org-clock.el1
-rw-r--r--lisp/org/org-colview.el3
-rw-r--r--lisp/org/org-table.el8
-rw-r--r--lisp/org/org-version.el4
-rw-r--r--lisp/org/org.el28
-rw-r--r--lisp/org/ox-html.el23
-rw-r--r--lisp/org/ox-publish.el4
11 files changed, 59 insertions, 49 deletions
diff --git a/doc/misc/org.texi b/doc/misc/org.texi
index b6a4fa23557..72fbbade59e 100644
--- a/doc/misc/org.texi
+++ b/doc/misc/org.texi
@@ -4,7 +4,7 @@
4@settitle The Org Manual 4@settitle The Org Manual
5@include docstyle.texi 5@include docstyle.texi
6 6
7@set VERSION 9.1.1 7@set VERSION 9.1.2
8@set DATE 2017-09-17 8@set DATE 2017-09-17
9 9
10@c Version and Contact Info 10@c Version and Contact Info
@@ -1257,13 +1257,8 @@ Org uses just two commands, bound to @key{TAB} and
1257@end example 1257@end example
1258 1258
1259@vindex org-cycle-emulate-tab 1259@vindex org-cycle-emulate-tab
1260@vindex org-cycle-global-at-bob
1261The cursor must be on a headline for this to work@footnote{see, however, 1260The cursor must be on a headline for this to work@footnote{see, however,
1262the option @code{org-cycle-emulate-tab}.}. When the cursor is at the 1261the option @code{org-cycle-emulate-tab}.}.
1263beginning of the buffer and the first line is not a headline, then
1264@key{TAB} actually runs global cycling (see below)@footnote{see the
1265option @code{org-cycle-global-at-bob}.}. Also when called with a prefix
1266argument (@kbd{C-u @key{TAB}}), global cycling is invoked.
1267 1262
1268@cindex global visibility states 1263@cindex global visibility states
1269@cindex global cycling 1264@cindex global cycling
@@ -1283,6 +1278,11 @@ When @kbd{S-@key{TAB}} is called with a numeric prefix argument N, the
1283CONTENTS view up to headlines of level N will be shown. Note that inside 1278CONTENTS view up to headlines of level N will be shown. Note that inside
1284tables, @kbd{S-@key{TAB}} jumps to the previous field. 1279tables, @kbd{S-@key{TAB}} jumps to the previous field.
1285 1280
1281@vindex org-cycle-global-at-bob
1282You can run global cycling using @key{TAB} only if point is at the very
1283beginning of the buffer, but not on a headline, and
1284@code{org-cycle-global-at-bob} is set to a non-@code{nil} value.
1285
1286@cindex set startup visibility, command 1286@cindex set startup visibility, command
1287@orgcmd{C-u C-u @key{TAB},org-set-startup-visibility} 1287@orgcmd{C-u C-u @key{TAB},org-set-startup-visibility}
1288Switch back to the startup visibility of the buffer (@pxref{Initial visibility}). 1288Switch back to the startup visibility of the buffer (@pxref{Initial visibility}).
@@ -1659,11 +1659,9 @@ line. In particular, if an ordered list reaches number @samp{10.}, then the
1659list. An item ends before the next line that is less or equally indented 1659list. An item ends before the next line that is less or equally indented
1660than its bullet/number. 1660than its bullet/number.
1661 1661
1662@vindex org-list-empty-line-terminates-plain-lists
1663A list ends whenever every item has ended, which means before any line less 1662A list ends whenever every item has ended, which means before any line less
1664or equally indented than items at top level. It also ends before two blank 1663or equally indented than items at top level. It also ends before two blank
1665lines@footnote{See also @code{org-list-empty-line-terminates-plain-lists}.}. 1664lines. In that case, all items are closed. Here is an example:
1666In that case, all items are closed. Here is an example:
1667 1665
1668@example 1666@example
1669@group 1667@group
@@ -14991,6 +14989,7 @@ directory on the local machine.
14991 '(("org" 14989 '(("org"
14992 :base-directory "~/org/" 14990 :base-directory "~/org/"
14993 :publishing-directory "~/public_html" 14991 :publishing-directory "~/public_html"
14992 :publishing-function org-html-publish-to-html
14994 :section-numbers nil 14993 :section-numbers nil
14995 :with-toc nil 14994 :with-toc nil
14996 :html-head "<link rel=\"stylesheet\" 14995 :html-head "<link rel=\"stylesheet\"
diff --git a/etc/refcards/orgcard.tex b/etc/refcards/orgcard.tex
index 0880841a945..99f90b8d31c 100644
--- a/etc/refcards/orgcard.tex
+++ b/etc/refcards/orgcard.tex
@@ -1,5 +1,5 @@
1% Reference Card for Org Mode 1% Reference Card for Org Mode
2\def\orgversionnumber{9.1.1} 2\def\orgversionnumber{9.1.2}
3\def\versionyear{2017} % latest update 3\def\versionyear{2017} % latest update
4\input emacsver.tex 4\input emacsver.tex
5 5
diff --git a/lisp/org/ob-hledger.el b/lisp/org/ob-hledger.el
index 86276aad810..57ab8af4f30 100644
--- a/lisp/org/ob-hledger.el
+++ b/lisp/org/ob-hledger.el
@@ -1,4 +1,4 @@
1;; ob-ledger.el --- Babel Functions for hledger -*- lexical-binding: t; -*- 1;; ob-hledger.el --- Babel Functions for hledger -*- lexical-binding: t; -*-
2 2
3;; Copyright (C) 2010-2017 Free Software Foundation, Inc. 3;; Copyright (C) 2010-2017 Free Software Foundation, Inc.
4 4
diff --git a/lisp/org/ob-lob.el b/lisp/org/ob-lob.el
index 8a52b57e52a..13f728f37f6 100644
--- a/lisp/org/ob-lob.el
+++ b/lisp/org/ob-lob.el
@@ -53,11 +53,15 @@ should not be inherited from a source block.")
53 (let* ((info (org-babel-get-src-block-info 'light)) 53 (let* ((info (org-babel-get-src-block-info 'light))
54 (source-name (nth 4 info))) 54 (source-name (nth 4 info)))
55 (when source-name 55 (when source-name
56 (setq source-name (intern source-name) 56 (setf (nth 1 info)
57 org-babel-library-of-babel 57 (if (org-babel-noweb-p (nth 2 info) :eval)
58 (cons (cons source-name info) 58 (org-babel-expand-noweb-references info)
59 (assq-delete-all source-name org-babel-library-of-babel)) 59 (nth 1 info)))
60 lob-ingest-count (1+ lob-ingest-count))))) 60 (let ((source (intern source-name)))
61 (setq org-babel-library-of-babel
62 (cons (cons source info)
63 (assq-delete-all source org-babel-library-of-babel))))
64 (cl-incf lob-ingest-count))))
61 (message "%d src block%s added to Library of Babel" 65 (message "%d src block%s added to Library of Babel"
62 lob-ingest-count (if (> lob-ingest-count 1) "s" "")) 66 lob-ingest-count (if (> lob-ingest-count 1) "s" ""))
63 lob-ingest-count)) 67 lob-ingest-count))
diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el
index 2eec817735a..9dc501500b1 100644
--- a/lisp/org/org-clock.el
+++ b/lisp/org/org-clock.el
@@ -2984,6 +2984,7 @@ The details of what will be saved are regulated by the variable
2984 2984
2985;; Local variables: 2985;; Local variables:
2986;; generated-autoload-file: "org-loaddefs.el" 2986;; generated-autoload-file: "org-loaddefs.el"
2987;; coding: utf-8
2987;; End: 2988;; End:
2988 2989
2989;;; org-clock.el ends here 2990;;; org-clock.el ends here
diff --git a/lisp/org/org-colview.el b/lisp/org/org-colview.el
index 242bdc26550..eac29c50f65 100644
--- a/lisp/org/org-colview.el
+++ b/lisp/org/org-colview.el
@@ -464,7 +464,8 @@ for the duration of the command.")
464 (kill-local-variable 'org-previous-header-line-format) 464 (kill-local-variable 'org-previous-header-line-format)
465 (remove-hook 'post-command-hook 'org-columns-hscroll-title 'local)) 465 (remove-hook 'post-command-hook 'org-columns-hscroll-title 'local))
466 (set-marker org-columns-begin-marker nil) 466 (set-marker org-columns-begin-marker nil)
467 (set-marker org-columns-top-level-marker nil) 467 (when (markerp org-columns-top-level-marker)
468 (set-marker org-columns-top-level-marker nil))
468 (org-with-silent-modifications 469 (org-with-silent-modifications
469 (mapc #'delete-overlay org-columns-overlays) 470 (mapc #'delete-overlay org-columns-overlays)
470 (setq org-columns-overlays nil) 471 (setq org-columns-overlays nil)
diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el
index 66907e2cd9c..8dc648eaecd 100644
--- a/lisp/org/org-table.el
+++ b/lisp/org/org-table.el
@@ -1646,12 +1646,14 @@ In particular, this does handle wide and invisible characters."
1646 (if (not (org-at-table-p)) 1646 (if (not (org-at-table-p))
1647 (user-error "Not at a table")) 1647 (user-error "Not at a table"))
1648 (let ((col (current-column)) 1648 (let ((col (current-column))
1649 (dline (org-table-current-dline))) 1649 (dline (and (not (org-match-line org-table-hline-regexp))
1650 (org-table-current-dline))))
1650 (kill-region (point-at-bol) (min (1+ (point-at-eol)) (point-max))) 1651 (kill-region (point-at-bol) (min (1+ (point-at-eol)) (point-max)))
1651 (if (not (org-at-table-p)) (beginning-of-line 0)) 1652 (if (not (org-at-table-p)) (beginning-of-line 0))
1652 (org-move-to-column col) 1653 (org-move-to-column col)
1653 (when (or (not org-table-fix-formulas-confirm) 1654 (when (and dline
1654 (funcall org-table-fix-formulas-confirm "Fix formulas? ")) 1655 (or (not org-table-fix-formulas-confirm)
1656 (funcall org-table-fix-formulas-confirm "Fix formulas? ")))
1655 (org-table-fix-formulas "@" (list (cons (number-to-string dline) "INVALID")) 1657 (org-table-fix-formulas "@" (list (cons (number-to-string dline) "INVALID"))
1656 dline -1 dline)))) 1658 dline -1 dline))))
1657 1659
diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el
index 523afd1ad33..30318ba92c8 100644
--- a/lisp/org/org-version.el
+++ b/lisp/org/org-version.el
@@ -5,13 +5,13 @@
5(defun org-release () 5(defun org-release ()
6 "The release version of Org. 6 "The release version of Org.
7Inserted by installing Org mode or when a release is made." 7Inserted by installing Org mode or when a release is made."
8 (let ((org-release "9.1.1")) 8 (let ((org-release "9.1.2"))
9 org-release)) 9 org-release))
10;;;###autoload 10;;;###autoload
11(defun org-git-version () 11(defun org-git-version ()
12 "The Git version of org-mode. 12 "The Git version of org-mode.
13Inserted by installing Org or when a release is made." 13Inserted by installing Org or when a release is made."
14 (let ((org-git-version "release_9.1.1-37-gb1e8b5")) 14 (let ((org-git-version "release_9.1.2-40-g6ca906"))
15 org-git-version)) 15 org-git-version))
16 16
17(provide 'org-version) 17(provide 'org-version)
diff --git a/lisp/org/org.el b/lisp/org/org.el
index c5759cb537b..35405b4bf81 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -16071,7 +16071,9 @@ automatically performed, such drawers will be silently ignored."
16071 (when (memq (org-element-type element) '(keyword node-property)) 16071 (when (memq (org-element-type element) '(keyword node-property))
16072 (let ((value (org-element-property :value element)) 16072 (let ((value (org-element-property :value element))
16073 (start 0)) 16073 (start 0))
16074 (while (string-match "%[0-9]*\\(\\S-+\\)" value start) 16074 (while (string-match "%[0-9]*\\([[:alnum:]_-]+\\)\\(([^)]+)\\)?\
16075\\(?:{[^}]+}\\)?"
16076 value start)
16075 (setq start (match-end 0)) 16077 (setq start (match-end 0))
16076 (let ((p (match-string-no-properties 1 value))) 16078 (let ((p (match-string-no-properties 1 value)))
16077 (unless (member-ignore-case p org-special-properties) 16079 (unless (member-ignore-case p org-special-properties)
@@ -19481,7 +19483,6 @@ COMMANDS is a list of alternating OLDDEF NEWDEF command names."
19481 19483
19482(org-defkey org-mode-map [(shift return)] 'org-table-copy-down) 19484(org-defkey org-mode-map [(shift return)] 'org-table-copy-down)
19483(org-defkey org-mode-map [(meta shift return)] 'org-insert-todo-heading) 19485(org-defkey org-mode-map [(meta shift return)] 'org-insert-todo-heading)
19484(org-defkey org-mode-map [(meta return)] 'org-meta-return)
19485(org-defkey org-mode-map (kbd "M-RET") #'org-meta-return) 19486(org-defkey org-mode-map (kbd "M-RET") #'org-meta-return)
19486 19487
19487;; Cursor keys with modifiers 19488;; Cursor keys with modifiers
@@ -24204,16 +24205,25 @@ convenience:
24204 24205
24205 - On an affiliated keyword, jump to the first one. 24206 - On an affiliated keyword, jump to the first one.
24206 - On a table or a property drawer, move to its beginning. 24207 - On a table or a property drawer, move to its beginning.
24207 - On a verse or source block, stop before blank lines." 24208 - On comment, example, export, src and verse blocks, stop
24209 before blank lines."
24208 (interactive) 24210 (interactive)
24209 (unless (bobp) 24211 (unless (bobp)
24210 (let* ((deactivate-mark nil) 24212 (let* ((deactivate-mark nil)
24211 (element (org-element-at-point)) 24213 (element (org-element-at-point))
24212 (type (org-element-type element)) 24214 (type (org-element-type element))
24213 (contents-begin (org-element-property :contents-begin element))
24214 (contents-end (org-element-property :contents-end element)) 24215 (contents-end (org-element-property :contents-end element))
24215 (post-affiliated (org-element-property :post-affiliated element)) 24216 (post-affiliated (org-element-property :post-affiliated element))
24216 (begin (org-element-property :begin element))) 24217 (begin (org-element-property :begin element))
24218 (special? ;blocks handled specially
24219 (memq type '(comment-block example-block export-block src-block
24220 verse-block)))
24221 (contents-begin
24222 (if special?
24223 ;; These types have no proper contents. Fake line
24224 ;; below the block opening line as contents beginning.
24225 (save-excursion (goto-char begin) (line-beginning-position 2))
24226 (org-element-property :contents-begin element))))
24217 (cond 24227 (cond
24218 ((not element) (goto-char (point-min))) 24228 ((not element) (goto-char (point-min)))
24219 ((= (point) begin) 24229 ((= (point) begin)
@@ -24224,11 +24234,8 @@ convenience:
24224 (goto-char (org-element-property 24234 (goto-char (org-element-property
24225 :post-affiliated (org-element-property :parent element)))) 24235 :post-affiliated (org-element-property :parent element))))
24226 ((memq type '(property-drawer table)) (goto-char begin)) 24236 ((memq type '(property-drawer table)) (goto-char begin))
24227 ((memq type '(src-block verse-block)) 24237 (special?
24228 (when (eq type 'src-block) 24238 (if (<= (point) contents-begin) (goto-char post-affiliated)
24229 (setq contents-begin
24230 (save-excursion (goto-char begin) (forward-line) (point))))
24231 (if (= (point) contents-begin) (goto-char post-affiliated)
24232 ;; Inside a verse block, see blank lines as paragraph 24239 ;; Inside a verse block, see blank lines as paragraph
24233 ;; separators. 24240 ;; separators.
24234 (let ((origin (point))) 24241 (let ((origin (point)))
@@ -24237,7 +24244,6 @@ convenience:
24237 (skip-chars-forward " \r\t\n" origin) 24244 (skip-chars-forward " \r\t\n" origin)
24238 (if (= (point) origin) (goto-char contents-begin) 24245 (if (= (point) origin) (goto-char contents-begin)
24239 (beginning-of-line)))))) 24246 (beginning-of-line))))))
24240 ((not contents-begin) (goto-char (or post-affiliated begin)))
24241 ((eq type 'paragraph) 24247 ((eq type 'paragraph)
24242 (goto-char contents-begin) 24248 (goto-char contents-begin)
24243 ;; When at first paragraph in an item or a footnote definition, 24249 ;; When at first paragraph in an item or a footnote definition,
diff --git a/lisp/org/ox-html.el b/lisp/org/ox-html.el
index fb8c61334f5..8ce4fb6adcd 100644
--- a/lisp/org/ox-html.el
+++ b/lisp/org/ox-html.el
@@ -174,7 +174,6 @@
174 (:html-klipsify-src nil nil org-html-klipsify-src) 174 (:html-klipsify-src nil nil org-html-klipsify-src)
175 (:html-klipse-css nil nil org-html-klipse-css) 175 (:html-klipse-css nil nil org-html-klipse-css)
176 (:html-klipse-js nil nil org-html-klipse-js) 176 (:html-klipse-js nil nil org-html-klipse-js)
177 (:html-klipse-keep-old-src nil nil org-html-keep-old-src)
178 (:html-klipse-selection-script nil nil org-html-klipse-selection-script) 177 (:html-klipse-selection-script nil nil org-html-klipse-selection-script)
179 (:infojs-opt "INFOJS_OPT" nil nil) 178 (:infojs-opt "INFOJS_OPT" nil nil)
180 ;; Redefine regular options. 179 ;; Redefine regular options.
@@ -1572,12 +1571,6 @@ https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag"
1572 :package-version '(Org . "9.1") 1571 :package-version '(Org . "9.1")
1573 :type 'string) 1572 :type 'string)
1574 1573
1575(defcustom org-html-keep-old-src nil
1576 "When non-nil, use <pre class=\"\"> instead of <pre><code class=\"\">."
1577 :group 'org-export-html
1578 :package-version '(Org . "9.1")
1579 :type 'boolean)
1580
1581 1574
1582;;;; Todos 1575;;;; Todos
1583 1576
@@ -3402,12 +3395,16 @@ contextual information."
3402 listing-number 3395 listing-number
3403 (org-trim (org-export-data caption info)))))) 3396 (org-trim (org-export-data caption info))))))
3404 ;; Contents. 3397 ;; Contents.
3405 (let ((open (if org-html-keep-old-src "<pre" "<pre><code")) 3398 (if klipsify
3406 (close (if org-html-keep-old-src "</pre>" "</code></pre>"))) 3399 (format "<pre><code class=\"src src-%s\"%s%s>%s</code></pre>"
3407 (format "%s class=\"src src-%s\"%s%s>%s%s" 3400 lang
3408 open lang label (if (and klipsify (string= lang "html")) 3401 label
3409 " data-editor-type=\"html\"" "") 3402 (if (string= lang "html")
3410 code close))))))) 3403 " data-editor-type=\"html\""
3404 "")
3405 code)
3406 (format "<pre class=\"src src-%s\"%s>%s</pre>"
3407 lang label code)))))))
3411 3408
3412;;;; Statistics Cookie 3409;;;; Statistics Cookie
3413 3410
diff --git a/lisp/org/ox-publish.el b/lisp/org/ox-publish.el
index a975abc4871..957b0da7c59 100644
--- a/lisp/org/ox-publish.el
+++ b/lisp/org/ox-publish.el
@@ -435,8 +435,8 @@ This splices all the components into the list."
435 (let* ((base-dir (file-name-as-directory 435 (let* ((base-dir (file-name-as-directory
436 (org-publish-property :base-directory project))) 436 (org-publish-property :base-directory project)))
437 (extension (or (org-publish-property :base-extension project) "org")) 437 (extension (or (org-publish-property :base-extension project) "org"))
438 (match (and (not (eq extension 'any)) 438 (match (if (eq extension 'any) ""
439 (concat "^[^\\.].*\\.\\(" extension "\\)$"))) 439 (format "^[^\\.].*\\.\\(%s\\)$" extension)))
440 (base-files 440 (base-files
441 (cl-remove-if #'file-directory-p 441 (cl-remove-if #'file-directory-p
442 (if (org-publish-property :recursive project) 442 (if (org-publish-property :recursive project)