Commit Graph

21365 Commits

Author SHA1 Message Date
Nicolas Goaziou 717b0f039d Merge branch 'maint' 2018-04-05 16:46:11 +02:00
Pierre Téchoueyres befc92b9c0 org-agenda: Call `recenter' only if buffer has a window
* lisp/org-agenda.el (org-agenda-list): Condition the call to
  `recenter` only when the buffer has a window associated.

This permit to call `org-agenda-list` in a `with-temp-buffer` like
below:

(with-temp-buffer
  (let ((org-agenda-sticky nil)
        (org-agenda-buffer-tmp-name (buffer-name)))
    (org-agenda-list 1)
    (buffer-string))
2018-04-05 16:45:40 +02:00
Nicolas Goaziou a1ca78d5b8 Merge branch 'maint' 2018-04-03 21:28:37 +02:00
Nicolas Goaziou 3e1f111c3b ob-python: Small refactoring
* lisp/ob-python.el (org-babel-python-evaluate-session): Small
  refactoring.
2018-04-03 21:27:59 +02:00
Gong Qijian 1966d58b25 ob-python: Insert blank line when sending code to interpreter
* lisp/ob-python.el (org-bable-python-evaluate-session):

Syntax error occurs when evaluating the following code block:

\#+begin_src python :session
if True:
    1
2
\#+end_src

A blank line is required for top level module code to end an indented block, such as a for loop, try/except, or if statement.

https://www.python.org/dev/peps/pep-0008/#blank-line

TINYCHANGE
2018-04-03 21:24:18 +02:00
Marco Wahl 873caa6ad7 org.el: Fix two docstrings
* lisp/org.el (org-beginning-of-line, org-end-of-line): Fixed
  documentation of org-beginning-of-line; synchronized with
  documentation of org-end-of-line.
2018-04-03 17:03:34 +02:00
Nicolas Goaziou 003af466c5 ob-core: Fix failing tests.
* lisp/ob-core.el (org-babel-result-to-file): Do not assume current
  buffer is visiting a file.
2018-04-03 00:11:14 +02:00
Nicolas Goaziou 20b5d8aaec ob-js: Fix `indium-run-node' call.
* lisp/ob-js.el (org-babel-execute:js): `indium-run-node' expects
  a command to run.
2018-04-02 23:45:29 +02:00
stardiviner 174e9d1ec9 Fix org-babel-js-initiate-session
* ob-js.el (org-babel-js-initiate-session): Add required optional
 second argument.
2018-04-02 20:42:42 +02:00
stardiviner f57df8fc74 ob-shell: Add zsh and fish shells.
* ob-shell.el (org-babel-shell-names) add "zsh" and "fish".
2018-04-02 20:42:16 +02:00
Nicolas Goaziou e462125cfc org-table: Improve shrinking on right-aligned and centered columns
* lisp/org-table.el (org-table--make-shrinking-overlay): New function.
(org-table--shrink-field): Use new function.
(org-table--shrink-columns): Update function.
* testing/lisp/test-org-table.el (test-org-table/toggle-column-width):
  Update test.
2018-04-02 20:30:40 +02:00
Nicolas Goaziou f8924a2393 org-manual: Improve accuracy of a paragraph
* doc/org-manual.org (Column Width and Alignment): Reword paragraph
  about shrunk columns.  Document that a column is expanded only when
  text near its shrunk part is displayed.
2018-04-02 20:30:40 +02:00
Kyle Meyer f93aa77cc5 Merge branch 'maint' 2018-04-01 17:40:46 -04:00
Kyle Meyer 8ead9e5ba3 org-manual: Fix clone instructions
The same fix was applied to org.texi in b1a6395df.
2018-04-01 17:39:50 -04:00
Michael Albinus b1a6395dfe Backport commit 9bff405d0 from Emacs
* doc/org.texi (Installation): Fix clone commands.

9bff405d09f6eeeb577e6e0111e49f35d3b95b52
Michael Albinus
Wed Mar 28 10:38:26 2018 +0200
2018-04-01 17:27:10 -04:00
Nicolas Goaziou 834f6d100b org-tempo: Require `org' 2018-03-31 08:51:10 +02:00
Nicolas Goaziou 83f4627679 Change default value for scientific notation related variables
* lisp/ox-latex.el (org-latex-table-scientific-notation):
* lisp/ox-texinfo.el (org-texinfo-table-scientific-notation): Change
  default value to nil.

Reported-by: Günter Lichtenberg <mail@guenterlichtenberg.de>
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00527.html>
2018-03-30 22:20:30 +02:00
Grégoire Jadi 452f4d8527 org-manual: Fix typo in variable name 2018-03-29 22:18:36 +02:00
Marco Wahl 00386b4924 org-manual: Fix typo in Tracking TODO state changes
Also update org.texi from org-manual.org export.
2018-03-29 12:56:34 +02:00
Nicolas Goaziou cad9ac7355 Merge branch 'maint' 2018-03-28 17:17:30 +02:00
Nicolas Goaziou 7240f9c847 org.texi: Fix typo in capture protocol example
* doc/org.texi (@code{capture} protocol): Add missing protocol.

