diff options
| author | Bastien Guerry | 2012-05-25 09:39:32 +0200 |
|---|---|---|
| committer | Bastien Guerry | 2012-05-25 09:39:32 +0200 |
| commit | 2a88ee23dbe4182c8671b2fa6a1b091ce512cb99 (patch) | |
| tree | 49dd2c5829d4d1fea479512cfdcb58cbdac16983 | |
| parent | 2f9b9adb4652f52c12b6388b1fd3d03fa4f99b32 (diff) | |
| download | emacs-2a88ee23dbe4182c8671b2fa6a1b091ce512cb99.tar.gz emacs-2a88ee23dbe4182c8671b2fa6a1b091ce512cb99.zip | |
Merge Org 7.8.11 -- important bug fixes.
| -rw-r--r-- | doc/misc/org.texi | 4 | ||||
| -rw-r--r-- | etc/refcards/orgcard.pdf | bin | 118613 -> 118438 bytes | |||
| -rw-r--r-- | etc/refcards/orgcard.tex | 2 | ||||
| -rw-r--r-- | lisp/org/ChangeLog | 30 | ||||
| -rw-r--r-- | lisp/org/ob-plantuml.el | 3 | ||||
| -rw-r--r-- | lisp/org/ob.el | 15 | ||||
| -rw-r--r-- | lisp/org/org-exp-blocks.el | 8 | ||||
| -rw-r--r-- | lisp/org/org-lparse.el | 3 | ||||
| -rw-r--r-- | lisp/org/org-odt.el | 7 | ||||
| -rw-r--r-- | lisp/org/org.el | 9 |
10 files changed, 61 insertions, 20 deletions
diff --git a/doc/misc/org.texi b/doc/misc/org.texi index d4353e26eba..c5e59c9c7e8 100644 --- a/doc/misc/org.texi +++ b/doc/misc/org.texi | |||
| @@ -4,8 +4,8 @@ | |||
| 4 | @setfilename ../../info/org | 4 | @setfilename ../../info/org |
| 5 | @settitle The Org Manual | 5 | @settitle The Org Manual |
| 6 | 6 | ||
| 7 | @set VERSION 7.8.10 | 7 | @set VERSION 7.8.11 |
| 8 | @set DATE May 2012 | 8 | @set DATE mai 2012 |
| 9 | 9 | ||
| 10 | @c Use proper quote and backtick for code sections in PDF output | 10 | @c Use proper quote and backtick for code sections in PDF output |
| 11 | @c Cf. Texinfo manual 14.2 | 11 | @c Cf. Texinfo manual 14.2 |
diff --git a/etc/refcards/orgcard.pdf b/etc/refcards/orgcard.pdf index 44cc7bf89ae..2b474bf4e93 100644 --- a/etc/refcards/orgcard.pdf +++ b/etc/refcards/orgcard.pdf | |||
| Binary files differ | |||
diff --git a/etc/refcards/orgcard.tex b/etc/refcards/orgcard.tex index 6bebbaa9f61..3c0584d6db4 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{7.8.10} | 2 | \def\orgversionnumber{7.8.11} |
| 3 | \def\versionyear{2012} % latest update | 3 | \def\versionyear{2012} % latest update |
| 4 | \def\year{2012} % latest copyright year | 4 | \def\year{2012} % latest copyright year |
| 5 | 5 | ||
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 19f6a15dc9c..24133ef850d 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,33 @@ | |||
| 1 | 2012-05-25 Jambunathan K <kjambunathan@gmail.com> | ||
| 2 | |||
| 3 | * org-odt.el (org-odt-init-outfile) | ||
| 4 | (org-odt-write-manifest-file): Disable | ||
| 5 | `nxml-auto-insert-xml-declaration-flag'. | ||
| 6 | |||
| 7 | 2012-05-25 Bastien Guerry <bzg@gnu.org> | ||
| 8 | |||
| 9 | * org.el (org-scan-tags): Fix bug when building the scanner | ||
| 10 | regexp. | ||
| 11 | |||
| 12 | 2012-05-25 Eric Schulte <eric.schulte@gmx.com> | ||
| 13 | |||
| 14 | * ob.el (org-babel-capitalize-examplize-region-markers): Controls | ||
| 15 | the capitalization of begin and end example blocks. | ||
| 16 | (org-babel-examplize-region): Optionally capitalize example block | ||
| 17 | delimiters. | ||
| 18 | |||
| 19 | 2012-05-25 Eric Schulte <eric.schulte@gmx.com> | ||
| 20 | |||
| 21 | * ob-plantuml.el (org-babel-execute:plantuml): Adding a :java | ||
| 22 | header argument to plantuml. | ||
| 23 | |||
| 24 | 2012-05-25 Eric Schulte <eric.schulte@gmx.com> | ||
| 25 | |||
| 26 | * org-exp-blocks.el (org-export-blocks-preprocess): Even when the | ||
| 27 | body of a block is not indented the boundary markers should be | ||
| 28 | indented to their original positions so things like list | ||
| 29 | indentation still work. | ||
| 30 | |||
| 1 | 2012-05-16 Eric Schulte <eric.schulte@gmx.com> | 31 | 2012-05-16 Eric Schulte <eric.schulte@gmx.com> |
| 2 | 32 | ||
| 3 | * ob.el (org-babel-parse-src-block-match): Save match data during | 33 | * ob.el (org-babel-parse-src-block-match): Save match data during |
diff --git a/lisp/org/ob-plantuml.el b/lisp/org/ob-plantuml.el index 55729eb4172..7da689393a3 100644 --- a/lisp/org/ob-plantuml.el +++ b/lisp/org/ob-plantuml.el | |||
| @@ -55,9 +55,10 @@ This function is called by `org-babel-execute-src-block'." | |||
| 55 | (error "plantuml requires a \":file\" header argument"))) | 55 | (error "plantuml requires a \":file\" header argument"))) |
| 56 | (cmdline (cdr (assoc :cmdline params))) | 56 | (cmdline (cdr (assoc :cmdline params))) |
| 57 | (in-file (org-babel-temp-file "plantuml-")) | 57 | (in-file (org-babel-temp-file "plantuml-")) |
| 58 | (java (or (cdr (assoc :java params)) "")) | ||
| 58 | (cmd (if (not org-plantuml-jar-path) | 59 | (cmd (if (not org-plantuml-jar-path) |
| 59 | (error "`org-plantuml-jar-path' is not set") | 60 | (error "`org-plantuml-jar-path' is not set") |
| 60 | (concat "java -jar " | 61 | (concat "java " java " -jar " |
| 61 | (shell-quote-argument | 62 | (shell-quote-argument |
| 62 | (expand-file-name org-plantuml-jar-path)) | 63 | (expand-file-name org-plantuml-jar-path)) |
| 63 | (if (string= (file-name-extension out-file) "svg") | 64 | (if (string= (file-name-extension out-file) "svg") |
diff --git a/lisp/org/ob.el b/lisp/org/ob.el index 69d7da4cb0e..05122487588 100644 --- a/lisp/org/ob.el +++ b/lisp/org/ob.el | |||
| @@ -1958,11 +1958,16 @@ file's directory then expand relative links." | |||
| 1958 | (stringp (car result)) (stringp (cadr result))) | 1958 | (stringp (car result)) (stringp (cadr result))) |
| 1959 | (format "[[file:%s][%s]]" (car result) (cadr result)))))) | 1959 | (format "[[file:%s][%s]]" (car result) (cadr result)))))) |
| 1960 | 1960 | ||
| 1961 | (defvar org-babel-capitalize-examplize-region-markers nil | ||
| 1962 | "Make true to capitalize begin/end example markers inserted by code blocks.") | ||
| 1963 | |||
| 1961 | (defun org-babel-examplize-region (beg end &optional results-switches) | 1964 | (defun org-babel-examplize-region (beg end &optional results-switches) |
| 1962 | "Comment out region using the inline '==' or ': ' org example quote." | 1965 | "Comment out region using the inline '==' or ': ' org example quote." |
| 1963 | (interactive "*r") | 1966 | (interactive "*r") |
| 1964 | (flet ((chars-between (b e) | 1967 | (flet ((chars-between (b e) |
| 1965 | (not (string-match "^[\\s]*$" (buffer-substring b e))))) | 1968 | (not (string-match "^[\\s]*$" (buffer-substring b e)))) |
| 1969 | (maybe-cap (str) (if org-babel-capitalize-examplize-region-markers | ||
| 1970 | (upcase str) str))) | ||
| 1966 | (if (or (chars-between (save-excursion (goto-char beg) (point-at-bol)) beg) | 1971 | (if (or (chars-between (save-excursion (goto-char beg) (point-at-bol)) beg) |
| 1967 | (chars-between end (save-excursion (goto-char end) (point-at-eol)))) | 1972 | (chars-between end (save-excursion (goto-char end) (point-at-eol)))) |
| 1968 | (save-excursion | 1973 | (save-excursion |
| @@ -1979,10 +1984,12 @@ file's directory then expand relative links." | |||
| 1979 | (t | 1984 | (t |
| 1980 | (goto-char beg) | 1985 | (goto-char beg) |
| 1981 | (insert (if results-switches | 1986 | (insert (if results-switches |
| 1982 | (format "#+begin_example%s\n" results-switches) | 1987 | (format "%s%s\n" |
| 1983 | "#+begin_example\n")) | 1988 | (maybe-cap "#+begin_example") |
| 1989 | results-switches) | ||
| 1990 | (maybe-cap "#+begin_example\n"))) | ||
| 1984 | (if (markerp end) (goto-char end) (forward-char (- end beg))) | 1991 | (if (markerp end) (goto-char end) (forward-char (- end beg))) |
| 1985 | (insert "#+end_example\n")))))))) | 1992 | (insert (maybe-cap "#+end_example\n"))))))))) |
| 1986 | 1993 | ||
| 1987 | (defun org-babel-update-block-body (new-body) | 1994 | (defun org-babel-update-block-body (new-body) |
| 1988 | "Update the body of the current code block to NEW-BODY." | 1995 | "Update the body of the current code block to NEW-BODY." |
diff --git a/lisp/org/org-exp-blocks.el b/lisp/org/org-exp-blocks.el index 7d466cec65d..fbac6592090 100644 --- a/lisp/org/org-exp-blocks.el +++ b/lisp/org/org-exp-blocks.el | |||
| @@ -211,7 +211,13 @@ which defaults to the value of `org-export-blocks-witheld'." | |||
| 211 | (when replacement | 211 | (when replacement |
| 212 | (delete-region match-start match-end) | 212 | (delete-region match-start match-end) |
| 213 | (goto-char match-start) (insert replacement) | 213 | (goto-char match-start) (insert replacement) |
| 214 | (unless preserve-indent | 214 | (if preserve-indent |
| 215 | ;; indent only the code block markers | ||
| 216 | (save-excursion | ||
| 217 | (indent-line-to indentation) ; indent end_block | ||
| 218 | (goto-char match-start) | ||
| 219 | (indent-line-to indentation)) ; indent begin_block | ||
| 220 | ;; indent everything | ||
| 215 | (indent-code-rigidly match-start (point) indentation))))) | 221 | (indent-code-rigidly match-start (point) indentation))))) |
| 216 | ;; cleanup markers | 222 | ;; cleanup markers |
| 217 | (set-marker match-start nil) | 223 | (set-marker match-start nil) |
diff --git a/lisp/org/org-lparse.el b/lisp/org/org-lparse.el index c9669dd8ab4..9c3cd5b4811 100644 --- a/lisp/org/org-lparse.el +++ b/lisp/org/org-lparse.el | |||
| @@ -1111,9 +1111,6 @@ version." | |||
| 1111 | (unless body-only | 1111 | (unless body-only |
| 1112 | (org-lparse-end 'DOCUMENT-CONTENT)) | 1112 | (org-lparse-end 'DOCUMENT-CONTENT)) |
| 1113 | 1113 | ||
| 1114 | (unless (plist-get opt-plist :buffer-will-be-killed) | ||
| 1115 | (set-auto-mode t)) | ||
| 1116 | |||
| 1117 | (org-lparse-end 'EXPORT) | 1114 | (org-lparse-end 'EXPORT) |
| 1118 | 1115 | ||
| 1119 | ;; kill collection buffer | 1116 | ;; kill collection buffer |
diff --git a/lisp/org/org-odt.el b/lisp/org/org-odt.el index 2e984a575bd..8475eaae58f 100644 --- a/lisp/org/org-odt.el +++ b/lisp/org/org-odt.el | |||
| @@ -2211,7 +2211,9 @@ captions on export.") | |||
| 2211 | (content-file (expand-file-name "content.xml" outdir))) | 2211 | (content-file (expand-file-name "content.xml" outdir))) |
| 2212 | 2212 | ||
| 2213 | ;; init conten.xml | 2213 | ;; init conten.xml |
| 2214 | (with-current-buffer (find-file-noselect content-file t)) | 2214 | (with-current-buffer |
| 2215 | (let ((nxml-auto-insert-xml-declaration-flag nil)) | ||
| 2216 | (find-file-noselect content-file t))) | ||
| 2215 | 2217 | ||
| 2216 | ;; reset variables | 2218 | ;; reset variables |
| 2217 | (setq org-odt-manifest-file-entries nil | 2219 | (setq org-odt-manifest-file-entries nil |
| @@ -2320,7 +2322,8 @@ visually." | |||
| 2320 | (make-directory "META-INF") | 2322 | (make-directory "META-INF") |
| 2321 | (let ((manifest-file (expand-file-name "META-INF/manifest.xml"))) | 2323 | (let ((manifest-file (expand-file-name "META-INF/manifest.xml"))) |
| 2322 | (with-current-buffer | 2324 | (with-current-buffer |
| 2323 | (find-file-noselect manifest-file t) | 2325 | (let ((nxml-auto-insert-xml-declaration-flag nil)) |
| 2326 | (find-file-noselect manifest-file t)) | ||
| 2324 | (insert | 2327 | (insert |
| 2325 | "<?xml version=\"1.0\" encoding=\"UTF-8\"?> | 2328 | "<?xml version=\"1.0\" encoding=\"UTF-8\"?> |
| 2326 | <manifest:manifest xmlns:manifest=\"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0\" manifest:version=\"1.2\">\n") | 2329 | <manifest:manifest xmlns:manifest=\"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0\" manifest:version=\"1.2\">\n") |
diff --git a/lisp/org/org.el b/lisp/org/org.el index 4710bd5bd86..fd5250a24be 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Maintainer: Bastien Guerry <bzg at gnu dot org> | 6 | ;; Maintainer: Bastien Guerry <bzg at gnu dot org> |
| 7 | ;; Keywords: outlines, hypermedia, calendar, wp | 7 | ;; Keywords: outlines, hypermedia, calendar, wp |
| 8 | ;; Homepage: http://orgmode.org | 8 | ;; Homepage: http://orgmode.org |
| 9 | ;; Version: 7.8.10 | 9 | ;; Version: 7.8.11 |
| 10 | ;; | 10 | ;; |
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | ;; | 12 | ;; |
| @@ -206,7 +206,7 @@ identifier." | |||
| 206 | 206 | ||
| 207 | ;;; Version | 207 | ;;; Version |
| 208 | 208 | ||
| 209 | (defconst org-version "7.8.10" | 209 | (defconst org-version "7.8.11" |
| 210 | "The version number of the file org.el.") | 210 | "The version number of the file org.el.") |
| 211 | 211 | ||
| 212 | ;;;###autoload | 212 | ;;;###autoload |
| @@ -12828,10 +12828,7 @@ headlines matching this string." | |||
| 12828 | org-outline-regexp) | 12828 | org-outline-regexp) |
| 12829 | " *\\(\\<\\(" | 12829 | " *\\(\\<\\(" |
| 12830 | (mapconcat 'regexp-quote org-todo-keywords-1 "\\|") | 12830 | (mapconcat 'regexp-quote org-todo-keywords-1 "\\|") |
| 12831 | (org-re | 12831 | (org-re "\\)\\>\\)? *\\(.*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$"))) |
| 12832 | (if todo-only | ||
| 12833 | "\\>\\)\\)[ \t]+\\(.*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$" | ||
| 12834 | "\\>\\)\\)? *\\([^ ].*?\\)\\(:[[:alnum:]_@#%:]+:\\)?[ \t]*$")))) | ||
| 12835 | (props (list 'face 'default | 12832 | (props (list 'face 'default |
| 12836 | 'done-face 'org-agenda-done | 12833 | 'done-face 'org-agenda-done |
| 12837 | 'undone-face 'default | 12834 | 'undone-face 'default |