summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
8 hoursorg-colview: Fix columnview tableHEADmasterNicolas Goaziou1-45/+46
* lisp/org-colview.el (org-columns-capture-view): Properties are not case sensitive. (org-dblock-write:columnview): Take into consideration stars turned into spaces (i.e., invisible leading stars) when computing heading level. Also do not assume "ITEM" is always in the first column of the table. Reported-by: Axel Kielhorn <org-mode@axelkielhorn.de> <http://permalink.gmane.org/gmane.emacs.orgmode/105051>
21 hoursSilence byte-compilerNicolas Goaziou2-2/+5
* lisp/org-agenda.el (org-agenda-current-date): New variable. (org-agenda-get-day-entries): * lisp/org.el (org-calendar-holiday): Use new variable.
23 hoursMerge branch 'maint'Nicolas Goaziou2-42/+41
23 hoursorg-element: Fix search failed error in `org-element-context'maintNicolas Goaziou2-42/+41
* lisp/org-element.el (org-element-context): Make sure point is on tag line before searching for it. * testing/lisp/test-org-element.el (test-org-element/context): Add test. Small refactoring. Reported-by: Kaushal Modi <kaushal.modi@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/105018>
24 hoursox-coq.el: Clean upAlan Schmitt1-3/+4
* lisp/ob-coq.el: Create a variable `coq-program-name' and remove unused `org-babel-coq-eoe'. (org-babel-coq-initiate-session): Use `coq-program-name'.
32 hoursob-core: Silence byte-compilerNicolas Goaziou1-68/+69
32 hoursMerge branch 'maint'Nicolas Goaziou1-1/+1
32 hoursorg-archive: Speed-up archiving subtreesNicolas Goaziou1-1/+1
* lisp/org-archive.el (org-toggle-archive-tag): Use `org-flag-subtree', which is much faster than outline-hide-subtree'. Reported-by: Michael Ziems <michael.ziems@xiron.de> <http://permalink.gmane.org/gmane.emacs.orgmode/105005>
32 hoursob-lob: Improve `org-babel-lob-get-info' consistencyNicolas Goaziou2-8/+13
* lisp/ob-lob.el (org-babel-lob-get-info): Make the function on par with `org-babel-get-src-block-info' by providing the beginning position of Babel code. (org-babel-lob-execute): * lisp/ob-exp.el (org-babel-exp-process-buffer): (org-babel-exp-results): Handle new data.
33 hoursob: Refactor `org-babel-read-result'Nicolas Goaziou1-27/+15
* lisp/ob-core.el (org-babel-read-result): Refactor code. (org-babel-read-table): (org-babel-read-list): (org-babel-read-link): Fix docstring. (org-babel-read-element): Fix indentation for example blocks.
33 hoursob: Remove variables related to inline Babel codeNicolas Goaziou4-95/+69
* lisp/ob-lob.el (org-babel-block-lob-one-liner-regexp): (org-babel-inline-lob-one-liner-regexp): (org-babel-lob-one-line-regexp): * lisp/ob-core.el (org-babel-inline-src-block-regexp): Remove variables. (org-babel-map-inline-src-blocks): (org-babel-map-call-lines): (org-babel-map-executables): (org-babel-execute-buffer): * lisp/ob-exp.el (org-babel-exp-process-buffer): (org-babel-exp-results): Do not use removed variables. Babel now mostly uses the parser to handle Babel code. Regexps are not needed anymore.
33 hoursob: Remove `org-babel-inline-lob-one-line-matches'Nicolas Goaziou1-12/+0
* lisp/ob-core.el (org-babel-inline-lob-one-liner-matches): Remove now unused function.
33 hoursob: Remove `org-babel-get-inline-src-block-matches'Nicolas Goaziou3-75/+21
* lisp/ob-core.el (org-babel-get-inline-src-block-matches): Remove function. (org-babel-when-in-src-block): (org-babel-insert-result): Do not use removed function. (org-babel-remove-inline-result): Add an optional argument for a tiny speed-up. * testing/examples/babel.org: * testing/lisp/test-ob.el (test-ob/inline-src_blk-default-results-replace-line-1): Remove needless tests.
33 hoursob: Rewrite `org-babel-get-src-block-info' using parserNicolas Goaziou5-111/+95
* lisp/ob-core.el (org-babel-get-src-block-info): Rewrite function. Change signature. (org-babel-parse-src-block-match): (org-babel-parse-inline-src-block-match): Remove functions. (org-babel-execute-src-block): Remove useless function call. * lisp/ob-exp.el (org-babel-exp-process-buffer): Make use of signature change. (org-babel-exp-results): Use new return value from `org-babel-get-src-block-info'. Tiny refactoring. * testing/lisp/test-ob.el (test-ob/nested-code-block): Fix test. * contrib/lisp/org-eldoc.el (org-eldoc-get-src-lang): Use parser instead of removed function. * testing/examples/babel.org: Fix test environment.
33 hoursob-exp: Tiny fixNicolas Goaziou1-10/+11
* lisp/ob-exp.el (org-babel-exp-do-export): Fix wrong use for `case'.
33 hoursRemove `org-babel-in-example-or-verbatim'Nicolas Goaziou3-17/+3
* lisp/ob-exp.el (org-babel-in-example-or-verbatim): Remove function. * testing/lisp/test-ob.el (test-ob/combining-scalar-and-raw-result-types): Update test. This function is unused and inaccurate. If needed, the parser should be used instead.
33 hoursFix `org-babel-where-is-src-block-result'Nicolas Goaziou2-94/+229
* lisp/ob-core.el (org-babel--insert-results-keyword): (org-babel--clear-results-maybe): New functions. (org-babel-where-is-src-block-result): Rewrite function. Improve accuracy, in particular when RESULTS is not the closest affiliated keyword from the results. * testing/lisp/test-ob.el (test-ob/where-is-src-block-result): New test.
41 hoursReplace TBLNAME with NAME in testsNicolas Goaziou5-9/+9
* testing/examples/ob-C-test.org: * testing/examples/ob-fortran-test.org: * testing/examples/ob-maxima-test.org: * testing/lisp/test-ob-python.el (test-ob-python/colnames-yes-header-argument-again): (test-ob-python/colnames-no-header-argument-again): * testing/lisp/test-ob.el (test-ob/do-not-resolve-to-partial-names-data): Use NAME instead of TBLNAME. TBLNAME is deprecated syntax since Org 8.
41 hoursob-core: Distinguish between NAME and RESULTS keywordNicolas Goaziou1-24/+25
* lisp/ob-core.el (org-babel-name-regexp): New variable. (org-babel-result-regexp): Only match RESULTS lines. Lessen matching groups. (org-babel-result-w-name-regexp): Fix regexp. Add a docstring. (org-babel-named-data-regexp-for-name): Use new variable. (org-babel-current-result-hash): (org-babel-set-current-result-hash): (org-babel-hide-hash): (org-babel-result-names): (org-babel-where-is-src-block-result): Apply changes above.
41 hoursFix some tests' prefixNicolas Goaziou1-33/+33
* testing/lisp/test-ob.el (test-ob/indented-cached-org-bracket-link): (test-ob/multi-line-header-regexp): (test-ob/src-block-regexp): (test-ob/default-inline-header-args): (test-ob/get-src-block-info-language): (test-ob/get-src-block-info-body): (test-ob/get-src-block-info-tangle): (test-ob/elisp-in-header-arguments): (test-ob/simple-named-code-block): (test-ob/simple-variable-resolution): (test-ob/multi-line-header-arguments): (test-ob/parse-header-args): (test-ob/parse-header-args2): (test-ob/inline-src-blocks): (test-ob/org-babel-get-inline-src-block-matches): (test-ob/inline-src_blk-default-results-replace-line-1): (test-ob/inline-src_blk-default-results-replace-line-2): (test-ob/inline-src_blk-manual-results-replace): (test-ob/inline-src_blk-results-silent): (test-ob/inline-src_blk-results-raw): (test-ob/inline-src_blk-results-file): (test-ob/inline-src_blk-results-scalar): (test-ob/inline-src_blk-results-verbatim): (test-ob/combining-scalar-and-raw-result-types): (test-ob/no-defaut-value-for-var): (test-ob/just-one-results-block): (test-ob/nested-code-block): (test-ob/partial-nested-code-block): (test-ob/inline-src_blk-preceded-punct-preceded-by-point): (test-ob/file-ext-and-output-dir): (test-ob/script-escape): (test-ob/process-params-no-duplicates): (test-ob/check-eval): Use "test-ob" instead of "test-org-babel".
41 hoursob-core: Prevent false positive in `org-find-named-result'Nicolas Goaziou2-30/+59
* lisp/ob-core.el (org-babel-find-named-result): Prevent false positive using parser. (org-babel-current-result-hash): (org-babel-set-current-result-hash): (org-babel-where-is-src-block-result): Do not rely on some undocumented match data. * testing/lisp/test-ob.el (test-ob/find-name-result): New test.
41 hoursob: Remove indentation information from Babel propertiesNicolas Goaziou3-48/+51
* lisp/ob-core.el (org-babel-get-src-block-info): Do not return block indentation. (org-babel-parse-src-block-match): Ignore block indentation. (org-babel-demarcate-block): Find appropriate indentation instead of using the one from the original block. (org-babel-where-is-src-block-result): Change signature. Indent according to context instead of relying on indentation from original block. (org-babel-insert-result): Change signature. (org-babel-check-confirm-evaluate): (org-babel-execute-src-block): (org-babel-insert-header-arg): Apply change to src-block info. * lisp/ob-exp.el (org-babel-exp-process-buffer): Apply change to src-block info. * lisp/ob-lob.el (org-babel-lob-get-info): Do not return indentation. (org-babel-lob-execute): Apply change to lob-info. Indentation from source block is often wrong at the block and its results may not be in the same context.
41 hoursob: Optimize `org-babel-lob-get-info'Nicolas Goaziou4-50/+41
* lisp/ob-core.el (org-babel-goto-named-src-block): Use parser instead of `org-babel-lob-one-liner-regexp'. * lisp/ob-lob.el (org-babel-lob-execute-maybe): Ignore spurious check, now handled by the parser. (org-babel-lob-get-info): Fully use parser. Accept a new optional argument to avoid parsing the same location twice. * lisp/ob-exp.el (org-babel-exp-process-buffer): * lisp/ob-ref.el (org-babel-ref-resolve): Optimize call to `org-babel-lob-get-info'.
41 hoursParse inline src blocks and babel calls with newlinesNicolas Goaziou2-39/+115
* lisp/org-element.el (org-element--pair-round-table): (org-element--pair-curly-table): New variables. (org-element-inline-babel-call-parser): (org-element-inline-src-block-parser): Allow newline characters in contents and parameters. * testing/lisp/test-org-element.el (test-org-element/inline-babel-call-parser): (test-org-element/inline-src-block-parser): Add test.
43 hoursorg-element: Fix src-block interpreterNicolas Goaziou1-2/+3
* lisp/org-element.el (org-element-src-block-interpreter): Fix function according to previous change.
2 daysorg-element: Do not alter indentation upon parsingNicolas Goaziou2-40/+7
* lisp/org-element.el (org-element-src-block-parser): (org-element-example-block-parser): Do not remove any indentation when parsing the element. * testing/lisp/test-org-element.el (test-org-element/src-block-parser): * testing/lisp/test-org-element.el (test-org-element/src-block-parser): Update test. Properly handling indentation requires knowing about `org-src-preserve-indentation''s value. This is out of the scope of the parser.
2 daysob-sql.el: fix typo preventing mysql table headers from being parsedGary Oberbrunner1-1/+1
* ob-sql.el (org-babel-execute:sql): fix typo (introduced in 8c2e232) which prevented correct parsing of mysql table headers.
2 daysMerge branch 'maint'Nicolas Goaziou1-1/+2
2 daysox-odt: Fix End of file during parsing errorNicolas Goaziou1-1/+2
* lisp/ox-odt.el (org-odt-template): Do not call `read' on an empty string. Reported-by: Damien Cassou <damien@cassou.me> <http://permalink.gmane.org/gmane.emacs.orgmode/104947>
3 daysMerge branch 'maint'Kyle Meyer2-2/+2
3 daysBackport commit ec90220 from EmacsAlan Mackenzie2-2/+2
Expunge "allow" + infinitive from source and doc, part 2. ec90220ac1bd81437654d07b769819e1dcd24de5 Alan Mackenzie Mon Jan 25 12:35:15 2016 +0000
4 daysColumn view: Use `org-hide-leading-stars'Michael Brand1-2/+5
* lisp/org-colview.el (org-columns): Make building of the item stars dependent on `org-hide-leading-stars'.
5 daysMerge branch 'maint'Kyle Meyer2-2/+5
5 daysorg-capture: Document org-directoryKyle Meyer2-2/+5
* lisp/org-capture.el (org-capture-templates): * doc/org.texi (Template elements): Document org-directory.
5 days`org-file-apps' add migration hint for function signatureMichael Brand1-3/+10
* lisp/org.el (org-open-file): Add a user error for when the function signature does not match.
5 daysMerge branch 'maint'Nicolas Goaziou1-1/+1
5 daysob-core: fix bug when source block is at bobAaron Ecay1-1/+1
* lisp/ob-core.el (org-babel-get-src-block-info): Fix bug.
6 daysox-latex: Fix typoRasmus1-2/+2
* lisp/ox-latex.el (org-latex-compiler-file-string): Fix typo. Reported-by: Julien Cubizolles <j.cubizolles@free.fr> <http://permalink.gmane.org/gmane.emacs.orgmode/104836>
6 daysorg-attach.el: Get attachments from git annexErik Hetzner3-16/+152
* org-attach.el (org-attach-use-annex): New function to check if git annex should be used. (org-attach-annex-get-maybe): New function to get a file from git annex if necessary. (org-attach-annex-auto-get): New defcustom to determine behavior of org-attach-annex-get-maybe. (org-attach-open): Automatically get attached files from git annex when opening if necessary. * testing/lisp/test-org-annex.el: New file for testing org-attach. Only contains code for testing org-attach with git annex at the moment. * mk/targets.mk: Fix cleantest target so it can delete git annex repos.
6 daysox-latex.el: Fix minted inlineAlan Schmitt1-3/+3
* lisp/ox-latex.el (org-latex-inline-src-block): Output minted code that correctly formats code inline.
6 daysFix (void-variable d) errorNicolas Goaziou1-14/+16
* lisp/org.el (org-check-before-date): (org-check-after-date): Ensure D enters the lexical scope. Reported-by: Eric S Fraga <e.fraga@ucl.ac.uk> <http://permalink.gmane.org/gmane.emacs.orgmode/104842>
6 daysorg-colview: Fix length of columnsNicolas Goaziou1-30/+37
* lisp/org-colview.el (org-columns-display-here): Do not add star to headlines at the display level... (org-columns): ... but when collecting values, here... (org-agenda-columns): ... and there. Reported-by: Michael Brand <michael.ch.brand@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/104846>
6 daysMerge branch 'maint'Nicolas Goaziou1-44/+33
6 daysRemove `org-latex-fragment-image-overlays'Nicolas Goaziou1-45/+34
* lisp/org.el (org-latex-fragment-image-overlays): Remove variable. (org--format-latex-make-overlay): Do not register anymore created overlays in the removed variable. (org--list-latex-overlays): New function. (org-remove-latex-fragment-image-overlays): Use new function. (org-context): Work around use of `org-latex-fragment-image-overlays'. Reported-by: Dima Kogan <dima@secretsauce.net> <http://permalink.gmane.org/gmane.emacs.orgmode/104822>
7 daysMerge branch 'maint'Nicolas Goaziou1-2/+2
7 daysSilence byte-compilerNicolas Goaziou1-2/+2
* lisp/org.el (org--format-latex-make-overlay): Silence byte-compiler.
7 daysMerge branch 'maint'Nicolas Goaziou1-19/+22
7 daysorg-colview: Fix column view in agendaMarco Wahl1-1/+1
* org-colview(org-columns-display-here): Fix for lines without level by giving them artificially level 0. Idea: Exclude lines without level from column-view.
7 daysRemove LaTeX overlay when text below is modifiedNicolas Goaziou1-19/+22
* lisp/org.el (org--format-latex-make-overlay): New function. (org-format-latex): Use new function. Reported-by: Dima Kogan <dima@secretsauce.net> <http://permalink.gmane.org/gmane.emacs.orgmode/104800>
7 daysorg-colview: Add :indent parameterNicolas Goaziou3-8/+35
* lisp/org-colview.el (org-dblock-write:columnview): Handle :indent parameter. * doc/org.texi (Capturing column view): Document new feature.