Reported-by: Буковская Агнесса <aggie@yandex.ru>
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00528.html>
2018-03-28 17:16:57 +02:00
Nicolas Goaziou df40cf42e5 Merge branch 'master' of code.orgmode.org:bzg/org-mode 2018-03-28 17:14:31 +02:00
Nicolas Goaziou e01bc94506 org.texi: Overwrite with the one generated from "org-manual.org"
* doc/org.texi: Overwrite with the one generated from
  "org-manual.org".
2018-03-28 17:13:56 +02:00
Nicolas Goaziou bfd6d3c867 org-manual: Fix typo in capture protocol
Reported-by: Буковская Агнесса <aggie@yandex.ru>
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00528.html>
2018-03-28 17:13:56 +02:00
Nicolas Goaziou a20ed49289 org-manual: Fix link to Calc manual 2018-03-28 16:27:57 +02:00
Nicolas Goaziou 661644aba7 org-manual: Fix typos in copying 2018-03-28 16:27:57 +02:00
Nicolas Goaziou 97fc9a79ec org-manual: Remove "email" keyword 2018-03-28 16:15:43 +02:00
Nicolas Goaziou 5ee6d18862 org-manual: Fix typo 2018-03-28 16:15:43 +02:00
Nicolas Goaziou 243608f153 org-manual: Normalize S-<cursor> keybindigs 2018-03-28 16:15:43 +02:00
Nicolas Goaziou b946c93865 org-manual: Fix typo 2018-03-28 16:15:43 +02:00
Nicolas Goaziou c154c3db02 org-manual: Fix whitespace issues 2018-03-28 16:15:43 +02:00
Nicolas Goaziou c1777f12a6 org-manual: Fix typo 2018-03-28 16:15:43 +02:00
Nicolas Goaziou fde21b962e org-manual: Fix table size 2018-03-28 16:15:43 +02:00
Nicolas Goaziou 6d4ae97103 Rename "manual.org" into "org-manual.org" 2018-03-28 16:15:40 +02:00
Nicolas Goaziou 7d2ed44f76 Move "manual.org" into "doc/" 2018-03-28 14:21:16 +02:00
Kyle Meyer 052fc2226b Merge branch 'maint' 2018-03-27 18:22:29 -04:00
Rasmus ab488dc438 org.el: Fix whitespace issue blocking upstream commit 2018-03-27 18:21:31 -04:00
Nicolas Goaziou 30b7fba2ae Merge branch 'maint' 2018-03-26 23:27:07 +02:00
Nicolas Goaziou 1b3cc4e463 Update version 2018-03-26 23:24:00 +02:00
Nicolas Goaziou 842a5ba6d3 org-agenda: Fix temporary delays
* lisp/org-agenda.el (org-agenda-get-scheduled): Ignore "--Xd" delays
  after first repeat.

Reported-by: hhkg@protonmail.com
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00481.html>
2018-03-26 23:22:38 +02:00
Kyle Meyer be8f76cbe9 Merge branch 'maint' 2018-03-26 00:07:03 -04:00
Glenn Morris 8cf787cbad Backport commit 7d6c7d0b4 from Emacs
; Use GNU not Gnu in docs
7d6c7d0b461705fd67f7df1096b6f6376931f140
Glenn Morris
Fri Mar 23 16:01:12 2018 -0400
2018-03-26 00:05:57 -04:00
Glenn Morris b45c1ff4d4 Backport commit a6a821d29 from Emacs
* lisp/ob-lisp.el (org-babel-lisp-eval-fn): Tweak type.

Avoids type mismatch when relevant library is not present/loaded.

a6a821d29bda3e45fb26289e6119359ea3b91ebb
Glenn Morris
Thu Mar 22 14:37:45 2018 -0400
2018-03-26 00:01:40 -04:00
Nicolas Goaziou 18082bcdc9 Merge branch 'maint' 2018-03-25 23:29:02 +02:00
Maxim Cournoyer 5b6e099a6b contrib: ob-sclang: Fix compilation issue.
* contrib/lisp/ob-sclang.el: Require sclang instead of sclang-interp.
2018-03-25 23:28:42 +02:00
Nicolas Goaziou 9aaa035e88 Merge branch 'maint' 2018-03-25 22:56:01 +02:00
Nicolas Goaziou 8c9ebc81f0 Revert "ob-table: Fix org-sbe's handling of quotes in cell values"
This reverts commit 5b59e16c9e.
2018-03-25 22:55:24 +02:00
Nicolas Goaziou 9e70db6bab Revert "ob-table: Fix org-sbe's handling of list arguments"
This reverts commit c9d617b322.
2018-03-25 22:55:14 +02:00
Nicolas Goaziou 6261bbd20b Revert "ob-table: Mention passing ranges as lists in org-sbe's documentation"
This reverts commit 02b1574ea9.
2018-03-25 22:54:56 +02:00
stardiviner 6bb4134cdd ob-js: Small refactoring.
* lisp/ob-js.el (org-babel-prep-session:js): Replace `mapc' + `lambda'
  with `dolist'.
2018-03-25 22:47:27 +02:00