AgeCommit message (Collapse)AuthorFilesLines
10 hoursUpdate keywords for defcustom `org-latex-default-packages-alist'HEADmasterNicolas Goaziou1-3/+4
* lisp/org.el (org-latex-default-packages-alist): Update keywords to reflect changes to default value in 5e03133c478881a7e27f1bdb4777a09e303702be.
15 hoursob-shell: Add missing "sh" to "shell" conversionsNicolas Goaziou1-7/+7
* lisp/ob-shell.el (org-babel-default-header-args:shell): Renamed from `org-babel-default-header-args:sh'. (org-babel-variable-assignments:shell): Renamed from `org-babel-variable-assignments:sh'. (org-babel-prep-session:shell): Renamed from `org-babel-prep-session:sh'. Apply renaming. (org-babel-load-session:shell): Renamed from `org-babel-load-session:sh'. Apply renaming. (org-babel-execute:shell): Apply renaming. Reported-by: Sebastien Vauban <>
16 hoursFix property inheritance with extended valuesNicolas Goaziou2-44/+73
* lisp/org.el (org-property--local-values): New function. (org-entry-get): Use new function. Ignore global values when there is no inheritance. (org-entry-get-with-inheritance): Fix extended values, which do not stop anymore inheritance search. * testing/lisp/test-org.el (test-org/entry-get): Add tests.
16 hoursRemove float from org-latex-default-packages-alistRasmus2-2/+3
16 hoursUpdate minted documentation.Rasmus2-10/+14
* ox-latex.el (org-latex-listings): * org.texi (Literal examples): Update minted documentation.
16 hoursox-latex: Support captions for none-floatsRasmus2-30/+58
* ox-latex.el (org-latex--caption/label-string): Format nonfloating captions using the capt-of package. (org-latex--inline-image, org-latex-src-block) (org-latex--org-table): Allow none-float and caption.
31 hoursorg-element: Fix parsing recursive babel callsNicolas Goaziou2-2/+6
* lisp/org-element.el (org-element-babel-call-parser): Fix parsing recursive babel calls. * testing/lisp/test-org-element.el (test-org-element/babel-call-parser): Add test.
46 hoursorg.texi: Fix un-exportable tableNicolas Goaziou1-7/+7
* doc/org.texi (Column groups): Prevent "[4]" from being interpreted as a footnote reference so as to make table exportable. Reported-by: Nicolas Richard <> <>
3 daysox-html: Prefer custom ID for links in table of contentsNicolas Goaziou1-1/+2
* lisp/ox-html.el (org-html--format-toc-headline): Use custom ID when available. Reported-by: Mitchel Humpherys <> <>
3 daysMerge branch 'maint'Nicolas Goaziou0-0/+0
3 daysorg-wikinodes: Fix fontificationmaintNicolas Goaziou1-5/+4
* contrib/lisp/org-wikinodes.el (org-wikinodes-add-to-font-lock-keywords): Properly install fontification mechanism. Small refactoring. Suggested-by: Scott Campbell <> <>
4 daysUse inactive timestamps when re-scheduling or re-deadliningNicolas Goaziou1-20/+34
* lisp/org.el (org-log-note-headings): Improve docstring. (org-store-log-note): When re-scheduling or re-deadlining, convert old or new timestamp to an inactive one so as to not clutter the agenda. Reported-by: Karl Voit <> <>
5 daysorg-element: Minimize false positives when matching a table.el tableNicolas Goaziou1-1/+2
* lisp/org-element.el (org-element--set-regexps): Improve regexp for table.el tables.
5 daysBe more strict when matching an Org tableNicolas Goaziou1-1/+3
* lisp/org.el (org-at-table-p): Do not allow "+" character at the beginning of a table row.
5 daysFix `org-decrease-number-at-point'Nicolas Goaziou1-1/+1
* lisp/org.el (org-decrease-number-at-point): Handle the case when INC is nil.
5 daysorg-element: Fix table and table.el mixNicolas Goaziou2-4/+5
* lisp/org-element.el (org-element-table-parser): Properly parse an Org table followed by a line starting with a "+". * testing/lisp/test-org-element.el (test-org-element/context): Fix test.
6 daysSilence byte-compilerNicolas Goaziou2-0/+12
6 daysorg-table: Do not modify buffer needlessly when aligning tableNicolas Goaziou1-12/+11
* lisp/org-table.el (org-table-align): Compare new table with old one before replacing it. Only replace modified lines.
6 daysUse parser for `org-at-table-p' and al.Nicolas Goaziou2-69/+47
* lisp/org-table.el (org-table-begin): (org-table-end): Refactor using parser. * lisp/org.el (org-at-table-p): (org-at-table.el-p): Refactor using parser. (org-meta-return): Use `org-at-table-p'. (org-at-table-hline-p): (org-table-recognize-table.el): Small refactoring.
6 daysorg-element: Remove dependency on `org-at-table-p'Nicolas Goaziou1-2/+3
* lisp/org-element.el (org-element-table-parser): Do not call `org-at-table.el-p'. (org-element--current-element): Do not call `org-at-table-p'.
6 daysORG-NEWS: Fix wrong variable nameNicolas Goaziou1-1/+1
6 daysorg-table: Remove `org-table-relative-ref-may-cross-hline'Nicolas Goaziou2-6/+3
* lisp/org-table.el (org-table-relative-ref-may-cross-hline): Remove variable. * etc/ORG-NEWS: Document removal. This variable was declared obsolete in August 2009. See 2cc99fbb0a1c067235d7425031d8ffddc0668a53.
6 daysorg-mobile: Tiny fix in creating fileSergey Gordienko1-2/+2
* lisp/org-mobile.el (org-mobile-create-index-file): Eliminate cloning of `#+READONLY' property in the `' file. A sublists of `org-todo-keywords' don't need to contain the `|'. TINYCHANGE
6 daysorg-add-planning-info: Improve deletion handlingKyle Meyer2-16/+179
* lisp/org.el (org-add-planning-info): Reset point before each planning entry search. Clean up extra spaces. * testing/lisp/test-org.el (test-org/add-planning-info): Add tests. - Reposition save-excursion call to reset point every dolist iteration. Otherwise, the order of the entries to be removed matters, and a call like (org-add-planning-info nil nil 'scheduled 'deadline) on DEADLINE: <2015-06-26 Fri> SCHEDULED: <2015-06-26 Fri> will fail to remove the deadline entry. - Delete leading white space even when at the beginning of the line so that, when org-adapt-indentation is nil, a space is not inserted when removing the leading planning info entry. This prevents headings with repeating entries like SCHEDULED: <2015-06-26 Fri +1w> from being closed and recycled with an extra space in front of SCHEDULED. - Add leading white space to the planning info entry regexp to prevent leftover white space when removing entries other than the first entry.
8 daysox-latex: Fix backslash escaping in plain textNicolas Goaziou1-3/+3
* lisp/ox-latex.el (org-latex-plain-text): Fix backslash escaping.
9 daysox: Properly fix internal regexps after each buffer changeNicolas Goaziou1-7/+14
* lisp/ox.el (org-export-as): Refresh regexps before executing Babel code, running last hook and parsing buffer so precomputed regular expressions are correct at each of these steps. This is not necessary before macros since those are not expected to rely on computed expression. Actually, advanced macros, i.e. with "(eval ...)" syntax, could make use of them, but a Babel snippet is more likely in this situation. Reported-by: Robert Klein <> <>
9 daysorg-capture: Place capture buffer in other windowEric S Fraga1-2/+1
* org-capture.el (org-capture-fill-template): The capture template buffer will be displayed in another window, keeping original window visible if appropriate.
10 dayslisp/org-agenda.el: Fix non-persistent category filters in sticky agendaGrégoire Jadi1-1/+1
* lisp/org-agenda.el (org-agenda-prepare): Use the correct key for category filter. `org-agenda-prepare-window' uses 'cat whereas `org-agenda-prepare' used 'car.
10 dayslisp/org-agenda.el: Fix non-persistent filters when refreshing sticky agendaGrégoire Jadi1-4/+6
* lisp/org-agenda.el (org-agenda-prepare): Fix non-persistent filters when refreshing sticky agenda When a sticky agenda is buried, then reviving and refreshing, existing filters are ignored even when org-agenda-persistent-filter is `t'. Reported and fixed by Daniel Borchmann
10 daysorg-contacts.el: Catch `nextfile' in `org-contacts-db'Philippe Crama1-10/+31
* org-contacts.el (org-contacts-db): Catch `nextfile'. When a file in the list returned by the `org-contacts-files' function doesn't exist and the user selects the option to attempt to remove it from the `org-agenda-files' list, 'nextfile is thrown. Catch it and skip processing that file instead of failing. TINYCHANGE
10 daysorg.texi: Fix the :post exampleAlan Schmitt1-1/+1
* doc/org.texi (post): Add a missing colon in the example.
10 daysox: Handle subtree properties referring to multiple optionsNicolas Goaziou2-73/+70
* lisp/ox.el (org-export--get-subtree-options): When multiple options refer to the same keyword, and, as a consequence, to the same export property, make sure all of them get updated. * testing/lisp/test-ox.el (test-org-export/get-subtree-options): Add test. Reported-by: Myles English <> <>
11 daysox-koma-letter: Parse more keywordsRasmus1-4/+4
* ox-koma-letter.el (koma-letter): Parse author, phone-number, opening, closing and signature. (org-koma-letter-template): parse closing.
11 daysox-latex: Remove useless call to `org-latex--wrap-latex-math-block'Nicolas Goaziou1-2/+1
* lisp/ox-latex.el (org-latex-footnote-reference): Remove call to `org-latex--wrap-latex-math-block' since definitions are already taken care of at the filter parse tree level, since 47265b31cab8d7c019cbd144a0a46657ab33bf1d.
11 daysox: Add external footnotes definitions in parse treeNicolas Goaziou2-77/+167
* lisp/ox.el (org-export-get-environment): (org-export-collect-tree-properties): Remove :footnote-definition-alist property. (org-export-get-footnote-definition): Apply removal of property. (org-export--merge-external-footnote-definitions): New function. (org-export-as): Use new function. * testing/lisp/test-ox.el (test-org-export/footnotes): Update tests. This change allows to have all footnote definitions within the parse tree, so they can be reached with, e.g., a parse tree filter.
11 daysorg-element: Implement `org-element-create'Nicolas Goaziou1-12/+19
* lisp/org-element.el (org-element-create): New function. (org-element-adopt-elements): Small refactoring.
11 daysorg.texi: Remove reference to unexistent filterNicolas Goaziou1-12/+11
* doc/org.texi (Advanced configuration): Remove reference to quote-section filter.
11 daysox-latex: Introduce :environment attribute for example blocksNicolas Goaziou2-6/+29
* lisp/ox-latex.el (org-latex-example-block): Implement :environment attribute, which allows to override "verbatim" environment. * doc/org.texi (@LaTeX{} specific attributes): Document change.
11 daysorg-clone-subtree-with-time-shift: Accept 0 clonesKyle Meyer3-3/+58
* lisp/org.el (org-clone-subtree-with-time-shift): Allow argument specifying number of clones to be 0. * testing/lisp/test-org.el (test-org/clone-with-time-shift): Add tests. This makes it possible to clone a subtree with a repeating timestamp so that the repeater is removed from the original subtree and a single shifted, repeating clone is created. If the original subtree does not have a repeating timestamp, no clones will be made.
12 daysTiny speed-up for `org-entry-properties'Nicolas Goaziou2-5/+29
* lisp/org.el (org-entry-properties): Tiny speed-up. * testing/lisp/test-org.el (test-org/entry-properties): Add test.
13 daysorg.texi: Fix typomyq larson1-1/+1
* doc/org.texi (Timestamps): Fix typo. TINYCHANGE
2015-06-18ox-koma-letter: Fix a docstringNicolas Goaziou1-14/+14
* contrib/lisp/ox-koma-letter.el (org-koma-letter--special-contents-as-macro): Fix docstring. Tiny refactoring.
2015-06-18ox: Tiny refactoringNicolas Goaziou1-8/+4
* lisp/ox.el (org-export-replace-region-by): Refactor.
2015-06-17ob-core: Small refactoringNicolas Goaziou1-24/+22
* lisp/ob-core.el (org-babel-params-from-properties): Refactor code to avoid nesting `mapcar' calls.
2015-06-16ox: Simplify fuzzy link matchingNicolas Goaziou2-74/+43
* lisp/ox.el (org-export-resolve-fuzzy-link): When a fuzzy link matches more than one headline, prefer the first one in the parse tree. * testing/lisp/test-ox.el (test-org-export/fuzzy-link): Remove a test. This behaviour is consistent with `org-open-at-point'. Also, it allows to cache destinations.
2015-06-16Sanitize link encodingNicolas Goaziou3-84/+63
* lisp/org.el (org-store-link): Improve docstring. (org-make-link-string): Escape internal links only when absolutely necessary. (org-link-escape-chars): Add percent character. (org-link-escape-chars-browser): Make space character more visible. (org-link-escape): Refactor code. (org-display-inline-images): Properly unescape path before creating the link. (org-extract-attributes): Remove function. * lisp/ox.el (org-export-resolve-fuzzy-link): Decode path before resolving link. * testing/lisp/test-ox.el (test-org-export/resolve-fuzzy-link): Add test.
2015-06-16ox-beamer: Wrap labels in bracesSuvayu Ali1-1/+1
* ox-beamer.el (org-beamer--get-label): Wrap labels in braces. The colon in the label name causes an argument parsing problem, for more see <>.
2015-06-16Small refactoringNicolas Goaziou1-9/+7
* lisp/org.el (org-link-unescape): Refactor code.
2015-06-16ox-beamer: Add %R and %O placeholders for extra environmentsNicolas Goaziou1-7/+13
* lisp/ox-beamer.el (org-beamer-environments-extra): Handle "%R" and "%O" placeholders. (org-beamer--format-block): Fill template with appropriate values for placeholders above. Suggested-by: Suvayu Ali <> <>
2015-06-16ox-beamer: Fix labels to headlinesNicolas Goaziou1-5/+2
* lisp/ox-beamer.el (org-beamer--get-label): Use headline's internal reference instead of using numbers.