summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
4 hoursob-ruby: clean up the session code some more and work around an I/O sync ↵HEADmasterAchim Gratz2-18/+59
problem in comint * lisp/ob-ruby.el (org-babel-ruby-evaluate): Clean up the session code and remove a superfluous `butlast'. Work around a problem in comint where the first prompt in a session may be printed after the evaluation has already started, thus producing a spurious line in the output. * testing/lisp/test-ob-ruby.el (test-ob-ruby/session-output-1, test-ob-ruby/session-output-2 test-ob-ruby/session-output-3): Test correct transfer of interpreter state across several session invocations.
9 hoursob-ruby: fix a24775dc79 againAchim Gratz2-3/+4
* lisp/ob-ruby.el (org-babel-ruby-evaluate): Temporarily disable the irb prompt to ensure that the output is properly recognized using the standard settings from inf-ruby and no extra settings in .irbrc or other configuration files from Ruby. Remove superfluous `comint-send-input' that produced a spurious empty line in output. * testing/lisp/test-ob-ruby.el (test-ob-ruby/session-output): Remove spurious emtpy line in expected output.
23 hoursob-sql.el: Clean mysql parameters generationSteven Rémot1-3/+3
* lisp/ob-sql.el (dbstring-mysql): Rename function and tweak a bit its implementation (org-babel-execute:sql): Use new function name Prefix `dbstring-mysql' function with the namespace "org-babel-sql" to avoid name collisions. Also replace the call to `remq' by `delq' because it is a bit more efficient, and also to be consistent with `org-babel-sql-dbstring-postgresql'.
23 hoursob-sql.el: Enhance postgresql supportSteven Rémot1-1/+11
* lisp/ob-sql.el (org-babel-sql-dbstring-postgresql): New function (org-babel-execute:sql): Use new function. Before this patch, it was necessary to use :cmdline parameter to specify host, user and database different the the default ones. Now, this can be done using parameters that are independents of the engine used. This is not trivial (and not recommended) to pass password as a command line argument to psql, so :dbpassword is not supported.
23 hoursMerge branch 'maint'Nicolas Goaziou1-3/+3
23 hoursFix to determine a bulk-markable linemaintmarcowahlsoft@gmail.com1-3/+3
* lisp/org-agenda.el (org-agenda-bulk-mark, org-agenda-bulk-mark-regexp, org-agenda-bulk-toggle-all): This fixes e.g. org-agenda-bulk-mark-all when time-grid is shown. TINYCHANGE
24 hoursMerge branch 'maint'Achim Gratz1-3/+3
24 hourstest-ob-exp: fix failing testAchim Gratz1-3/+3
* testing/lisp/test-ob-exp.el (ob-exp/export-from-a-temp-buffer): Check for the correct expected output so the test stops failing.
25 hoursox-koma-letter: Fix "to" and "from"Nicolas Goaziou1-7/+6
* contrib/lisp/ox-koma-letter.el (koma-letter): Properly display default "from" address from template. (org-koma-letter--determine-to-and-from): Do not provide a default "to" value as it might be set through a LCO file. (org-koma-letter-template): Remove trailing whitespace.
31 hoursox-ascii: Implement plain-lists own extra marginNicolas Goaziou3-1/+28
* lisp/ox-ascii.el (org-ascii-list-margin): New variable. (ascii): New property. (org-ascii--current-text-width, org-ascii-plain-list): Take into account list margin. * doc/org.texi (Publishing options): * etc/ORG-NEWS (argument): Document new variable.
45 hoursMerge branch 'maint'Nicolas Goaziou1-11/+11
45 hoursox-ascii: Fix filling with preserve breakNicolas Goaziou1-11/+11
* lisp/ox-ascii.el (org-ascii--fill-string): Allow filling even when `org-export-preserve-breaks' is non-nil.
46 hoursMerge branch 'maint'Nicolas Goaziou1-5/+8
Conflicts: doc/org.texi
46 hoursorg.texi: Be more explicit about output file nameNicolas Goaziou1-5/+8
* doc/org.texi (Export settings): Be more explicit about how output file name is built.
47 hoursFix 788780296c0642b723598fa09300f2926a39e9f8Nicolas Goaziou1-2/+1
47 hoursorg.texi: Document case-sensitivity of special blocksNicolas Goaziou1-10/+11
* doc/org.texi (Special blocks, HTML doctypes, @LaTeX{} specific attributes): Take into account case-sensitivity of special blocks.
2 daysMerge branch 'maint'Nicolas Goaziou2-7/+12
2 daysFix headline insertion after an empty headlineNicolas Goaziou2-7/+12
* lisp/org.el (org-N-empty-lines-before-current): Make sure to delete only empty lines, not trailing whitespaces. * testing/lisp/test-org.el (test-org/insert-heading): Add test. Thanks to Oleh for reporting it. http://permalink.gmane.org/gmane.emacs.orgmode/90876
2 daysorg-table: fix docstringAaron Ecay1-1/+1
* lisp/org-table.el (org-table-get): Fix docstring.
2 daysob-R: declare ess-current-process-nameAchim Gratz1-1/+2
* lisp/ob-R.el: Forward declare `ess-current-process-name'.
2 daysMerge branch 'maint'Achim Gratz1-4/+4
2 daysob-sh: compatibility fix for "Marker does not point anywhere" errors in Emacs 23Achim Gratz1-1/+7
* lisp/ob-sh.el (org-babel-sh-initiate-session): After initiating a session, initialize the marker `comint-last-output-start' since it is going to be used by the ANSI color filter without further checks in Emacs 23 and throws an error.
2 daysob-shell: compatibility fix for "Marker does not point anywhere" errors in ↵Achim Gratz1-1/+7
Emacs 23 * lisp/ob-shell.el (org-babel-sh-initiate-session): After initiating a session, initialize the marker `comint-last-output-start' since it is going to be used by the ANSI color filter without further checks in Emacs 23 and throws an error.
2 daysox-texinfo: fix bug in 3432681fbeAchim Gratz1-1/+1
* lisp/ox-texinfo.el: Add missing argument to call of `org-element-property'.
3 daysorg-table: for compatibility, use org-file-equal-pAchim Gratz1-1/+1
* lisp/org-table.el: Predicate function `file-equal-p' is not available in older Emacsen, use compatibility function `org-file-equal-p' instead.
3 daysMerge branch 'master' of orgmode.org:org-modeNicolas Goaziou1-2/+4
3 daysMerge branch 'maint'Nicolas Goaziou1-75/+74
Conflicts: lisp/ox-html.el
3 daysob-R: make it work with older ESS versionsAchim Gratz1-2/+4
* lisp/ob-R.el (org-babel-R-initiate-session): The PROC argument is mandatory for older ESS versions.
3 daysox-html: Fix linking to deep level headlinesNicolas Goaziou1-77/+64
* lisp/ox-html.el (org-html-headline): Make sure even listified headlines have proper anchors so internal links can refer to them. Small refactoring. Thanks to Bruce Gilstrap for reporting it. http://permalink.gmane.org/gmane.emacs.orgmode/90835
4 dayslisp/ob-R.el: use `ess-wait-for-process' to assure clean session startupchasberry1-0/+3
* lisp/ob-R.el (org-babel-R-initiate-session): Make sure that (R) has finished before `rename-buffer' is run. TINYCHANGE
4 daysParsing and exporting special blocks preserve caseNicolas Goaziou8-8/+13
* lisp/org-element.el (org-element-special-block-parser): * lisp/ox-latex.el (org-latex-special-block): * lisp/ox-html.el (org-html-special-block): * lisp/ox-man.el (org-man-special-block): * lisp/ox-odt.el (org-odt-special-block): * lisp/ox-texinfo.el (org-texinfo-special-block): * contrib/lisp/ox-groff.el (org-groff-special-block): Preserve case. * testing/lisp/test-org-element.el (test-org-element/special-block-parser): Add test.
6 daysTiny refactoringNicolas Goaziou1-1/+1
* lisp/org.el (org-hide-block-toggle-maybe): Tiny refactoring.
6 daysFix `org-hide-block-toggle' return valueNicolas Goaziou2-7/+17
* lisp/org.el (org-hide-block-toggle-maybe): Do not return a non-nil value when toggling failed. (org-hide-block-toggle): Update docstring. * testing/lisp/test-org.el (test-org/hide-block-toggle-maybe): New test.
6 daysFix `org-hide-block-toggle-maybe'Nicolas Goaziou1-9/+5
* lisp/org.el (org-hide-block-toggle-maybe): Never throw an error. Improve docstring. (org-hide-block-toggle): Improve docstring.
6 daysFix `org-up-heading-safe'Nicolas Goaziou1-8/+5
* lisp/org.el (org-up-heading-safe): Do not throw any error, as advertised in the docstring.
6 daysob-gnuplot: Fix error when table contains datesNicolas Goaziou1-10/+8
* lisp/ob-gnuplot.el (org-babel-gnuplot-table-to-data): Dynamically bind `org-babel-gnuplot-timestamp-fmt' instead of making it buffer-local, since export takes place in another buffer anyway. Thanks to Thomas Holst for reporting it. http://permalink.gmane.org/gmane.emacs.orgmode/90709
6 daysFix "Not at a block" error on dynamic blocksNicolas Goaziou1-6/+6
* lisp/org.el (org-hide-block-toggle, org-indent-block): Recognize dynamic blocks. Thanks to Eric S Fraga for reporting it. http://permalink.gmane.org/gmane.emacs.orgmode/90711
7 daysMerge branch 'master' of orgmode.org:org-modeBastien Guerry4-58/+104
7 daysTable formula: Fix for Lisp return value nilMichael Brand2-4/+3
* lisp/org-table.el (org-table-eval-formula): Substitute `listp' with `consp'. * testing/lisp/test-org-table.el (test-org-table/lisp-return-value): Fix test.
7 daysTable formula: Add ERT for Lisp return valuesMichael Brand1-0/+38
* testing/lisp/test-org-table.el (test-org-table/lisp-return-value): Add test with TODO.
8 daysorg-element: Fix outdated commentNicolas Goaziou1-8/+3
8 daysorg-element: Fix planning parsingNicolas Goaziou2-47/+61
* lisp/org-element.el (org-element-planning-parser): Remove useless check. (org-element--next-mode): Change signature. (org-element--parse-elements, org-element--parse-to): Apply signature change. * testing/lisp/test-org-element.el (test-org-element/planning-parser): Add test.
8 daysMerge branch 'master' of orgmode.org:org-modeBastien Guerry5-581/+956
8 daysorg-table: Use "ox.el" internally for radio tablesNicolas Goaziou4-545/+918
* lisp/org-table.el (org-table-clean-before-export, orgtbl-get-fmt, orgtbl-apply-fmt, orgtbl-eval-str, orgtbl-format-line, orgtbl-format-section): Remove functions. (org-table-clean-did-remove-column, *orgtbl-table*, *orgtbl-rtn*, *orgtbl-hline*, *orgtbl-sep*, *orgtbl-default-fmt*, *orgtbl-fmt*, *orgtbl-efmt*, *orgtbl-lfmt*, *orgtbl-llfmt*, *orgtbl-lstart*, *orgtbl-llstart*, *orgtbl-lend*, *orgtbl-llend*): Remove variables. (org-table-export, orgtbl-send-table): Apply function removal. Do not set `org-table-last-alignment' and `org-table-last-column-widths' anymore. (org-table-to-lisp, orgtbl-send-replace-tbl): Small refactoring. (org-table--to-generic-table, org-table--to-generic-row, org-table--to-generic-cell): New functions. (orgtbl-to-generic): Rewrite function. Handle :skip and :skipcols parameters. (orgtbl-to-latex, orgtbl-to-html, orgtbl-to-texinfo, orgtbl-to-orgtbl, orgtbl-to-unicode): Use new `orgtbl-to-generic' features. * testing/lisp/test-org-table.el (test-org-table/to-generic, test-org-table/to-latex, test-org-table/to-texinfo, test-org-table/to-html, test-org-table/to-unicode, test-org-table/send-region): New tests. * doc/org.texi (Radio tables, A @LaTeX{} example, Translator functions): Update documentation. * etc/ORG-NEWS (argument): Document new features.
9 daysox-latex: Tweak table row exportNicolas Goaziou1-36/+38
* lisp/ox-latex.el (org-latex-table-row): Rewrite code to distinguish between regular rows and separators.
9 daysMerge branch 'master' of orgmode.org:org-modeBastien Guerry1-2/+3
9 daysFix "Not at a block" error on export blocksNicolas Goaziou1-2/+3
* lisp/org.el (org-hide-block-toggle): Fix "Not at a block" error on export blocks.
9 daysMerge branch 'master' of orgmode.org:org-modeBastien Guerry1-1/+1
9 daysFix "Not at a block" error on special blocksNicolas Goaziou1-1/+1
* lisp/org.el (org-hide-block-toggle): Fix "Not at a block" error on special blocks. Thanks to Fabrice Popineau for reporting it. http://permalink.gmane.org/gmane.emacs.orgmode/90663
9 daysMerge branch 'master' of orgmode.org:org-modeBastien Guerry2-23/+20