summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
21 hoursob-comint.el: Fix bug.HEADmasterAaron Ecay1-1/+1
* lisp/ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file): Fix bug. The intention is to test whether the string ends with a newline, so we should just do that. Otherwise: (string-match "\n$" "foo\n\nbar") ;; => 3 => :-(
33 hoursorg-element: Complete 2125806Nicolas Goaziou1-3/+3
* lisp/org-element.el (org-element--parse-to): Do not bother checking for a planning line at the beginning of buffer.
35 hoursorg-element: Small optimizationNicolas Goaziou1-29/+36
* lisp/org-element.el (org-element--current-element): Only look after planning lines right after parsing a section. (org-element--next-mode): New function. (org-element--parse-elements, org-element--parse-to): Use new function.
36 hoursorg-element: Recognize planning info only right after a headlineNicolas Goaziou4-74/+61
* lisp/org.el (org-planning-line-re): New variable. Renamed from `org-planning-or-clock-line-re'. * lisp/org-element.el (org-element-paragraph-separate, org-element-headline-parser, org-element-inlinetask-parser, , org-element--current-element): Use new variable. (org-element-planning-parser): Check previous line before parsing planning info. When right after a headline, fallback to paragraph parsing. * testing/lisp/test-org-element.el (test-org-element/planning-parser): Add a test. Update others. (test-org-element/timestamp): Remove a test. * testing/lisp/test-ox.el (test-org-export/handle-options): Update test.
39 hoursorg-license.el: Upgrade to Creative Commons 4.0David Arroyo Menendez1-13/+12
* contrib/lisp/org-license.el: Change url and text in international license.
40 hoursFix failing testsNicolas Goaziou1-1/+3
* lisp/org.el (org--align-node-property): Properly align properties with empty values.
40 hoursMerge branch 'maint'Nicolas Goaziou3-58/+73
Conflicts: lisp/org-element.el
41 hoursorg-element: Make properties parsing more robustmaintNicolas Goaziou3-59/+73
* lisp/org-element.el (org-element-property-drawer-parser, org-element-node-property-parser): Ignore lines that are not node properties. (org-element-node-property-interpreter): Allow nil properties. * lisp/org.el (org-re-property): Fix regexp to match properties with empty values. * testing/lisp/test-org-element.el (test-org-element/node-property): Add tests. Thanks to Eike for reporting it. http://permalink.gmane.org/gmane.emacs.orgmode/90293
4 daysorg-table: Add ascii plotting in tablesThierry Banel2-2/+107
* org-table.el (orgtbl-ascii-plot): Top-level function. (orgtbl-ascii-draw), (orgtbl-uc-draw-grid), (orgtbl-uc-draw-cont): Functions which go in table formulas for drawing bars. * org.el: key binding and menu binding Thanks to Michael Brand and Nicolas Goaziou for feedback and enhancements.
4 daysox-beamer: Use \columnwidth instead of \textwidth for columnsNicolas Goaziou1-1/+1
* lisp/ox-beamer.el (org-beamer--format-block): Use columnwidth instead of textwidth. Thanks to Julien Cubizolles for suggesting it. http://permalink.gmane.org/gmane.emacs.orgmode/90246
4 daysob-C: fix missing function org-babel-expand-body:cppErnesto Durante1-0/+5
4 daysorg-babel-eval: compilation-mode to deal with errors in (C/C++/D)Ernesto Durante1-0/+6
5 daysox-icalendar: Small fixNicolas Goaziou1-1/+1
* lisp/ox-icalendar.el (org-icalendar-export-current-agenda): Add missing properties. Also fix typo for body-only argument.
5 daysMerge branch 'maint'Nicolas Goaziou2-29/+36
Conflicts: lisp/org-element.el
5 daysorg-element: Interpret headlines according to `org-odd-levels-only'Nicolas Goaziou2-30/+37
* lisp/org-element.el (org-element-headline-interpreter): Take into consideration `org-odd-levels-only' value. Small refactoring. * testing/lisp/test-org-element.el (test-org-element/headline-interpreter): Add test.
5 daysMerge branch 'maint'Nicolas Goaziou6-48/+67
5 daysox-texinfo: Fix link exportNicolas Goaziou1-43/+62
* lisp/ox-texinfo.el (org-texinfo--get-node): Return a node or anchor name. (org-texinfo--sanitize-content): Fix regexp. (org-texinfo-link): Fix various bugs in link export.
5 daysFix exporting radio link with missing radio targetNicolas Goaziou5-5/+5
* contrib/lisp/ox-groff.el (org-groff-link): * lisp/ox-beamer.el (org-beamer-link): * lisp/ox-html.el (org-html-link): * lisp/ox-latex.el (org-latex-link): * lisp/ox-odt.el (org-odt-link): When radio link has no valid target (e.g., this is a subtree export and the radio target is not in the exported subtree), simply return contents. Thanks to Daniel Clement for reporting it. http://permalink.gmane.org/gmane.emacs.orgmode/90218
6 daysUse `org-clock-string' whenever possibleKonubinix2-5/+14
* lisp/org-clock.el (org-find-open-clocks): * lisp/org.el (org-clone-subtree-with-time-shift, org-insert-property-drawer, org-at-clock-log-p): Use `org-clock-string' whenever possible instead of hardcoded "CLOCK". (org-clock-line-re): New variable.
6 daysorg-faces.el: fix docstring typoAaron Ecay1-1/+1
6 daysorg-element: Add :post-affiliated property to all elementsNicolas Goaziou2-42/+43
* lisp/org-element.el (org-element-headline-parser, org-element-inlinetask-parser, org-element-item-parser, org-element-section-parser, org-element-clock-parser, org-element-node-property-parser, org-element-planning-parser, org-element-table-row-parser): Add dummy :post-affiliated property. * lisp/org.el (org--get-expected-indentation, org-indent-line, org-indent-region, org-adaptive-fill-function, org-toggle-fixed-width, org-forward-paragraph, org-backward-paragraph, org-mode-flyspell-verify): Remove nullity checks for :post-affiliated. Even though these elements cannot have affiliated keywords, beginning of element is a logical default value. It makes checking the nullity of the unnecessary.
7 daysORG-NEWS: Document `org-export-table-row-in-header-p'Nicolas Goaziou1-0/+1
7 daysox: Implement `org-export-table-row-in-header-p'Nicolas Goaziou2-11/+35
* lisp/ox.el (org-export-table-row-in-header-p): New function. (org-export-table-row-starts-header-p, org-export-table-row-ends-header-p): Use new function. * testing/lisp/test-ox.el (test-org-export/table-row-in-header-p): New test.
7 daysox: Extend first and last sibling predicates to all elementsNicolas Goaziou3-11/+35
* lisp/ox.el (org-export-first-sibling-p, org-export-first-sibling-p): Extend to all elements and objects. * testing/lisp/test-ox.el (test-org-export/first-sibling-p, test-org-export/last-sibling-p): Add tests. * etc/ORG-NEWS: Document change.
7 daysox-html: Better criterion for first paragraphs in listsNicolas Goaziou1-13/+6
* lisp/ox-html.el (org-html-paragraph): Do not wrap first paragraph in an item within <p> tags in the most simple cases. Thanks to Daniel Clemente for suggesting it. http://permalink.gmane.org/gmane.emacs.orgmode/89413
7 daysob-J: adapt to new `org-babel-process-params'Oleh Krehel1-1/+1
* lisp/ob-J.el (org-babel-execute:J): Use `cdr' instead of `nth 1' to get the session info.
7 daysox-icalendar: Speed up `org-agenda-write' processNicolas Goaziou2-179/+148
* lisp/ox-icalendar.el (org-icalendar-create-uid): Remove unused optional argument. (org-icalendar--combine-files): Change signature. Simplify process. (org-icalendar-combine-agenda-files): Apply signature change. Do not check anymore ICALENDAR-MARK property. (org-icalendar-entry): Do not check anymore ICALENDAR-MARK property. (org-icalendar-export-to-ics): Comply to comments. (org-icalendar-export-current-agenda): Rewrite function. * lisp/org-agenda.el (org-agenda-write): Update docstring. Instead of parsing every agenda before picking up needed entries, copy these entries in a temporary buffer, then export it.
8 daysMerge branch 'maint'Nicolas Goaziou1-1/+2
8 daysFix `org-promote' errorNicolas Goaziou1-1/+2
* lisp/org.el (org-called-with-limited-levels): Initialize variable. http://permalink.gmane.org/gmane.emacs.orgmode/90119
8 daysMerge branch 'maint'Nicolas Goaziou1-1/+1
8 daysorg-agenda: Fix order when writing to an ".org" fileNicolas Goaziou1-1/+1
* lisp/org-agenda.el (org-agenda-write): Write headings in proper order. `org-paste-subtree' leaves point before inserted text, so there is no need to reverse contents. http://permalink.gmane.org/gmane.emacs.orgmode/89867
8 daysORG-NEWS: Report signature changesNicolas Goaziou1-6/+7
8 daysox-latex: Protect special characters in tagsNicolas Goaziou1-26/+29
* lisp/ox-latex.el (org-latex-format-headline-function, org-latex-format-inlinetask-function): Update docstring. (org-latex-format-headline-default-function, org-latex-format-inlinetask-default-function): Change signature. Protect special characters (e.g., "_"). (org-latex-headline, org-latex-inlinetask): Apply signature change. Thanks to Thorsten Jolitz for reporting it. http://permalink.gmane.org/gmane.emacs.orgmode/90125
8 daysox-latex: Small clean-upNicolas Goaziou1-63/+45
* lisp/ox-latex.el (org-latex-plain-text): Simplify character escaping. (org-latex-timestamp, org-latex-verse-block, org-latex-compile): Small refactoring.
8 daysMerge branch 'maint'Nicolas Goaziou1-1/+1
8 daysorgguide: Fix keybindingNicolas Goaziou1-1/+1
* doc/orgguide.texi (Clocking work time): Fix keybinding.
8 daysMerge branch 'maint'Nicolas Goaziou1-1/+1
8 daysorg-element: Enhance docstringNicolas Goaziou1-1/+1
* lisp/org-element.el (org-element-table-interpreter): Enhance docstring.
9 daysslightly smarter result parsing for jsEric Schulte1-3/+4
* lisp/ob-js.el (org-babel-js-read): Match multi-line results.
10 daysox-beamer.el: Match latex backend in generation of \author.Aaron Ecay1-2/+1
* lisp/ox-beamer.el (org-beamer-template): Match latex backend in generation of \author.
11 daysMake the regexp matching the beginning of a table more explicitKonubinix1-3/+3
* org-table.el (org-table-get-remote-range): Enhance regexp. TINYCHANGE
11 daysox-rss.el (org-rss-headline): Skip entries with no PUBDATEBastien Guerry1-19/+19
* contrib/lisp/ox-rss.el (org-rss-headline): Skip entries with no PUBDATE instead of throwing an error. Thanks to OSiUX for suggesting this.
11 daysMerge branch 'maint'Nicolas Goaziou1-1/+4
11 daysox-md: Fix b8b34eaNicolas Goaziou1-1/+4
* lisp/ox-md.el (org-md-link): Fix b8b34ea.
11 daysORG-NEWS: Document inline source block exportNicolas Goaziou1-0/+4
11 daysob-core: Preserve inline-ness of source blocks when inserting resultsNicolas Berthier2-26/+29
* lisp/ob-core.el (org-babel-insert-result): Preserve inline-ness of source blocks. * testing/lisp/test-ob-exp.el: Update newly passing tests.
11 daysox-html: Support for exporting inline source code to HTMLNicolas Berthier1-1/+7
* lisp/ox-html.el (org-html-inline-src-block): support for exporting inline source code to HTML.
11 daysob: Support for exporting inline source codeNicolas Berthier6-36/+208
* lisp/ob-exp.el (org-babel-exp-inline-code-template): New customizable variable to export inline source code (similar to `org-babel-exp-code-template'). (org-babel-exp-code): New `type' argument to differentiate between inline and standard code blocks. * lisp/ob-core.el (org-babel-inline-src-block-regexp): Allow empty set of switches and header arguments as in "src_sh[]{echo foo;}". Also permit spaces before them. * testint/lisp/test-org-element.el (test-org-element/inline-src-block-parser): Test extended syntax for inline source code. * testing/lisp/test-ob-exp.el (ob-exp/exports-inline-code): New function for testing inline source code handling. Also add three new failing tests exhibiting unexpected results with ":results code" switches. * testing/lisp/test-ob.el (test-org-babel/org-babel-get-inline-src-block-matches): Test for inline source blocks with empty header arguments. * testing/examples/babel.org: New sections for testing (i) exported inline source code (used by `ob-exp/exports-inline-code'); (ii) parsing inline source blocks with empty header arguments (used by `test-org-babel/org-babel-get-inline-src-block-matches'). Until now pieces of inline source code were handled as standard code blocks during export. These changes enable them to be exported.
12 daysMerge branch 'maint'Nicolas Goaziou1-51/+56
12 daysox-md: Allow custom link type export functionNicolas Goaziou1-51/+56
* lisp/ox-md.el (org-md-link): Allow custom link type export function. `md' back-end is now on par with other core export back-ends. Thanks to Ken Markoff for reponting it. http://permalink.gmane.org/gmane.emacs.orgmode/90011