summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
41 hoursMerge branch 'maint'HEADmasterNicolas Goaziou1-1/+1
41 hoursob-js: Fix passing multiline variablesmaintPeter Moresi1-1/+1
* lisp/ob-js.el (org-babel-js-var-to-js): Replace newline characters with "\n" in strings. Let's say I have a multi-line string stored in an example block. I want to store my CSV in an example block. ColA,ColB,ColC 1,2,3 4,5,6 I have a JavaScript function that accepts a string named 'csv' and passing in 'my-csv-data'. console.log(csv); When I expand the source block I end up with: var csv="ColA,ColB,ColC 1,2,3 4,5,6"; console.log(csv); This will not execute correctly because JavaScript does not support newlines in strings. What I want instead is: var csv="ColA,ColB,ColC\n 1,2,3\n 4,5,6"; console.log(csv); TINYCHANGE
3 daysOpen outer link on nested linksNicolas Goaziou2-6/+19
* lisp/org.el (org-open-at-point): Open outer link on nested links. * testing/lisp/test-org.el (test-org/open-at-point/inline-image): New test. Suggested-by: Daniel Bausch <bausch@dvs.tu-darmstadt.de> <http://permalink.gmane.org/gmane.emacs.orgmode/92796>
4 daysorg-entities.el: Add parallel symbolrasmus1-0/+1
* org-entities.el (org-entities): Add parallel symbol. From patch proposal by Brady Trainor. TINYCHANGE
5 daysMerge branch 'maint'Nicolas Goaziou2-4/+11
5 daysorg-element: Fix 'search failed ":"' errorNicolas Goaziou2-4/+11
* lisp/org-element.el (org-element-context): Fix 'search failed ":"' error when point is on a blank line after a keyword. * testing/lisp/test-org-element.el (test-org-element/context): Add tests.
5 daysTiny refactoringNicolas Goaziou1-2/+1
* lisp/org.el (org-entry-properties): Tiny refactoring.
5 daysFix CATEGORY property retrievalNicolas Goaziou2-0/+5
* lisp/org.el (org-entry-properties): Fix returned CATEGORY property when no specific keyword is provided. * testing/lisp/test-org.el (test-org/entry-properties): Add test.
5 daysFix SCHEDULED property retrievalNicolas Goaziou2-15/+59
* lisp/org.el (org-entry-properties): Fix storing SCHEDULED property when specific argument is not specified. * testing/lisp/test-org.el (test-org/entry-properties): Add test. Reported-by: Richard Lawrence <richard.lawrence@berkeley.edu> <http://permalink.gmane.org/gmane.emacs.orgmode/92728>
6 daysFix order of TODO keywords with S-rightNicolas Goaziou1-6/+5
* lisp/org.el (org-set-regexps-and-options): Fix order of TODO keywords with S-right. Thanks to Sébastien Vauban for reporting it. <http://permalink.gmane.org/gmane.emacs.orgmode/92708>
7 daysox-latex: Do not message "PDF file produced" for fragmentsNicolas Goaziou1-13/+14
* lisp/ox-latex.el (org-latex-compile): Do not message "PDF file produced" for fragments.
7 daysFix `org-indent-line' on blank lines after a paragraphNicolas Goaziou2-6/+21
* lisp/org.el (org--get-expected-indentation): Properly compute expected indentation on blank lines after a paragraph. (org-indent-line): Update docstring. * testing/lisp/test-org.el (test-org/indent-line): Add test.
7 daysorg-element: Fix docstringNicolas Goaziou1-2/+2
* lisp/org-element.el (org-element-lineage): Fix docstring.
7 daysMerge branch 'maint'Nicolas Goaziou2-3/+31
7 daysFix `org-insert-heading'Nicolas Goaziou2-3/+31
* lisp/org.el (org-insert-heading): Fix some corner case when point is in an invisible list. * testing/lisp/test-org.el (test-org/insert-heading): Add tests. Reported-by: Luke Crook <luke@balooga.com> <http://permalink.gmane.org/gmane.emacs.orgmode/92619>
7 daysORG-NEWS: Document `org-element-lineage'Nicolas Goaziou1-3/+8
7 daysFix `org-return'Nicolas Goaziou2-38/+97
* lisp/org.el (org-return): Avoid false positives in function. * testing/lisp/test-org.el (test-org/return): New test. Thanks to Sébastien Vauban for reporting it. <http://permalink.gmane.org/gmane.emacs.orgmode/92657>
7 daysox: Deprecate `org-export-get-genealogy' for `org-element-lineage'Nicolas Goaziou6-79/+43
* lisp/ox.el (org-export-collect-tree-properties, org-export-numbered-headline-p, org-export-get-tags, org-export-resolve-fuzzy-link, org-export-get-ordinal, org-export-get-parent-headline, org-export-get-parent-element, org-export-get-parent-table): * lisp/ox-ascii.el (org-ascii--current-text-width): * lisp/ox-beamer.el (org-beamer--frame-level): * lisp/ox-icalendar.el (org-icalendar-blocked-headline-p): * lisp/ox-latex.el (org-latex-footnote-reference): * lisp/ox-odt.el (org-odt--enumerate, org-odt-link--infer-description, org-odt-table): Use `org-element-lineage' instead of `org-export-get-genealogy'.
7 daysorg-element: Implement `org-element-lineage'Nicolas Goaziou2-0/+70
* lisp/org-element.el (org-element-lineage): New function. * testing/lisp/test-org-element.el (test-org-element/lineage): New test.
8 daysorg-info: Throw an error when following an info link failsNicolas Goaziou1-1/+1
* lisp/org-info.el (org-info-follow-link): Throw an error instead of a message when search fails.
8 daysorg-info: Try info index if info node is not foundKim2-5/+12
* lisp/org-info.el (org-info-follow-link): Attempt index lookup if node lookup fails. * doc/org.texi (External links): Update info links. Info index is almost always finer grain than info nodes. For example with this change, [[info:libc#close]] brings up not only "(libc)Opening and Closing Files" info node, but also place the cursor on the line that documents "close" function within the node. This is done by looking up "close"in the index upon failing to find a node named "close". Hence one can now link function, variable and other names that are in the index rather than being limited to info node names. Typically there are far more index items than there are node names. For example libc manual has about 700 nodes, but over 4000 concept, type, function, and variables index items. More examples of new ways to create links are shown using org.info as example - [[info:org#org-clock-idle-time]] uses "Variable Index" - [[info:org#org-capture]] uses "Command and Function Index". - [[info:org#timestamp]] uses "Main Index" - [[info:org#C-c C-c]] uses "Key Index" TINYCHANGE
8 daysMerge branch 'maint'Nicolas Goaziou1-7/+7
8 daysReplace obsolete aliases of calendar functionsFlorian Beck1-7/+7
* lisp/org-agenda.el (org-agenda-diary-entry): Replace obsolete functions.
10 daysORG-NEWS: Document read date changeNicolas Goaziou1-0/+6
10 daysLet `org-read-date' respect `org-replace-disputed-keys' againTeika kazura1-2/+1
* lisp/org.el (org-read-date): Respect `org-replace-disputed-keys'. Beginning from org-8.1, org-read-date ignores `org-replace-disputed-keys'. This commit restores the original behavior. Users who want the org-8.1 behavior should customize `org-read-date-minibuffer-local-map' instead. See http://thread.gmane.org/gmane.emacs.orgmode/90626/focus=91318 for the discussion on this issue. This commit in effect reverts a6986494a0c4fc5d3363c2bebe48215e7138e4f1 and e8023dde58f267a525b63184ec07d371b5a4c8b5. TINYCHANGE
12 daysfix org-eldoc pathŁukasz Gruner2-0/+1
13 daysFix cba2f0aNicolas Goaziou2-52/+162
* lisp/org.el (org-adapt-indentation): Update docstring. (org-fixup-indentation): Ignore contents of source blocks and example blocks when indentation should be preserved. * testing/lisp/test-org.el (test-org/demote, test-org/promote): Add tests.
13 daysorg-colview: Use regular "ITEM" propertyNicolas Goaziou3-70/+6
* lisp/org-colview.el (org-columns-display-here): Use regular "ITEM" value instead of computing another one. Simplify process. (org-columns-cleanup-item): Remove function. * contrib/lisp/org-colview-xemacs.el (org-columns-display-here): Use regular "ITEM" value instead of computing another one. Simplify process. (org-columns-cleanup-item): Remove function. * etc/ORG-NEWS: Document change.
13 daysAdd "ITEM" to special propertiesNicolas Goaziou3-6/+20
* lisp/org.el (org-special-properties): Add "ITEM". Tiny fix to docstring. (org-entry-properties): Compute "ITEM" property's value. (org-buffer-property-keys): Remove hack since "ITEM" now officially belongs to the special properties list. * doc/org.texi (Special properties): Document "ITEM" change. * testing/lisp/test-org.el (test-org/entry-properties): Add test.
13 daysorg.texi: Remove "ID" as a special propertyNicolas Goaziou1-27/+23
* doc/org.texi (Special properties): Remove "ID" as a special property. Sort list. Special properties cannot be set only using properties located in a properties drawer. "ID" is always set through a properties drawer. It is more a reserved property than a special one.
13 daysTags completion ignores narrowingNicolas Goaziou1-10/+10
* lisp/org.el (org-get-buffer-tags): Ignore narrowing, if any. Small refactoring.
14 daysFix parser wrt to defcustom syntax related changesNicolas Goaziou3-79/+104
* lisp/org-element.el (org-element-paragraph-separate, org-element--object-regexp): Turn defconst into defvar. (org-element--set-regexps): Properly set previous variables. (org-element-update-syntax): New function. * lisp/org-list.el (org-plain-list-ordered-item-terminator, org-list-allow-alphabetical): Call new function whenever these variables are modified and Org is already loaded. * lisp/org.el (org-add-link-type): Call new function since a new link type triggers a rebuild of syntax regexps, possibly invalidating cache in all Org buffers. Reported-by: Christopher Dannheim <ch.dannheim@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/92487>
2014-11-09Updated org-drill to latest version, 2.4.3.Paul Sexton1-44/+100
2014-11-08Merge branch 'maint'Nicolas Goaziou1-4/+3
2014-11-08org-plot: Correction in callback registrationMario Frasca1-2/+2
org-plot.el (org-plot/gnuplot): Correct the callback for the and register it as soon as possible. The data-file variable is not in the scope of the callback, one needs to grab its value while registering the callback. With this patch the timer is set as soon as the file is created. Without this patch the timer is set at the end of a let-block, if anything goes wrong in the let-block before the timer is set, the file will not be removed. TINYCHANGE
2014-11-08org-plot: Reset gnuplot process instead of killing itMario Frasca1-2/+1
org-plot.el (org-plot/gnuplot): Do not kill the gnuplot process. just jump to end of buffer and rely on command to do the resetting job. Without this patch, the gnuplot process associated to the gnuplot buffer is killed before each batch of instructions from orgmode to gnuplot. With or without this patch, Org mode sends a reset instruction to the gnuplot process as first instruction. TINYCHANGE
2014-11-08Improve `org-promote' and `org-demote'Nicolas Goaziou2-53/+349
* lisp/org.el (org-promote, org-demote): Fix docstring. Small refactoring. Ignore narrowing. (org-fixup-indentation): Smarter indentation: handle inlinetasks and footnote definitions. * testing/lisp/test-org.el (test-org/demote, test-org/promote): New test. `org-called-with-limited-levels' check is removed when promoting a top-level headline. The motivation behind it in this particular case wasn't clear (see 10aba6b1261a47a2aa4862b7222f87814af7ba31) and I couldn't find a good reason to keep it. Suggested-by: Sébastien Vauban <http://permalink.gmane.org/gmane.emacs.orgmode/92450>
2014-11-08Merge branch 'maint'Nicolas Goaziou0-0/+0
2014-11-08Silence byte-compilerNicolas Goaziou1-2/+0
2014-11-08Add support for eldocŁukasz Gruner1-0/+159
Eldoc wil show: - a 'breadcrumb' of headers when on headerline - properties of SRC block when on BEGIN/END_SRC line - inside body of SRC block it will try to use that mode's eldoc function
2014-11-07Silence byte-compilerNicolas Goaziou1-2/+0
2014-11-07ox: Fix "wrong type argument listp" when filtering tagsNicolas Goaziou1-23/+25
* lisp/org.el (org--setup-process-tags): Fill `org-tag-groups-alist' only when group tags are defined. Reported-by: Elric Milon <emacs@whirm.eu> <http://permalink.gmane.org/gmane.emacs.orgmode/92406>
2014-11-06Merge branch 'maint'Nicolas Goaziou1-1/+17
Conflicts: lisp/ox.el
2014-11-06ox.el: Add pt_BR translations to export engineLeslie H. Watter1-0/+13
* lisp/ox.el: (org-export-dictionary) Add pt_BR messages to the list. TINYCHANGE
2014-11-06Merge branch 'maint'Nicolas Goaziou1-1/+1
2014-11-06ox-beamer: Fix undefined reference with internal linksNicolas Goaziou1-1/+1
* lisp/ox-beamer.el (org-beamer-target): Use label macro instead of hypertarget. Moreover, target syntax cannot take advantage of hypertarget's second parameter. <http://permalink.gmane.org/gmane.emacs.orgmode/92455>
2014-11-06Merge branch 'maint'Christian Egli1-3/+6
2014-11-06ox-taskjuggler.el: Add a note about multiline propertiesChristian Egli1-1/+4
* contrib/lisp/ox-taskjuggler.el (org-taskjuggler-valid-task-attributes): Add a comment saying that multiline properties are not supported.
2014-11-06ox-taskjuggler.el: Fix a link in the commentaryChristian Egli1-1/+1
* contrib/lisp/ox-taskjuggler.el: Fix a link to an example project planning file by Peter Jones.
2014-11-06ox-taskjuggler.el: Fix fetching of dependency optionsChristian Egli1-1/+1
* contrib/lisp/ox-taskjuggler.el (org-taskjuggler-format-dependencies): Pass string that was used in string-match to org-match-string-no-properties. This fixes a problem with dependency options.