diff options
| author | Bastien Guerry | 2012-05-25 23:09:08 +0200 |
|---|---|---|
| committer | Bastien Guerry | 2012-05-25 23:09:08 +0200 |
| commit | 9893229fd65b38e8f6b519550b7e1af491017f76 (patch) | |
| tree | 605c12e9c0aae6521426de96c778ba743c638f4c | |
| parent | 2a88ee23dbe4182c8671b2fa6a1b091ce512cb99 (diff) | |
| download | emacs-9893229fd65b38e8f6b519550b7e1af491017f76.tar.gz emacs-9893229fd65b38e8f6b519550b7e1af491017f76.zip | |
Fix major bug in the Org>ODT exporter.
| -rw-r--r-- | lisp/org/ChangeLog | 17 | ||||
| -rw-r--r-- | lisp/org/org-odt.el | 6 | ||||
| -rw-r--r-- | lisp/org/org.el | 19 |
3 files changed, 30 insertions, 12 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 24133ef850d..ec21c5f2470 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2012-05-25 Mark Shoulson <mark@kli.org> (tiny change) | ||
| 2 | |||
| 3 | * org.el (org-fontify-entities): Fix bug: The entities \sup[123] | ||
| 4 | and \there4 were not "prettified" when org-pretty-entities was | ||
| 5 | enabled. | ||
| 6 | |||
| 7 | 2012-05-235 Nicolas Goaziou <n.goaziou@gmail.com> | ||
| 8 | |||
| 9 | * org.el (org-font-lock-add-priority-faces): Restrict priorities | ||
| 10 | fontification to headlines and inlinetasks. | ||
| 11 | |||
| 12 | 2012-05-25 Jambunathan K <kjambunathan@gmail.com> | ||
| 13 | |||
| 14 | * org-odt.el (org-odt-init-outfile): Fix previous commit. Make | ||
| 15 | sure that nxml-mode is loaded before let-binding | ||
| 16 | `nxml-auto-insert-xml-declaration-flag'. | ||
| 17 | |||
| 1 | 2012-05-25 Jambunathan K <kjambunathan@gmail.com> | 18 | 2012-05-25 Jambunathan K <kjambunathan@gmail.com> |
| 2 | 19 | ||
| 3 | * org-odt.el (org-odt-init-outfile) | 20 | * org-odt.el (org-odt-init-outfile) |
diff --git a/lisp/org/org-odt.el b/lisp/org/org-odt.el index 8475eaae58f..ca43d05bdbd 100644 --- a/lisp/org/org-odt.el +++ b/lisp/org/org-odt.el | |||
| @@ -2211,9 +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 | 2214 | (require 'nxml-mode) |
| 2215 | (let ((nxml-auto-insert-xml-declaration-flag nil)) | 2215 | (let ((nxml-auto-insert-xml-declaration-flag nil)) |
| 2216 | (find-file-noselect content-file t))) | 2216 | (find-file-noselect content-file t)) |
| 2217 | 2217 | ||
| 2218 | ;; reset variables | 2218 | ;; reset variables |
| 2219 | (setq org-odt-manifest-file-entries nil | 2219 | (setq org-odt-manifest-file-entries nil |
diff --git a/lisp/org/org.el b/lisp/org/org.el index fd5250a24be..972f7801afc 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -5917,7 +5917,7 @@ needs to be inserted at a specific position in the font-lock sequence.") | |||
| 5917 | (when org-pretty-entities | 5917 | (when org-pretty-entities |
| 5918 | (catch 'match | 5918 | (catch 'match |
| 5919 | (while (re-search-forward | 5919 | (while (re-search-forward |
| 5920 | "\\\\\\(frac[13][24]\\|[a-zA-Z]+\\)\\($\\|{}\\|[^[:alpha:]\n]\\)" | 5920 | "\\\\\\(there4\\|sup[123]\\|frac[13][24]\\|[a-zA-Z]+\\)\\($\\|{}\\|[^[:alpha:]\n]\\)" |
| 5921 | limit t) | 5921 | limit t) |
| 5922 | (if (and (not (org-in-indented-comment-line)) | 5922 | (if (and (not (org-in-indented-comment-line)) |
| 5923 | (setq ee (org-entity-get (match-string 1))) | 5923 | (setq ee (org-entity-get (match-string 1))) |
| @@ -5990,14 +5990,15 @@ When FACE-OR-COLOR is not a string, just return it." | |||
| 5990 | (defun org-font-lock-add-priority-faces (limit) | 5990 | (defun org-font-lock-add-priority-faces (limit) |
| 5991 | "Add the special priority faces." | 5991 | "Add the special priority faces." |
| 5992 | (while (re-search-forward "\\[#\\([A-Z0-9]\\)\\]" limit t) | 5992 | (while (re-search-forward "\\[#\\([A-Z0-9]\\)\\]" limit t) |
| 5993 | (add-text-properties | 5993 | (when (save-match-data (org-at-heading-p)) |
| 5994 | (match-beginning 0) (match-end 0) | 5994 | (add-text-properties |
| 5995 | (list 'face (or (org-face-from-face-or-color | 5995 | (match-beginning 0) (match-end 0) |
| 5996 | 'priority 'org-special-keyword | 5996 | (list 'face (or (org-face-from-face-or-color |
| 5997 | (cdr (assoc (char-after (match-beginning 1)) | 5997 | 'priority 'org-special-keyword |
| 5998 | org-priority-faces))) | 5998 | (cdr (assoc (char-after (match-beginning 1)) |
| 5999 | 'org-special-keyword) | 5999 | org-priority-faces))) |
| 6000 | 'font-lock-fontified t)))) | 6000 | 'org-special-keyword) |
| 6001 | 'font-lock-fontified t))))) | ||
| 6001 | 6002 | ||
| 6002 | (defun org-get-tag-face (kwd) | 6003 | (defun org-get-tag-face (kwd) |
| 6003 | "Get the right face for a TODO keyword KWD. | 6004 | "Get the right face for a TODO keyword KWD. |