Nicolas Goaziou
becbefb9d7
Merge branch 'maint'
2018-04-24 23:27:20 +02:00
Nicolas Goaziou
b4e82fb050
org-manual: Sync manual with org.texi
2018-04-24 23:26:27 +02:00
Nicolas Goaziou
0dc4ba22e2
org.texi: Document `org-agenda-search-headline-for-time'
...
* doc/org.texi (Time-of-day specifications): Document
`org-agenda-search-headline-for-time'.
Reported-by: Rohit Patnaik <quanticle@quanticle.net>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00405.html >
2018-04-24 23:20:53 +02:00
Nicolas Goaziou
a548e491a9
Merge branch 'maint'
2018-04-23 15:30:19 +02:00
Nicolas Goaziou
f1b43fe9e6
Fix multiple tag selection
...
* lisp/org.el (org--tag-add-to-alist): Preserve order when merging tag
alists. Remove duplicates only when they are outside a group.
Rename from `org-tag-add-to-alist'.
(org-set-regexps-and-options):
(org-global-tags-completion-table):
(org-make-tags-matcher):
(org-set-tags):
(org-change-tag-in-region):
(org-agenda-prepare-buffers): Apply renaming.
Reported-by: Alex Branham <alex.branham@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00311.html >
2018-04-23 15:24:23 +02:00
Kyle Meyer
08e196d7fa
Merge branch 'maint'
2018-04-22 11:13:14 -04:00
Kyle Meyer
e3b1c664e7
Update version keyword
2018-04-22 11:09:36 -04:00
Eli Zaretskii
d13811cbc0
Backport commit 8f6293ca7 from Emacs
...
* doc/org.texi (Editing source code, Export settings)
(Closing items, Drawers, Structure editing): Fix use of
@key. For the details, see
http://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00390.html .
Fix use of @key in Texinfo manuals
8f6293ca789edf06ea8e7b4b80edf7558d590ca7
Eli Zaretskii
Thu Apr 19 12:21:06 2018 +0300
2018-04-22 10:58:56 -04:00
Nicolas Goaziou
02e290d1d4
Merge branch 'maint'
2018-04-21 15:22:53 +02:00
Nicolas Goaziou
cb63ccb78e
org-capture: Fix error on capture abort
...
* lisp/org-capture.el (org-capture-finalize): Do not set `abort-note'
to `dirty' too easily.
Reported-by: Brad Knotwell <bknotwell@yahoo.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00183.html >
2018-04-21 15:21:25 +02:00
Nicolas Goaziou
8b121d3aa2
org-agenda: Fix missing colons in agenda tags
...
* lisp/org-agenda.el (org-agenda-format-item): Fix missing colons in
agenda tags.
This regression was introduced in "Standardize tag regexps" commit.
Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00321.html >
2018-04-21 11:54:25 +02:00
Nicolas Goaziou
c1ebb6d221
Merge branch 'maint'
2018-04-21 11:26:54 +02:00
Nicolas Goaziou
c75c574d58
org-capture: Fix error when clipboard is empty
...
* lisp/org-capture.el (org-capture-fill-template): Fix "%x"
placeholder when clipboard is empty.
Reported-by: Brady Trainor <mail@bradyt.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00328.html >
2018-04-21 11:25:46 +02:00
Nicolas Goaziou
56fe493618
Merge branch 'maint'
2018-04-21 11:13:03 +02:00
Nicolas Goaziou
5792f06871
ox-md: Tiny refactoring
...
* lisp/ox-md.el (org-md--build-toc): Tiny refactoring.
2018-04-21 11:12:04 +02:00
Yue Zhu
c6e5aa1da8
ox-md: Fix ToC on unnumbered headings
...
(org-md--build-toc): When exporting markdown with ToC, if heading
numbering is not enabled, ToC will be shown as an unordered list.
TINYCHANGE
2018-04-21 10:59:47 +02:00
Nicolas Goaziou
3719cdd48e
org-table: Fix shrunk hlines
...
* lisp/org-table.el (org-table--shrink-field): Handle properly shrunk
hlines with a width cookie.
* testing/lisp/test-org-table.el (test-org-table/toggle-column-width):
Add test. Fix tests.
Reported-by: William Denton <wtd@pobox.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00306.html >
2018-04-20 11:57:37 +02:00
Nicolas Goaziou
222cfe7daf
org-manual: Sync with maint
...
* doc/org-manual.org:
* doc/org.texi (Variable Index):
(Markdown Export): Sync with maint.
2018-04-20 11:16:06 +02:00
Nicolas Goaziou
7eeb396c7d
Merge branch 'maint'
2018-04-20 11:13:17 +02:00
Nicolas Goaziou
14d3d59c44
Clarify `md' and `html' back-ends relationship
...
* doc/org.texi (Markdown export): Reword.
Reported-by: "Loris Bennett" <loris.bennett@fu-berlin.de>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00303.html >
2018-04-20 11:11:52 +02:00
Nicolas Goaziou
95af956cfd
Merge branch 'maint'
2018-04-20 11:05:56 +02:00
Andrew Eggenberger
8c3d4fbde7
Document `org-timestamp-up' and `org-timestamp-down' behavior
...
* org.el (org-timestamp-up): Document undocumented behavior.
(org-timestamp-up): The function changes the timestamp type when
the point is on the enclosing bracket. The documentation now
reflects that behavior.
* org.el (org-timestamp-down): Document undocumented behavior.
(org-timestamp-down): The function changes the timestamp type when
the point is on the enclosing bracket. The documentation now
reflects that behavior.
TINYCHANGE
2018-04-20 11:05:28 +02:00
Nicolas Goaziou
4d152b994e
Rewrite tags setting functions
...
* lisp/org.el (org-setting-tags): Remove variable.
(org-set-tags-command): Change signature. For interactive use only.
(org-set-tags-to): Remove function.
(org-align-all-tags): Remove function.
(org-align-tags): New function.
(org-set-tags): Change signature. For non-interactive use only.
(org-promote):
(org-demote):
(org-refile):
(org-todo):
(org-priority):
(org-toggle-tag):
(org-entry-put):
(org-fix-tags-on-the-fly):
(org-ctrl-c-ctrl-c):
(org-delete-indentation):
(org-return):
(org-kill-line): Apply signature change. Use new functions.
* lisp/ox-beamer.el (org-beamer-property-changed):
(org-beamer-select-environment): Apply signature change. Use new
functions.
* testing/lisp/test-org-archive.el (test-org-archive/to-archive-sibling):
Update test.
* testing/lisp/test-org.el (test-org/set-tags): Add tests.
(test-org/set-tags-command): New test.
(test-org/set-tags-to): Remove test.
2018-04-20 10:51:21 +02:00
Nicolas Goaziou
be31a0c459
Standardize tag regexps
...
* lisp/org.el (org-tag-re):
(org-tag-group-re): New variable
(org-tag-string-to-alist):
(org-scan-tags):
(org-make-tags-matcher):
(org-fast-tag-selection): Use new variables.
* lisp/org-agenda.el (org-agenda-list-stuck-projects):
(org-agenda-format-item):
(org-agenda-fix-displayed-tags):
* lisp/org-archive.el (org-archive-subtree): Use new variables.
2018-04-19 14:28:54 +02:00
Nicolas Goaziou
edc159c2f2
Remove `org-get-tags-string'
...
* lisp/org.el (org-get-tags-string): Move to "org-compat".
(org-make-tag-string): New function
(org-set-tags-to):
(org-set-tags):
(org-set-current-tags-overlay):
(org-entry-properties):
(org-agenda-prepare-buffers):
* lisp/org-mouse.el (org-mouse-set-tags):
* lisp/ox-ascii.el (org-ascii--build-title):
* lisp/ox-beamer.el (org-beamer-select-environment):
* lisp/ox-latex.el (org-latex-format-inlinetask-default-function):
* lisp/ox-md.el (org-md-headline):
(org-md--build-toc):
* lisp/ox-texinfo.el (org-texinfo-format-headline-default-function):
(org-texinfo-format-inlinetask-default-function):
* contrib/lisp/ox-groff.el (org-groff-headline):
(org-groff-inlinetask): Use new function.
* lisp/org-compat.el (org-get-tags-string): New function.
2018-04-19 11:52:07 +02:00
Nicolas Goaziou
2a293843ad
org-lint: Remove useless checker
...
* lisp/org-lint.el (org-lint--checkers): Remove useless checker.
(org-lint-empty-headline-with-tags): Remove function.
* testing/lisp/test-org-lint.el (test-org-lint/empty-headline-with-tags):
Remove test.
2018-04-19 11:52:07 +02:00
Nicolas Goaziou
e87ebca2a7
Use `org-tag-line-re'
...
* lisp/org.el (org-activate-tags):
(org-toggle-tag):
(org--align-tags-here):
(org-fast-tag-selection):
(org-kill-line):
* lisp/org-agenda.el (org-agenda-align-tags): Use `org-tag-line-re'.
2018-04-19 11:52:07 +02:00
Nicolas Goaziou
7d2ebc3ffa
Deprecate `org-get-local-tags' and `org-get-local-tags-at'
...
* contrib/lisp/org-drill.el (org-drill-entry-p):
(org-drill-entry-leech-p):
* lisp/org-bibtex.el (org-bibtex-headline):
(org-get-local-tags-at): Use `org-get-tags'.
* lisp/org.el (org-get-local-tags-at):
(org-get-local-tags): Move to...
* lisp/org-compat.el: ... here.
2018-04-19 11:51:54 +02:00
Nicolas Goaziou
f05493504a
Replace `org-get-tags-at' with `org-get-tags'
...
* contrib/lisp/org-drill.el (org-part-of-drill-entry-p):
* lisp/org-agenda.el (org-agenda-finalize):
(org-search-view):
(org-agenda-get-todos):
(org-agenda-get-timestamps):
(org-agenda-get-sexps):
(org-agenda-get-progress):
(org-agenda-get-deadlines):
(org-agenda-get-scheduled):
(org-agenda-get-blocks):
(org-agenda-change-all-lines):
* lisp/org-bibtex.el (org-bibtex-headline):
* lisp/org-clock.el (org-clock-get-table-data):
* lisp/org-pcomplete.el (org-get-tags):
* lisp/org.el (org-trust-scanner-tags):
(org-get-local-tags-at):
(org-get-local-tags):
(org-set-tags):
(org-map-entries):
(org-entry-properties): Use `org-get-tags' instead of
`org-get-tags-at'.
2018-04-19 11:51:54 +02:00
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
stardiviner
280e3c9b53
ob-clojure-literate: Remove dependency on Dash
...
* contrib/lisp/ob-clojure-literate.el (ob-clojure-literate-get-session-list):
(ob-clojure-literate-set-session):
(ob-clojure-literate-auto-jackin):
(ob-clojure-literate-set-local-cider-connections): Remove dependency
on Dash library.
2018-04-16 12:09:12 +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
2a315ab59d
ob-clojure-literate: Handle no :file specified file is nil case
...
* ob-clojure-literate.el (ob-clojure-literate-inject-code): Handle
no :file specified file is nil case.
2018-04-14 18:21:59 +02:00
stardiviner
46d841d064
* ob-clojure-literate: Get session from global connections list
...
* contrib/lisp/ob-clojure-literate.el (ob-clojure-literate-get-session-list):
(org-babel-map): Get session from global connections list.
(ob-clojure-literate-specify-session): Renamed from
`ob-clojure-literate-specify-session-header-argument'.
2018-04-14 18:21:59 +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
stardiviner
8835ee750e
* ob-clojure-literate: Support vars initialization when prepare session
...
* contrib/lisp/ob-clojure-literate.el (org-babel-clojure-var-to-clojure):
(org-babel-variable-assignments:clojure): Support vars initialization
when prepare session.
2018-04-14 17:54:02 +02:00
stardiviner
0104bea3ad
* ob-clojure-literate: Support use :ns header argument
...
* contrib/lisp/ob-clojure-literate.el (ob-clojure-literate-set-ns):
Renamed from `ob-clojure-literate-cider-do-not-find-ns'
(ob-clojure-literate-enable):
(ob-clojure-literate-disable): Support use :ns header argument.
2018-04-14 17:52:58 +02:00
stardiviner
5a1a1f3d9a
* ob-clojure-literate: CIDER jack-in outside of project by default
...
* contrib/lisp/ob-clojure-literate.el (ob-clojure-literate-project-location):
(ob-clojure-literate-default-session):
(ob-clojure-literate-auto-jackin): CIDER jack-in outside of project by
default.
2018-04-14 17:51:15 +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
Nicolas Goaziou
9a5557d715
org.texi: Re-generate file
2018-04-12 15:36:43 +02:00