AgeCommit message (Collapse)AuthorFilesLines
24 hoursorg-element: Remove :alt-title property for headlinesHEADmasterNicolas Goaziou2-13/+8
* lisp/org-element.el (org-element-headline-parser): Remove :alt-title. * lisp/ox.el (org-export-get-alt-title): Check regular :ALT_TITLE property instead of :alt-title. `:alt-title' is an export-specific property. As a consequence, it's value doesn't need to be parsed at "org-element.el"'s level. There, it is treated as a regular property : `ALT_TITLE'. This also removes the last call to `org-element-parse-secondary-string' from "org-element.el".
24 hoursox-ascii: Fix indentation for description lists with links in tagsNicolas Goaziou1-7/+8
* lisp/ox-ascii.el (org-ascii--current-text-width): Compute contents' text width according to exported tag instead of original one. Reported-by: Rasmus <> <>
37 hoursorg-element: Avoid `org-element-parse-secondary-string'Nicolas Goaziou1-40/+84
* lisp/org-element.el (org-element-headline-parser, org-element-inlinetask-parser, org-element-item-parser, org-element--collect-affiliated-keywords): Use `org-element--parse-objects' instead of `org-element-parse-secondary-string' when parsing live objects in secondary strings. `org-element-parse-secondary-string' parses a given string in a temporary buffer, rendering buffer position related properties (e.g., :begin) invalid. Reported-by: John Kitchin <> <>
41 hoursorg-element: Tiny refactoringNicolas Goaziou1-3/+2
* lisp/org-element.el (org-element-headline-interpreter, org-element-inlinetask-interpreter): Use format control string instead of calling `char-to-string'.
44 hoursMerge branch 'master' of Goaziou2-3/+1
2 daysox-html: Remove extra HTML_HEAD, HTML_HEAD_EXTRARasmus1-2/+0
* ox-html.el (html): Fix typo.
2 dayscontrib/README: more precise doc about org-eww.elMarco Wahl1-1/+1
Actually using the same wording as for org-w3m.el now.
3 daysorg-element: Tiny refactoringNicolas Goaziou1-6/+6
* lisp/org-element.el (org-element-map): Reduce consing and improve readability at the price of a tiny code duplication.
3 dayscontrib: Fix error messages.Aaron Ecay8-11/+11
* contrib/lisp/ob-eukleides.el (org-babel-execute:eukleides): * contrib/lisp/ob-oz.el (org-babel-execute:oz): * contrib/lisp/ob-tcl.el (org-babel-prep-session:tcl): (org-babel-tcl-evaluate): * contrib/lisp/org-contacts.el (org-contacts-view-send-email): * contrib/lisp/org-drill.el (org-drill-hide-heading-at-point): * contrib/lisp/org-mew.el (org-mew-search): (org-mew-capture): * contrib/lisp/org-toc.el (org-toc-forward): * contrib/lisp/ox-freemind.el (org-freemind--build-node-contents): Fix formatting of error messages.
3 daysFix error messages.Aaron Ecay4-5/+5
* lisp/ob-coq.el (org-babel-coq-initiate-session): * lisp/ob-latex.el (org-babel-execute:latex): * lisp/org-macro.el (org-macro-replace-all): * lisp/org.el (org--get-display-dpi): Fix formatting of error messages.
4 daysorg-element: Optimize `org-element-map'Nicolas Goaziou1-103/+98
* lisp/org-element.el (org-element--parsed-properties-alist): New variable. (org-element-map): Remove unnecessary funcalls. Externalize some computations in the variable above.
4 daysrework fix in82599d37e1 to use should-error macroAchim Gratz1-11/+7
* testing/lisp/test-org-table.el: Use `should-error' instead of `condition-case' as that is what ERT provides for these sort of tests.
4 dayscompatibility fixes for fda70440f4Achim Gratz2-3/+3
* testing/lisp/test-ob-lob.el (test-ob-lob/call-with-header-arguments): Replace `cl-letf' with `letf' for compatibility with older Emacsen. * testing/lisp/test-org-timer.el (test-org-timer/other-timer-error): Also check for 'error since 'user-error is not used by older Emacsen.
4 daysob-core: Fix error messagesNicolas Goaziou1-2/+2
* lisp/ob-core.el (org-babel--script-escape-inner, org-babel-script-escape): Error messages do not end with a full stop.
5 daysox: Prune parse tree before calling tree filterNicolas Goaziou2-76/+75
* lisp/ox.el (org-export-collect-tree-properties): Do not set :ignore-list. (org-export--populate-ignore-list): Remove function. (org-export--selected-trees): Small refactoring. (org-export-prune-tree): New function. (org-export-remove-uninterpreted-data): Fix docstring. (org-export-as): Prune tree before calling tree filter. * testing/lisp/test-ox.el (org-test-with-parsed-data): Fix macro. This patch introduces two changes in the export process: 1. Non-exported elements are removed from the tree instead of being moved into an ignore list (with the exceptions of tables rows and cells) 2. Parse tree filter is called on the tree being exported, not the original one. Reported-by: Eric S Fraga <> <>
6 daysob-R: Convert some defvars to defconsts.Aaron Ecay1-4/+33
* lisp/ob-R.el (org-babel-R-eoe-indicator): (org-babel-R-eoe-output): Convert from defvar to defconst. (org-babel-R-write-object-command): Convert from defvar to defconst. Add line breaks and indentation.
6 daysbabel: fix up org-babel-script-escapeAaron Ecay2-47/+178
* lisp/ob-core.el (org-babel--script-escape-inner): New function. (org-babel-script-escape): Use it. * testing/lisp/test-ob.el (test-org-babel/script-escape): New test.
6 daysbabel: Remove functions which are just indirection around ↵Aaron Ecay4-34/+4
org-babel-script-escape * lisp/ob-groovy.el (org-babel-groovy-table-or-string): Remove. (org-babel-groovy-evaluate): Call `org-babel-script-escape' instead. * lisp/ob-haskell.el (org-babel-haskell-table-or-string): Remove. (org-babel-execute:haskell): Call `org-babel-script-escape' instead. * lisp/ob-io.el (org-babel-io-table-or-string): Remove. (org-babel-io-evaluate):Call `org-babel-script-escape' instead. * lisp/ob-scala.el (org-babel-scala-table-or-string): Remove. (org-babel-scala-evaluate): Call `org-babel-script-escape' instead.
6 daysbabel: Remove functions which are never called.Aaron Ecay2-11/+0
* lisp/ob-awk.el (org-babel-awk-table-or-string): * lisp/ob-shell.el (org-babel-sh-table-or-results): Remove.
6 daystest-org-src: Fix failing testsNicolas Goaziou1-8/+7
* testing/lisp/test-org-src.el (test-org-src/basic, test-org-src/empty-block): Do not rely on `word-at-point'.
6 daysorg-table: Fix typoNicolas Goaziou1-3/+3
* lisp/org-table.el (org-table-show-reference): Fix typo.
7 daysob-python: Convert two defvars to defconsts.Aaron Ecay1-2/+2
* lisp/ob-python.el (org-babel-python-wrapper-method): (org-babel-python-pp-wrapper-method): Convert from defvar to defconst.
7 daysObsolete ‘org-at-regexp-p’.Aaron Ecay2-29/+19
* lisp/org.el (org-at-regexp-p): Remove, adding an obsolete function alias. (org-in-regexp): Tidy docstring. (org-open-at-point): (org-between-regexps-p): * lisp/org-table.el (org-table-fedit-shift-reference): (org-table-show-reference): Call ‘org-in-regexp’ instead.
7 daystest: Fixes for running tests interactively.Aaron Ecay8-291/+347
* testing/examples/ Change spaces to dashes in #+name lines. * testing/lisp/test-ob-exp.el (org-test-with-expanded-babel-code): (ob-exp/evaluate-all-executables-in-order): (ob-exp/exports-inline-code): (ob-exp/exports-inline): (ob-exp/exports-inline-code-double-eval): (ob-exp/exports-inline-code-eval-code-once): (ob-exp/exports-inline-code-double-eval-exports-both): (ob-exp/use-case-of-reading-entry-properties): (ob-exp/export-from-a-temp-buffer): (ob-export/export-with-results-before-block): (ob-export/export-under-commented-headline): * testing/lisp/test-ob-lob.el (test-ob-lob/export-lob-lines): * testing/lisp/test-ob.el (test-org-babel/inline-src_blk-default-results-replace-line-1): (test-org-babel/inline-src_blk-default-results-replace-line-2): (test-org-babel/inline-src_blk-manual-results-replace): (test-org-babel/inline-src_blk-results-scalar): (test-org-babel/inline-src_blk-results-verbatim): (test-org-babel/inline-src_blk-preceded-punct-preceded-by-point): * testing/lisp/test-ox.el (test-org-export/export-scope): Bind ‘org-babel-inline-result-wrap’ and/or ‘org-export-babel-evaluate’ so tests work when users have customized these variables. * testing/lisp/test-ob-exp.el (ob-export/export-with-results-before-block): Add ‘org-trim’ where an extra newline was creeping in. * testing/lisp/test-ob-lob.el (test-ob-lob/call-with-header-arguments): Neutralize org-babel-insert-result, which was stomping on the buffer contents and disrupting the test * testing/lisp/test-org-element.el (test-org-element/block-switches): Replace (should (and ...)) with multiple (should ...). This gives more precise indications of what is wrong when a test fails. (test-org-element/link-parser): Require org-docview. * testing/lisp/test-org-timer.el (test-org-timer/other-timer-error): Add the error type for ‘should-error’. * testing/lisp/test-ox.el (test-org-export/set-title): (test-org-export/handle-options): (test-org-export/with-timestamps): (test-org-export/comment-tree): (test-org-export/handle-inlinetasks): Let ‘org-export-filter-body-functions’ and ‘org-export-filter-final-output-functions’ to nil where an empty string is the expected result. ‘org-export-filter-apply-functions’ treats an empty string as special, and changes it to nil. This creates test failures when the user has customized these variables. * testing/org-test.el (org-test-with-temp-text): Let ‘org-mode-hook’ to nil. (org-test-table-target-expect): Require ert since this function calls some of its should* functions.
7 daysbabel: Fix bug in ‘org-babel-lob-get-info’.Aaron Ecay1-3/+4
* lisp/ob-lob.el (org-babel-lob-get-info): Use `save-match-data'. Callers rely on the match data being set to ‘org-babel-lob-one-liner-regexp’.
7 daysbabel: Fix bug in org-babel-get-inline-src-block-matches.Aaron Ecay1-1/+1
* lisp/ob-core.el (org-babel-get-inline-src-block-matches): Use `org-looking-at-p' instead of `thing-at-point'. The latter could give odd results depending on the syntax table. In particular, for me (thing-at-point 'word) was returning src_foo in this context.
7 daysox: Fix docstringsNicolas Goaziou1-6/+6
* lisp/ox.el (org-export-dictionary, org-export-translate): Fix spaces at the end of sentences. Do not upcase `car' and `cdr'.
7 daysox: Remove `org-export-ignore-element'Nicolas Goaziou2-45/+2
* lisp/ox.el (org-export-ignore-element): Remove function. (org-export-collect-tree-properties): Do not assume users can modify :ignore-list export property. * testing/lisp/test-ox.el (test-org-export/user-ignore-list): Remove test. :ignore-property is an implementation detail, which should not be exposed to users. Also, it is easier to simply remove the element to ignore from the parse tree with `org-element-extract-element'.
7 daysorg.texi: Minor fixesNicolas Goaziou1-3/+4
* doc/org.texi (Export settings): Add UNNUMBERED property to concept index. Fix number of spaces at the end of a sentence. Use @code instead of @samp for reserved properties.
7 daysFix docstringsNicolas Goaziou1-4/+4
* lisp/org.el (org-next-visible-heading, org-previous-visible-heading): Shorten summary. Fix typo.
8 daysorg.texi: Documentation for 464cd96rasmus1-1/+3
* org.texi (Export settings): Document the UNNUMBERED property.
8 daysAdd new functions to move to the next/prev headline skipping inline tasks.Aaron Ecay2-22/+52
* lisp/org.el (org-next-visible-heading): (org-previous-visible-heading): New functions. (org-speed-commands-default, org-mode-map): Use them.
8 daysob-asymptote, ob-emacs-lisp: remove spurious declare-function calls.Aaron Ecay2-5/+0
* lisp/ob-asymptote.el: * lisp/ob-emacs-lisp.el: Remove spurious `declare-function's.
8 daysox-rss: Handle RSS_TITLE propertyNicolas Petton1-5/+9
* contrib/lisp/ox-rss.el (org-rss-headline): Title use :RSS_TITLE instead of headline text, when available.
8 daysmacro: Implement argument extracting and escaping functionsNicolas Goaziou3-12/+70
* lisp/org-macro.el (org-macro-escape-arguments, org-macro-extract-arguments): New functions. * lisp/org-element.el (org-element-macro-parser): Use new function. * testing/lisp/test-org-macro.el (test-org-macro/escape-arguments, test-org-macro/extract-arguments): New tests.
9 daysorg-index.el: bugfix for command occurMarc-Oliver Ihm1-37/+45
9 days`org-open-link' follows timestamps in propertiesNicolas Goaziou1-33/+18
* lisp/org.el (org-open-at-point): Follow timestamps in properties drawers. Refactor. Suggested-by: Marco Wahl <>
10 daysVersion 3.1.0 of org-index with rewritten command occur.Marc-Oliver Ihm1-426/+438
10 daysorg: Calculate dpi directly.Aaron Ecay1-8/+14
* lisp/org.el (org--get-display-dpi): New function. (org-create-formula-image-with-dvipng): (org-create-formula-image-with-imagemagick): Use it. The previous method tried to calculate the display dpi from the font height, but this is wonky and not necessary, since it can be calculated directly.
10 daysorg.el: org-toggle-inline-images: Only display messsages when interactive.Aaron Ecay1-6/+7
* lisp/org.el (org-toggle-inline-images): Only message if called-interactively-p. The old code made a halfhearted attempt to do this; this patch provides the other half of the heart.
10 daysob-ocaml: Add a cautionary comment about dodgy regex use.Aaron Ecay1-0/+4
* lisp/ob-ocaml.el (org-babel-ocaml-read-list): Add comment
10 daysorg-footnote: Use a simpler method to generate random labels.Aaron Ecay1-2/+1
* lisp/org-footnote.el (org-footnote-new): Improve generation of random labels.
10 daysorg-compat: obsolete org-activate-mark.Aaron Ecay1-11/+2
* lisp/org-compat.el (org-activate-mark): Make obsolete. The activate-mark function was introduced in Emacs 23 and org-activate-mark wasn’t called anywhere in the code base.
11 daysFix `org-set-visibility-according-to-property'Nicolas Goaziou1-28/+27
* lisp/org.el (org-set-visibility-according-to-property): Ensure state is exctracted from a real node property. Ignore narrowing.
11 daysRemove `org-in-drawer-p'Nicolas Goaziou1-9/+0
* lisp/org.el (org-in-drawer-p): Remove function. The function is unused, and slightly wrong.
12 daysmanual: Further rewrite :session doc.Aaron Ecay1-9/+12
* doc/org.texi (session): Spruce up.
12 daysmanual: Rewrite :session doc.Thierry Pellé1-7/+14
* doc/org.texi (session): Spruce up.
2015-01-13org.texi: Replace parenthesis comment stylerasmus1-7/+7
* org.texi (Table of contents): Replace parenthesis comment style with @r{} comment style in examples.
2015-01-13Fix "Args out of range" when demarcating blocksNicolas Goaziou1-5/+6
* lisp/ob-core.el (org-babel-demarcate-block): Return value from `org-babel-where-is-src-block-head' may be nil. Reported-by: Sébastien Vauban <>
2015-01-13ob-core: Refactor `org-babel-where-is-src-block-head'Nicolas Goaziou2-28/+17
* lisp/ob-core.el (org-babel-where-is-src-block-head): Refactor. In particular, do not return a marker, ever. Also update docstring. * testing/lisp/test-ob.el (test-ob/org-babel-remove-result--results-org): Fix tests containing invalid Org syntax.