Nicolas Goaziou
fbe56f89f7
Change `org-get-tags' specifications
...
* lisp/org.el (org-tag-line-re): New variable.
(org-hide-archived-subtrees):
(org-get-buffer-tags): Use new function.
(org--get-local-tags): New function.
(org-get-tags): Change meaning. Now get all inherited tags. Change
signature.
* lisp/org-archive.el (org-archive-subtree):
* lisp/org-mobile.el (org-mobile-apply):
(org-mobile-edit):
* lisp/org-mouse.el (org-mouse-tag-menu):
* lisp/org-pcomplete.el (pcomplete/org-mode/tag): Apply change
* testing/lisp/test-org.el (test-org/get-tags): New test.
(test-org/tags-at): Remove test.
2018-04-19 11:51:54 +02:00
Nicolas Goaziou
6457a9e4e6
Merge branch 'maint'
2018-04-18 22:18:47 +02:00
Nicolas Goaziou
8814988d1c
Fix error message
...
* lisp/org.el (org-kill-line): Fix error message.
2018-04-18 22:18:23 +02:00
Nicolas Goaziou
ee5fa18430
Remove `org<>' function
...
* lisp/org.el (org<>): Remove function.
2018-04-17 16:08:23 +02:00
Nicolas Goaziou
ff3f3876a8
Move time related functions from "org.el" to "org-macs.el"
...
* lisp/org.el (org-2ft):
(org-time=):
(org-time<):
(org-time<=):
(org-time>):
(org-time>=):
(org-time<>):
(org-matcher-time): Move from here to...
* lisp/org-macs.el: ... here
2018-04-17 16:06:09 +02:00
Nicolas Goaziou
1171d5ef0c
Merge branch 'maint'
2018-04-16 13:45:52 +02:00
Nicolas Goaziou
8b6a617ff5
Remove inlinetask END part from Agenda view
...
* lisp/org-inlinetask.el (org-inlinetask-end-p): New function.
(org-inlinetask-at-task-p):
(org-inlinetask-in-task-p):
(org-inlinetask-goto-beginning):
(org-inlinetask-goto-end):
* lisp/org.el (org-scan-tags): Use new function.
Reported-by: Alain.Cochard@unistra.fr
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00235.html >
2018-04-16 13:44:52 +02:00
Feng Shu
b4422add37
org-capture: Do not save buffer when running `org-capture-finalize'
...
* lisp/org-capture.el (org-capture-finalize): Do not run
`save-buffer'.
2018-04-16 12:11:00 +02:00
Nicolas Goaziou
bb03551246
ob-shell: Small refactoring
...
* lisp/ob-shell.el (org-babel-sh-evaluate): Slightly refactor code.
2018-04-15 12:26:03 +02:00
Nicolas Goaziou
cc9233c1f4
Merge branch 'maint'
2018-04-14 19:32:05 +02:00
Nicolas Goaziou
1a1e47198f
Fix `org-{w3m|eww}-copy-for-org-mode' on blank links
...
* lisp/org-w3m.el (org-w3m-copy-for-org-mode):
* lisp/org-eww.el (org-eww-copy-for-org-mode): Do not error when
called on blank links.
Reported-by: Bob Newell <bobnewell@bobnewell.net>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00255.html >
2018-04-14 19:30:17 +02:00
stardiviner
d7e12d1df7
* ob-clojure: Support :ns header argument
...
* lisp/ob-clojure.el (org-babel-clojure-default-ns): New variable.
(org-babel-clojure-cider-current-ns): New function.
(org-babel-expand-body:clojure):
(org-babel-execute:clojure): Support :ns header argument.
Remove optional parameter (cider-current-ns) to better handle
namespaces.
2018-04-14 18:21:55 +02:00
Nicolas Goaziou
434d232ca7
Merge branch 'maint'
2018-04-12 21:46:25 +02:00
Nicolas Goaziou
1976c02af0
Fix docstring
...
* lisp/org.el (org-file-apps): Fix regexp in docstring.
2018-04-12 21:46:05 +02:00
stardiviner
b088389c6b
ob-core: Add document and test for "graphics" format
...
* doc/org-manual.org: Document value.
* lisp/ob-core.el (org-babel-common-header-args-w-values): Handle
symbol "graphics".
* testing/lisp/test-ob.el (test-ob/result-graphics-link-type-header-argument):
New test.
2018-04-12 15:16:04 +02:00
stardiviner
296b0de4e8
ob-core: Add "link" results format
...
* lisp/ob-core.el (org-babel-execute-src-block): Handle "link" :results
format.
* doc/org-manual.org: Add document for new result format "link".
* testing/lisp/test-ob.el (test-ob/result-file-link-type-header-argument):
New test.
2018-04-12 15:15:59 +02:00
Nicolas Goaziou
52ba1a27ad
Merge branch 'maint'
2018-04-11 23:03:01 +02:00
Nicolas Goaziou
d20fc4d7c5
org-capture: Properly handle `org-extend-today-until' in templates
...
* lisp/org-capture.el (org-capture-set-target-location): Handle
non-default `org-extend-today-until'.
Reported-by: Robert Irelan <rirelan@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00023.html >
2018-04-11 23:01:16 +02:00
Nicolas Goaziou
384d763447
Move some functions into "org-macs.el"
...
* lisp/org.el (org-file-newer-than-p):
(org-compile-file): Move...
* lisp/org-macs.el: ... here.
2018-04-11 22:03:18 +02:00
Nicolas Goaziou
cbbca2991b
Merge branch 'maint'
2018-04-11 21:43:37 +02:00
Nicolas Goaziou
b7a7dd1492
Update version keyword
2018-04-11 21:42:46 +02:00
Nicolas Goaziou
575d66625d
org-table: Fix alignment with long links
...
* lisp/org-table.el (org-table-align): Fix alignment with long links.
2018-04-09 21:55:33 +02:00
Nicolas Goaziou
fb58727f32
Merge branch 'maint'
2018-04-08 18:39:36 +02:00
Nicolas Goaziou
f05c2eae33
Fix RET on multi-line links
...
* lisp/org.el (org-return): Follow multi-line links.
* testing/lisp/test-org.el (test-org/return): Add tests.
Reported-by: Brent Goodrick <bgoodr@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00105.html >
2018-04-08 18:35:40 +02:00
Rasmus
39837b4b31
org: Change org-insert-structure-template to C-c C-,
...
* lisp/org.el (org-mode-map):
* doc/org-manual.org (With): Change keybinding of
org-insert-structure-template.
See the thread titled "Poll: new keybinding for
org-insert-structure-template?" in December 2017 for details.
2018-04-08 12:47:12 +02:00
Rasmus
d04c20deec
org: Change structure insertion
...
* lisp/org.el (org-insert-structure-template): Change newline
behavior.
* testing/lisp/test-org.el (test-org/insert-template): New tests.
`org-insert-structure-template' considers indentation and also insert
newlines between the beginning and the end of the block.
2018-04-08 12:47:12 +02:00
Rasmus
e5f6cb6c8b
org-tempo: Various improvements
...
* lisp/org-tempo.el (org-tempo-keywords-alist): Improve docstring.
(org-tempo--update-maybe):
(org-tempo--keys): New function.
(org-tempo-complete-tag):
(org-tempo-setup):
(org-tempo-add-templates): Use new functions.
(org-tempo-add-block): Smarter position of point.
* testing/lisp/test-org-tempo.el (test-org-tempo/cursor-placement):
(test-org-tempo/space-first-line): New tests.
* testing/lisp/test-org-tempo.el (test-org-tempo/completion): Adapt
test to changes.
Org Tempo more carefully checks for new definitions. When inserting
blocks point will differ depending on whether it is source block.
2018-04-08 12:47:12 +02:00
Rasmus
b56df737b7
org: org-structure-template-alist uses string keys
...
* lisp/org-tempo.el (org-tempo-keywords-alist):
(org-tempo-setup):
(org-tempo-add-templates):
* testing/lisp/test-org-tempo.el (test-org-tempo/add-new-templates):
* lisp/org.el (org-structure-template-alist): Use string keys.
(org--insert-structure-template-mks):
(org--insert-structure-template-unique-keys): New functions for block selection.
(org-insert-structure-template): Use new functions.
* etc/ORG-NEWS:
* doc/org-manual.org: Reflect changes.
2018-04-08 12:47:12 +02:00
Rasmus
ac4d5fe1b3
org-macs: Make tab, space and RET equivalent in org-mks
...
* lisp/org-macs.el (org--mks-read-key): New function.
(org-mks): Use new function and make space, tab and RET equivalent.
2018-04-08 12:47:08 +02:00
Rasmus
06ab656f42
org-macs: Move org-mks from org-capture to org-macs
...
* lisp/org-capture.el (org-mks): Moved to org-macs.el.
* lisp/org-macs.el (org-mks): Added from org-capture.el.
The move is being done to accommodate the usage of org-mks in other
Org libraries.
2018-04-07 13:03:18 +02:00
Nicolas Goaziou
3485523821
Merge branch 'maint'
2018-04-05 16:48:46 +02:00
Brad Knotwell
8e5d74ca4c
ob-sed: Use -f instead of --file to support BSD sed
...
lisp/ob-sed.el (org-babel-execute:sed): Change file flag to "-f"
instead of "--file" to support BSD sed as well.
Signed-off-by: Bjarte Johansen <bjarte.johansen@gmail.com>
2018-04-05 16:47:41 +02:00
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
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
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