AgeCommit message (Collapse)AuthorFilesLines
21 hoursorg.texi: Remove reference to deleted commandHEADmasterKyle Meyer1-8/+0
* doc/org.texi (Inserting deadlines or schedules): Remove entry for `org-mark-entry-for-agenda-action', which was deleted in commit f95e5ff.
21 hoursFix missing syntax highlighting with #+SETUPFILENicolas Goaziou1-8/+9
* lisp/org.el (org--setup-collect-keywords): Fix wrong argument order. Avoid needless recursion. Reported-by: Kyle Meyer <> <>
40 hoursox-latex: Add missing defcustom keywordsNicolas Goaziou1-0/+2
* lisp/ox-latex.el (org-latex-caption-above): Add missing keywords.
44 hoursorg.texi: Update LaTeX environment syntaxNicolas Goaziou1-2/+2
* doc/org.texi (@LaTeX{} fragments): Update environments syntax.
44 hoursFix ccde27dNicolas Goaziou1-1/+1
* doc/org.texi (Special symbols): Fix ccde27ddc09821bd92bdf8af24cc73fe038750b6.
48 hoursorg.texi: Minor correction.rasmus1-1/+1
* org.texi (Special symbols): Correct output of fragment export.
2 daysFix 8daf4a8Nicolas Goaziou1-1/+1
* lisp/org.el (org-format-latex): Fix regexp.
3 daysFix preview latexNicolas Goaziou3-147/+153
* lisp/org.el (org-toggle-latex-fragment): Fix previewing nested environments. (org-format-latex): Change signature. Rewrite using Elements. * lisp/ox-html (org-html-format-latex): * lisp/ox-odt (org-odt--translate-latex-fragments): Apply signature change. Reported-by: Andreas Leha <> <>
3 daysRefactor logging codeNicolas Goaziou1-78/+99
* lisp/org.el (org-log-beginning): New function. (org-ts-regexp-inactive): New variable. (org-add-log-setup): Use new function. (org-skip-over-state-notes): Make function more robust to customization. (org-store-log-note): Update function according to previous changes. Small refactoring.
3 daysUpdate custom properties handlingNicolas Goaziou2-14/+68
* lisp/org.el (org-toggle-custom-properties-visibility): Improve correctness and speed. * testing/lisp/test-org.el (test-org/custom-properties): New test.
3 daysFix multiple TODO keywordsNicolas Goaziou2-2/+7
* lisp/org.el (org--setup-collect-keywords): Correctly collect multiple TODO lines. * testing/lisp/test-org.el (test-org/set-regexps-and-options): Add test. Thanks to Eric Abrahamsen for reporting it.
3 daysFix property drawer insertion with consecutive headlinesNicolas Goaziou2-1/+8
* lisp/org.el (org-get-property-block): Fix property drawer insertion with consecutive headlines * testing/lisp/test-org.el (test-org/entry-put): Add test. Thanks to Eric Abrahamsen for reporting it.
3 daysORG-NEWS: Document property drawers syntax changeNicolas Goaziou1-0/+35
3 daysDocument new properties drawers syntaxNicolas Goaziou1-14/+15
* doc/org.texi (Per-file keywords): Remove wrong limitation. (Tracking your habits): Make sure state changes appear after the properties drawer. (Property syntax): Specify new syntax. (Using the property API): Fix a function definition.
3 daysAdd test for setup keywords initializationNicolas Goaziou2-0/+154
* testing/lisp/test-org.el (test-org/set-regexps-and-options): New test. * testing/examples/ Add a keyword for testing.
3 daysRewrite setup keywords initializationNicolas Goaziou2-327/+301
* lisp/org-table.el (org-table-set-constants): Remove function. * lisp/org.el (org-set-regexps-and-options): Rewrite function. Merge it with `org-set-regexps-and-options-for-tags'. (org-set-regexps-and-options-for-tags): Remove function (org--setup-collect-keywords, org--setup-process-tags): New functions. (org-mode): Remove `org-set-regexps-and-options-for-tags' call. (org-agenda-prepare-buffers): Use optimized setup for tags in all cases. Improve docstring. (org-make-options-regexp): Make returned regexp more efficient.
3 daysorg-table: Do not look after CONSTANTS in Orgtbl modeNicolas Goaziou1-1/+0
* lisp/org-table.el (orgtbl-ctrl-c-ctrl-c): Do not set constants. Orgtbl provides limited support for Org tables in an arbitrary major mode. Any Org syntax outside tables, including keywords, cannot be supported in this environment. Therefore there is no point to look for CONSTANTS keywords. Moreover, constants can be defined within the table. This change allows to move `org-table-set-constants' feature to `org-set-regexps-and-options' and treat CONSTANTS keyword like any other keyword (e.g., defining it in a SETUPFILE).
3 daysTurn buffer local syntax variables into constantsNicolas Goaziou1-85/+77
* lisp/org.el (org-ds-keyword-length, org-deadline-regexp, org-deadline-time-regexp, org-deadline-time-hour-regexp, org-deadline-line-regexp, org-scheduled-regexp, org-scheduled-time-regexp, org-scheduled-time-hour-regexp, org-closed-time-regexp, org-keyword-time-regexp, org-keyword-time-not-clock-regexp, org-maybe-keyword-time-regexp, org-all-time-keywords): Turn into a defconst, no longer buffer-local. (org-set-regexps-and-options): No need to set anymore previous variables.
3 daysox: Update INCLUDE keywords wrt property drawersNicolas Goaziou2-22/+5
* lisp/ox.el (org-export--inclusion-absolute-lines): Fix comment. (org-export--prepare-file-contents): Do not look for property drawers after a drawer, since this is impossible. * testing/examples/ Fix test data.
3 daysSmall refactoringNicolas Goaziou1-75/+68
* lisp/org.el (org-add-planning-info): Small refactoring.
3 daysInsert logs after planning info and property drawerNicolas Goaziou1-51/+49
* lisp/org.el (org-add-log-setup): Set `org-log-note-marker' after planning info and property drawer.
3 daysorg-clock: Insert clocks after meta dataNicolas Goaziou1-81/+93
* lisp/org-clock.el (org-clock-find-position): Make sure clocks, and possibly drawer containing them, are inserted after planning info and any property drawer.
3 daysAdd tests for property APINicolas Goaziou1-0/+390
* testing/lisp/test-org.el (test-org/entry-put, test-org/entry-get, test-org/entry-delete, test-org/buffer-property-keys, test-org/property-values, test-org/insert-property-drawer): New tests.
3 daysRewrite `org-entry-properties'Nicolas Goaziou1-117/+185
* lisp/org.el (org-special-properties): Remove "CLOCK" as a special keyword. (org-entry-properties): Rewrite function according to property drawer syntax. Change signature. (org-entry-get): Apply signature change. "CLOCK" removal is motivated by the fact that it isn't listed as a special keyword in the manual, it is not used throughout the code base, and there is no meaningful value for this property.
3 daysUpdate property APINicolas Goaziou1-303/+282
* lisp/org.el (org-entry-put): Refactor code, taking into account changes to property drawer syntax. Fix errors when handling special values, which cannot be symbols. Remove CLOCKSUM handling. (org-entry-get): Refactor code. (org-entry-delete): Small refactoring, do not rely on `org-remove-empty-drawer-at' since parser is not necessary here. (org-buffer-property-keys): Fix infloop. Ignore final "+" in extended properties. Refactor code. (org-property-values): Include extended values. (org-entry-get-with-inheritance, org-insert-property-drawer): Small refactoring. (org-insert-drawer): Fix docstring and comments. (org--update-property-plist): Renamed from org-update-property-plist. Use side effects. Improve speed. CLOCKSUM special property in `org-entry-put' is buggy (symbols instead of strings) and ignores provided value. Since the expected behaviour is neither clear nor documented, the property is not handled anymore by the function.
3 daysUpdate `org-get-property-block'Nicolas Goaziou1-39/+34
* lisp/org.el (org-at-property-p): Rewrite. Don't use `org-element-at-point'. It is faster to retrieve the property drawer location instead. (org-get-property-block): Update function and docstring. Change signature. (org-entry-properties, org-entry-put, org-buffer-property-keys): Apply signature change.
3 daysorg-element: Update property drawers parsingNicolas Goaziou3-214/+138
* lisp/org-element.el (org-element--get-node-properties, org-element--get-time-properties): New functions. (org-element-headline-parser, org-element-inlinetask-parser): Use new functions. (org-element-property-drawer-parser): Change signature. Simplify parsing. drawer. (org-element--current-element, org-element--next-mode): Property drawers are located right after a headline or a planning element. * testing/lisp/test-org-element.el (test-org-element/drawer-parser, test-org-element/node-property, test-org-element/property-drawer-interpreter): Update tests. (test-org-element/property-drawer-parser): Add tests. * testing/lisp/test-org.el (test-org/indent-line, test-org/indent-region, test-org/forward-paragraph, test-org/backward-paragraph): Update tests.
3 daysUpdate property drawer and node property regexpsNicolas Goaziou1-7/+4
* lisp/org.el (org-property-drawer-re, org-property-re): Update regexp.
4 daysob-clojure.el: Fix compatibility issueOleh Krehel1-1/+1
* lisp/ob-clojure.el (org-babel-execute:clojure): Fix compatibility issue with cider >0.7.0.
5 daysFix Flyspell check in row separators and empty verse blocksNicolas Goaziou1-27/+28
* lisp/org.el (org--flyspell-object-check-p): New function. (org-mode-flyspell-verify): Check that table row or verse block under point is not empty. Use previous function.
6 daysox-html: Fix bug in c9ca0b6d.Rasmus1-1/+1
* ox-html.el (org-html-inlinetask): Fix bug.
7 daysox-latex: Change default value for `org-latex-caption-above'Nicolas Goaziou1-3/+1
* lisp/ox-latex.el (org-latex-caption-above): Change default value. `org-latex-table-caption-above' is removed completely since default value do not match anymore. See <>.
7 daysox: Remove unnecessary code commentsNicolas Goaziou1-277/+9
7 daysBump Emacs versionNicolas Goaziou9-16/+16
* lisp/ob-core.el (org-babel-examplize-region): * lisp/ob-exp.el (org-babel-exp-inline-code-template): * lisp/org-table.el (org-table-copy-increment): (org-table-formula-create-columns): * lisp/org.el (org-agenda-ignore-drawer-properties): (org-agenda-ignore-properties): * lisp/ox-ascii.el (org-ascii-list-margin): * lisp/ox-html.el (org-html-format-headline-function): (org-html-format-inlinetask-function): * lisp/ox-latex.el (org-latex-hyperref-template): (org-latex-custom-id-as-label): (org-latex-format-inlinetask-function): (org-latex-known-warnings): * lisp/ox-odt.el (org-odt-format-headline-function): (org-odt-format-inlinetask-function): * lisp/ox-texinfo.el (org-texinfo-format-headline-function): Bump Emacs version.
9 daysMerge branch 'maint'Achim Gratz1-2/+2
9 daysORG-NEWS: Document new optionsrasmus1-0/+7
11 daysorg.el: Fix bindings of < and > for calendar scrollingmaintMarco Wahl1-2/+2
* lisp/org.el (org-read-date-minibuffer-local-map): Switch to the current calendar API for scrolling the calendar.
11 daysorg.el: Use normalized names in org-agenda-file-pYann Hodique1-2/+4
* lisp/org.el (org-agenda-file-p): Make sure all filenames are normalized before performing comparison.
11 dayscontrib/lisp/org-velocity: Fix failure for big windowMarco Wahl1-1/+1
* contrib/lisp/org-velocity.el (org-velocity-incremental-read): Reversed the estimation against window-height.
11 daysorg-clock.el (org-clock-select-task): Kill temporary bufferBastien Guerry1-0/+1
* org-clock.el (org-clock-select-task): Kill temporary buffer. Thanks to Marcin Borkowski for this idea.
11 daysorg.texi: Remove extraneous backslash in key sequenceRafael Laboissiere1-1/+1
* doc/org.texi (ASCII bar plots): Remove the backslash character in the key binding sequence for orgtbl-ascii-plot command. I think that this backslash is not needed, since previously in the same section, at subheading "Graphical plots using Gnuplot", there is a similar key sequence without backslash @kbd{C-c " g}. TINYCHANGE
13 daysox-latex: Possibly make a matrix out of tabular environmentNicolas Goaziou1-3/+4
* lisp/ox-latex.el (org-latex--math-table): Properly create matrix if "tabular" environment is used. Make sure cells are centered instead of applying usual alignment rules.
13 daysox-latex: Tiny fix to latex-matrices pseudo-elementsNicolas Goaziou1-3/+12
* lisp/ox-latex.el (org-latex--wrap-latex-matrices): Make sure contiguous element is also an Org table.
14 daysox-latex: Add `org-latex-caption-above'Nicolas Goaziou3-45/+97
* lisp/ox-latex.el (org-latex-caption-above): New variable. (org-latex-table-caption-above): Remove variable. Make it an obsolete alias of the previous one. (org-latex--caption-above-p): New function. (org-latex--inline-image, org-latex-src-block, org-latex-special-block, org-latex table): Handle new variable. * doc/org.texi (Publishing options): * etc/ORG-NEWS: Document new option.
14 daysox-latex: Refactor matrices codeNicolas Goaziou1-53/+71
* lisp/ox-latex.el (latex): Introduce a dedicated pseudo-element: `latex-matrices'. (org-latex--wrap-latex-matrices, org-latex-matrices, org-latex-matrices-tree-filter): New functions. (org-latex--math-table): Delegate environment wrapping to new pseudo-element translator.
2014-10-16ORG-NEWS: Document new hook and new defcustomNicolas Goaziou1-0/+5
2014-10-16org-clock: Fix CLOCK_INTO_DRAWER property checkKyle Meyer1-7/+9
* lisp/org-clock.el (org-clock-into-drawer): Fix processing of properties so that they can override global value. Previously, if the 'CLOCK_INTO_DRAWER' or 'LOG_INTO_DRAWER' property was nil, the local property setting would not override the global variable [1]. These changes make the behavior match the docstring description ('CLOCK_INTO_DRAWER' and 'LOG_INTO_DRAWER' properties override `org-clock-into-drawer', with 'CLOCK_INTO_DRAWER' given precedence). [1] TINYCHANGE
2014-10-16org-attach: Maybe delete heading attachments when archivingEric Abrahamsen1-0/+22
* lisp/org-attach.el (org-attach-archive-delete): New option controlling what to do with attachments when archiving. (org-attach-archive-delete-maybe): New function that runs as a hook on org-archive-hook. Checks the value of `org-attach-archive-delete', and behaves accordingly.
2014-10-16org-archive: Provide a hook during the archive processEric Abrahamsen1-2/+10
* lisp/org-archive.el (org-archive-hook): New hook. (org-archive-subtree): Run hook.
2014-10-15Merge branch 'master' of Arroyo Menéndez4-39/+82