Nicolas Goaziou
722f8a517f
org-macs: Re-order sections alphabetically
2018-04-29 12:09:34 +02:00
Nicolas Goaziou
3c013ba24d
Silence byte-compiler
2018-04-29 12:03:17 +02:00
Nicolas Goaziou
9d8aade7ec
Mark `org-with-silent-modifications' as obsolete
...
* lisp/org-clock.el (org-clock-sum):
* lisp/org-colview.el (org-columns--display-here):
(org-columns-remove-overlays):
(org-columns-quit):
(org-columns-edit-value):
(org-columns--compute-spec):
(org-columns-compute-all):
(org-agenda-colview-compute):
* lisp/org-indent.el (org-indent-remove-properties):
(org-indent-add-properties):
* lisp/org.el (org-sort-entries):
(org-refresh-properties):
(org-refresh-category-properties):
(org-refresh-stats-properties):
(org-agenda-prepare-buffers): Do not use
`org-with-silent-modifications'.
2018-04-29 12:02:01 +02:00
Nicolas Goaziou
a2994cb005
Mark "org-version-check" obsolete
...
* lisp/org-compat.el (org-version-check): Mark as obsolete.
(org-no-popups):
* testing/examples/babel.org: Remove use of `org-version-check'.
2018-04-29 11:54:40 +02:00
Nicolas Goaziou
31afe4b718
Move window-related function to "org-macs.el"
...
* lisp/org.el (org-switch-to-buffer-other-window):
* lisp/org-compat.el (org-fit-window-to-buffer): Move functions...
* lisp/org-macs.el: ... here.
2018-04-29 10:31:24 +02:00
Nicolas Goaziou
4d568fc83c
Move `org-parse-time-string' to "org-macs.el"
...
* lisp/org.el (org-parse-time-string): Move function...
* lisp/org-macs.el : ... here. Remove obsolete FIXME. Improve
docstring.
2018-04-29 10:26:41 +02:00
Nicolas Goaziou
298eaa1c32
org-agenda: Fix last commit
...
* lisp/org-agenda.el (org-agenda-align-tags): Fix thinko in last
commit.
2018-04-29 10:03:31 +02:00
Nicolas Goaziou
031b75f500
org-agenda: Fix tags alignment
...
* lisp/org-agenda.el (org-agenda-align-tags): Fix regexp. Improve
docstring.
The regression was introduced in "Use `org-tag-line-re'".
Reported-by: Xu Chunyang <mail@xuchunyang.me>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00587.html >
2018-04-29 09:57:33 +02:00
Nicolas Goaziou
cc9ae41738
Mark `org-preserve-lc' as obsolete
...
* lisp/org-macs.el (org-preserve-lc): Move function...
* lisp/org-compat.el (org-preserve-lc): ... here.
The function is no longer used in code base.
2018-04-29 00:44:26 +02:00
Nicolas Goaziou
89071f287f
org-table: Fix failing tests
...
* lisp/org-table.el (org-table-copy-region): Preserve return value.
Sligthly improve docstring.
2018-04-29 00:31:35 +02:00
Nicolas Goaziou
f77f5b963d
Add :safe keyword to `org-hide-emphasis-markers'
...
* lisp/org.el (org-hide-emphasis-markers): Add :safe keyword.
2018-04-29 00:19:55 +02:00
Nicolas Goaziou
0c58605f2f
org-compat: Silence byte-compiler
2018-04-29 00:18:59 +02:00
Nicolas Goaziou
c6d717cc89
Slightly speed up `org--align-tags-here'
...
* lisp/org.el (org--align-tags-here): Check if tags are already at the
correct column before messing with the buffer.
2018-04-29 00:11:24 +02:00
Nicolas Goaziou
8785052735
`org-set-tags' cleans tag even when new tags are identical
...
* lisp/org.el (org-set-tags): Clean old tags unconditionally.
Even if the tags are the same, the line could contain noise, e.g.,
blanks after the tags, that could be cleaned up anyway.
2018-04-29 00:11:24 +02:00
Nicolas Goaziou
1615261cdc
Preserve point when setting or aligning tags
...
* lisp/org.el (org--align-tags-here):
(org-set-tags-command):
(org-align-tags): Preserve point.
* testing/lisp/test-org.el (test-org/set-tags-command): Add test.
2018-04-28 23:45:04 +02:00
Nicolas Goaziou
7aadf4fe8c
Improve `org-fix-tags-on-the-fly'
...
* lisp/org.el (org-fix-tags-on-the-fly): Improve docstring. Skip more
cases.
2018-04-28 23:45:04 +02:00
Nicolas Goaziou
4c13d0a1a8
Do not load Org Tempo by default
...
* lisp/org.el (org-modules): Do not load Org Tempo by default.
Org Tempo is a backward compatible substitute for the new expansion
mechanism. It is only available for either die-hard "<s" users or
power users that need advanced templates.
2018-04-28 17:29:00 +02:00
Bastien
2b6004f57e
org-agenda.el: Update the logic of regexp filters
...
* lisp/org-agenda.el (org-agenda-filter-by-regexp): Remove
existing regexp filter. Only cumulate filters when called
with two prefix arguments.
It seems more common and reasonable to hit "=" to filter
then hit "=" again to remove the filter. Cumulative filters
are still accessible through hitting `C-u C-u ='.
2018-04-28 14:12:37 +02:00
Bastien
2debcd5b22
org.el: New command `org-toggle-narrow-to-subtree'
...
* lisp/org.el (org-toggle-narrow-to-subtree): New command.
(org-speed-commands-default): Use the new command for the "s"
speed command.
2018-04-28 14:00:25 +02:00
Bastien
f2af4a37a6
Fix commit 011f1c6
2018-04-28 13:53:06 +02:00
Bastien
0f83eac078
org.el: Enhance messages when (un)setting timestamps
...
* lisp/org.el (org--deadline-or-schedule): Enhance messages.
2018-04-28 13:31:45 +02:00
Bastien
ed50e13e91
org-agenda.el: Only remove agenda restriction if it exists
...
* lisp/org-agenda.el (org-agenda-remove-restriction-lock):
Only remove agenda restriction if it exists.
2018-04-28 13:02:45 +02:00
Bastien
4c14e0d1f2
org.el: New speed command "k" to kill the subtree at point
...
* lisp/org.el (org-speed-commands-default): Add "k" to kill
the subtree at point.
2018-04-28 12:57:15 +02:00
Bastien
5c8cb1e733
Add messages for `org-table-copy-region' and `org-copy-visible'
...
* lisp/org-table.el (org-table-copy-region):
* lisp/org.el (org-copy-visible): Add a message.
2018-04-28 12:52:20 +02:00
Bastien
b5b7bb8446
org.el: Display a message when a checkbox could not be updated
...
* lisp/org.el (org-ctrl-c-ctrl-c): Display a message when the
checkbox item at point could not be updated.
* lisp/org-list.el (org-list-write-struct): Return the updated
structure.
2018-04-28 12:43:14 +02:00
Bastien
1933d9ef26
org-clock.el (org-clock-jump-to-current-clock): Tiny enhancements
...
* lisp/org-clock.el (org-clock-jump-to-current-clock): Add a
docstring, do not use as a command and throw a user error
instead of an error when no clock is active.
2018-04-28 12:23:26 +02:00
Bastien
8f572aa23b
Merge branch 'master' of code.orgmode.org:bzg/org-mode
2018-04-28 12:11:08 +02:00
Bastien
011f1c6181
Let `org-agenda-set-restriction-lock' remove restriction at point
...
* lisp/org-compat.el (org-speedbar-set-agenda-restriction):
* lisp/org-agenda.el (org-agenda-set-restriction-lock):
If there is an agenda restriction at point, remove it.
* doc/org-manual.org:
* etc/ORG-NEWS: Document the new feature.
2018-04-28 12:09:56 +02:00
Marco Wahl
2e2b083024
org-faces: Complete docstring for org-quote, org-verse
...
* lisp/org-faces.el (org-quote, org-verse): Note dependency on
`org-fontify-quote-and-verse-blocks' in docstring.
* lisp/org-faces.el (org-block): Remove non-existant dependency on
`org-fontify-quote-and-verse-blocks' from docstring.
This change emerged from question
https://emacs.stackexchange.com/questions/41182/change-background-color-of-quote-block/41260
2018-04-28 09:50:51 +02:00
Bastien
26f54050b6
Merge branch 'master' of code.orgmode.org:bzg/org-mode
2018-04-28 08:06:20 +02:00
Bastien
39b9a12bab
org.el: Enhance a few docstrings
...
* lisp/org.el (org-structure-template-alist)
(org--insert-structure-template-mks)
(org--insert-structure-template-unique-keys)
(org-insert-structure-template): Enhance docstrings.
2018-04-28 08:05:54 +02:00
Nicolas Goaziou
eab65c9cf8
Fix colview-related failing tests
...
* lisp/org-compat.el (org-line-number-display-width): New function.
* lisp/org-colview.el (org-columns--display-here-title): Use new
function.
2018-04-28 02:17:44 +02:00
Nicolas Goaziou
031f362352
Fix `org-toggle-tag'
...
* lisp/org.el (org-toggle-tag): Fix weird behavior with inherited tags.
* testing/lisp/test-org.el (test-org/toggle-tag): Add test.
Reported-by: Bernt Hansen <bernt@norang.ca>
<http://lists.gnu.org/r/emacs-orgmode/2018-04/msg00537.html >
2018-04-28 02:10:44 +02:00
Bastien
d48bff37ad
Merge branch 'master' of code.orgmode.org:bzg/org-mode
2018-04-28 00:59:25 +02:00
Bastien
4e97d8621e
org-tempo.el: Enhance a few docstrings
...
* lisp/org-tempo.el (org-tempo, org-tempo-keywords-alist)
(org-tempo-setup, org-tempo-add-templates)
(org-tempo--include-file): Enhance docstrings.
2018-04-28 00:46:25 +02:00
Nicolas Goaziou
9a1f208223
Merge branch 'maint'
2018-04-27 17:13:40 +02:00
Nicolas Goaziou
388254e0d0
Revert "org.el: Fix bug when links contain special characters"
...
This reverts commit b1d084c1ab
.
The fix introduces a bug where `org-edit-special' throws an error on
INCLUDE keywords.
2018-04-27 17:12:18 +02:00
Bastien
b08245a74e
Merge branch 'maint'
2018-04-27 12:32:30 +02:00
Bastien
e8c40b7a07
org.el: Update version keyword to 9.1.12
...
Thanks to Nicolas for reminding me.
2018-04-27 12:31:13 +02:00
Bastien
1a5ca5fa83
Merge branch 'maint'
2018-04-27 03:17:44 +02:00
Bastien
5d0792057d
Fix commit f21fb8a
2018-04-27 03:17:12 +02:00
Bastien
8b6e5d5f2e
Revert "org-agenda.el: Fix bug when getting the warning delay of a deadline"
...
This reverts commit f21fb8ad3b
.
2018-04-27 03:09:28 +02:00
Bastien
67f1a33b45
Merge branch 'master' of code.orgmode.org:bzg/org-mode
2018-04-27 01:27:40 +02:00
Bastien
6cd224e833
Merge branch 'maint' of code.orgmode.org:bzg/org-mode into maint
2018-04-27 01:27:15 +02:00
Bastien
8fd176ee76
Merge branch 'maint' into wip
2018-04-27 01:09:51 +02:00
Marco Wahl
a0a40a4651
org: Remove special whitespace treatment when moving subtree
...
* lisp/org.el (org-move-subtree-down): Remove special whitespace treatment.
* testing/lisp/test-org.el (test-org/drag-element-backward):
Accommodate test.
2018-04-27 01:08:29 +02:00
Bastien
8cdefed80b
org-colview.el: Possibly take linum-offset into account
...
* lisp/org-colview.el (org-columns--display-here-title):
Possibly take linum-offset into account.
Thanks to Eric S Fraga for reporting this.
2018-04-27 00:44:55 +02:00
Bastien
25f99522ad
org-src.el: Don't set `buffer-file-name'
...
* lisp/org-src.el (org-src-mode-configure-edit-buffer): Don't
set `buffer-file-name'.
Thanks to Clément Pit-Claudel for reporting this.
2018-04-27 00:25:15 +02:00
Bastien
f21fb8ad3b
org-agenda.el: Fix bug when getting the warning delay of a deadline
...
* lisp/org-agenda.el (org-agenda-get-deadlines): Fix bug when
getting the warning delay of a deadline.
Thanks to Alex Branham for reporting this.
2018-04-26 22:59:36 +02:00
Bastien
b1d084c1ab
org.el: Fix bug when links contain special characters
...
* lisp/org.el (org-open-link-from-string): Fix bug when links
contain special characters.
Thanks to Joon Ro for reporting this.
2018-04-26 21:52:39 +02:00
Bastien
b64f31abd2
org.el: Tiny enhancements for `org-open-at-point-global'
...
* lisp/org.el (org-open-at-point-global): Use `thing-at-point'
to match possibly more urls and emails. Enhance docstring.
2018-04-26 21:50:37 +02:00
Bastien
d561b3d0b9
org.el: Add org-eww to the list of default modules
...
* lisp/org.el (org-modules): Add org-eww to the list of
default modules.
2018-04-26 21:30:37 +02:00
Bastien
71ad7d19ea
org.el: Add org-tempo to the list of default modules
...
* lisp/org.el (org-modules): Add org-tempo to the list of
default modules.
Template expansion is likely to be expected by many users, as it was
on by default in previous releases. Let's load org-tempo by default
and let users remove it. If needed, we can remove this in future
releases.
2018-04-26 21:29:48 +02:00
Matt Lundin
407014e068
Fix default directory for git-annex checks
...
* lisp/org-attach.el: (org-attach-annex-get-maybe) Ensure shell
command that checks whether a git-annex file exists is called from
within the git-annex repository. Otherwise, it will result in an
error.
2018-04-26 21:17:55 +02:00
Bastien
877617d467
org-agenda: Act on the current entry if there is no mark
...
* lisp/org-agenda.el (org-agenda-bulk-action): When there is
no mark, act on the agenda entry at point.
Thanks to Marco Wahl for suggesting this.
2018-04-26 21:12:20 +02:00
Bastien
f80f7ed98b
org-clock.el: New option :tags to insert tags in clock reports
...
* lisp/org-clock.el (org-clocktable-defaults)
(org-clocktable-write-default, org-clock-get-table-data):
Rename :tags to :match and use :tags to insert a column with
the headline's tags.
Thanks to Raymond Zeitler for suggesting this.
2018-04-26 20:55:27 +02:00
Bastien
2742211ec6
org-agenda.el: Fix bug when keyboard-quitting the match prompt
...
* lisp/org-agenda.el (org-tags-view): Don't leave an empty
*Org agenda* buffer when keyboard-quitting the match prompt.
Thanks to Xu Chunyang for reporting this.
2018-04-26 18:44:58 +02:00
Allen Li
8944b578b8
Remove agenda-archives even with buffer restriction
...
* lisp/org-agenda.el (org-search-view): Remove agenda-archives even
with buffer restriction.
2018-04-26 16:12:39 +02:00
Bastien
b8d0498a0e
org-inlinetask.el: Tiny formatting and rephrasing fixes
2018-04-26 15:51:18 +02:00
Nicolas Goaziou
60483fbfc3
Merge branch 'maint'
2018-04-26 14:18:07 +02:00
Nicolas Goaziou
e2e5495239
Fix "(wrong-number-of-arguments max 0)" with fast tag selection
...
* lisp/org.el (org-fast-tag-selection): Fix
"(wrong-number-of-arguments max 0)" error when setting tag and no
tag is defined.
2018-04-26 14:16:17 +02:00
Nicolas Goaziou
ea6825cf1f
Improve docstring
...
* lisp/org.el (org-set-tags-command): Improve docstring.
2018-04-26 13:52:19 +02:00
Bastien
886ab9c766
Modify syntax entry for < and > globally
...
* lisp/org.el (org-mode): Let < and > be recognized as opening
and ending characters.
These characters are typically used in timestamps where it is useful
to use C-M-f and C-M-b to manipulate them.
2018-04-26 11:29:30 +02:00
Bastien
5a0162097a
org.el (org-mode): Don't modify syntax entry for "@" globally
...
* lisp/org.el (org-mode): Don't modify syntax entry for "@" globally.
This syntax entry dates from commit fe939ecb
when it was used to allow
"@" in tags. Now "@" is a word constituent in tags, not anywhere.
2018-04-26 11:26:18 +02:00
Bastien
2ea09c9ad7
Merge branch 'master' of code.orgmode.org:bzg/org-mode
2018-04-26 09:57:05 +02:00
Bastien
23a4a1c99b
Merge branch 'maint'
2018-04-26 09:56:55 +02:00
Bastien
4323db60c5
Fix typo in docstring
...
* lisp/org-eww.el (org-eww-copy-for-org-mode): Fix typo in docstring.
Thanks to Xu Chunyang <mail@xuchunyang.me> for reporting this.
2018-04-26 09:56:45 +02:00
Nicolas Goaziou
2056b60aae
Fix merge with maint
...
Re-introduce commit "Fix multiple tag selection" (f1b43fe9e
).
2018-04-26 02:44:23 +02:00
Nicolas Goaziou
8a90b34aa6
Fix error when setting more than one tag
...
* lisp/org.el (org-set-tags-command): Fix type of history argument in
`completing-read'.
2018-04-26 02:30:09 +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
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
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
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
Kyle Meyer
be8f76cbe9
Merge branch 'maint'
2018-03-26 00:07:03 -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
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
stardiviner
5ee6c45953
ob-js: support :session for js-comint REPL.
...
* lisp/ob-js.el (org-babel-js-cmd): Add js-comint.
(org-babel-js-initiate-session): Add support for js-comint.
2018-03-25 22:47:03 +02:00
stardiviner
b4e2fed77e
ob-js: support :session for Indium Node REPL.
...
* lisp/ob-js.el (org-babel-js-cmd): Add "indium".
(org-babel-execute:js): Handle Indium REPL.
2018-03-25 22:41:05 +02:00
stardiviner
1a1e2286ba
ob-js: support :session for skewer-mode REPL.
...
* lisp/ob-js.el (org-babel-js-cmd): Add "skewer-mode".
(org-babel-execute:js):
(org-babel-js-initiate-session): Handle skewer mode.
2018-03-25 22:38:02 +02:00
Nicolas Goaziou
d33e6eae51
org-macro: Refactoring
...
* lisp/org-macro.el (org-macro-initialize-templates): Refactor function.
* testing/lisp/test-org-macro.el (test-org/macro-replace-all): Remove
duplicate tests. Add new test.
2018-03-23 23:40:56 +01:00
Nicolas Goaziou
28977b719c
Merge branch 'maint'
2018-03-23 23:32:00 +01:00
Nicolas Goaziou
143a87e45c
org-macro: Fix infloop when re-defining built-in macros
...
* lisp/org-macro.el (org-macro-initialize-templates): User-defined
macros have higher precedence than built-in macros.
Reported-by: Eric S Fraga <esflists@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00413.html >
2018-03-23 23:30:06 +01:00
Kyle Meyer
2ddb26f95d
Merge branch 'maint'
2018-03-22 09:26:49 -04:00
Kyle Meyer
fa15abe6e8
Update version keyword
...
As of fffd300ef
(Update version keyword, 2018-02-24), this should be
bumped with each release.
2018-03-22 09:18:32 -04:00
Bastien
366d80a6f2
Merge branch 'maint'
2018-03-22 02:28:02 +01:00
Bastien
a9139d9976
lisp/org-list.el: Enhance error message
...
* lisp/org-list.el (org-list-indent-item-generic): Use
`user-error' and enhance the error message.
2018-03-22 02:22:15 +01:00
Nicolas Goaziou
6713c2792f
Merge branch 'maint'
2018-03-21 12:52:43 +01:00
Nicolas Goaziou
b5a90a7ab5
Silence byte-compiler
2018-03-21 12:52:19 +01:00
Nicolas Goaziou
4a631383dd
Remove unused regexp
...
* lisp/org.el (org-log-drawer-start-re):
(org-log-drawer-end-re)
(org-log-drawer-re): Remove variables.
2018-03-21 12:49:41 +01:00
Bastien
f0958d559c
Merge branch 'maint'
2018-03-21 02:13:21 +01:00
Martin Kampas
894ec00e9f
org.el: Fix recursion stop condition when expanding tags
...
* lisp/org.el (org-expand-tags): Fix recursion stop condition.
See http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00228.html
TINYCHANGE
2018-03-21 02:12:42 +01:00
Bastien
27d0c469c0
Merge branch 'maint'
2018-03-21 01:58:25 +01:00
Bastien
e28a5a66ad
org.el: Enhance `org-tag-add-to-alist' and use it more
...
* lisp/org.el (org-tag-add-to-alist): Check against the car of
the ("tag") or ("tag" . ?k) element.
(org-global-tags-completion-table, org-make-tags-matcher)
(org-set-tags, org-change-tag-in-region)
(org-agenda-prepare-buffers): Use `org-tag-add-to-alist'.
2018-03-21 01:57:45 +01:00
Matt Lundin
393b98ae8e
Include buffer tags in global tags completion
...
* lisp/org.el: (org-global-tags-completion-table): Return all tags,
including tags in the buffer.
This fixes a bug that caused buffer tags to be excluded if user
configured tags either via `org-tag-alist' or the #+TAGS keyword.
2018-03-21 00:56:25 +01:00
Bastien
a402419716
Merge branch 'maint'
2018-03-20 17:23:29 +01:00
Bastien
b0cca9656d
org.el: Fix bug when adding persistent tags
...
* lisp/org.el (org-tag-add-to-alist): New function.
(org-set-regexps-and-options): Use the new function to only
append persistent tags if they are not already in the tags
alist.
2018-03-20 17:23:18 +01:00
Bastien
f18823b80a
Merge branch 'maint'
2018-03-20 14:58:40 +01:00
Bastien
b7f350f7ef
org.el: Fix bug when building tags groups
...
* lisp/org.el (org-tag-alist-to-groups): Fix bug.
2018-03-20 14:58:20 +01:00
Bastien
8548dfa33f
Merge branch 'maint'
2018-03-20 12:38:31 +01:00
Bastien
b2d3dbabf7
org-capture.el: Fix docstring
...
* lisp/org-capture.el (org-capture-templates-contexts): Fix docstring.
2018-03-20 12:38:24 +01:00
Nicolas Goaziou
f6b74a5649
Remove `org-context-p'
...
* lisp/org.el (org-context-p): Remove function.
The function is not used anywhere, and is deprecated
`org-element-at-point'.
2018-03-20 09:34:26 +01:00
Sebastian Reuße
1af7f303d5
Guard against empty headings when sorting
...
* org.el (org-sort-entries): Guard against empty headings when sorting
alphabetically, numerically.
Due to how ‘org-complex-heading-regexp’ is defined, the title capture group
currently returns nil in empty headings, which we don’t want to pass on to
‘org-sort-remove-invisible’.
2018-03-20 09:25:14 +01:00
Nicolas Goaziou
55d807f348
Merge branch 'maint'
2018-03-20 00:02:26 +01:00
Vladimir Panteleev
02b1574ea9
ob-table: Mention passing ranges as lists in org-sbe's documentation
...
* ob-table.el (org-sbe): Add documentation note.
2018-03-20 00:01:13 +01:00
Vladimir Panteleev
c9d617b322
ob-table: Fix org-sbe's handling of list arguments
...
* ob-table.el (org-sbe): Add an explicit case for handling list
arguments. This avoids doing the wrong thing (%s-formatting a list,
thus losing syntax like double-quotes). This enables passing org-table
ranges through org-sbe in a simple and correct manner.
* test-ob-table.el: Add test.
2018-03-20 00:01:09 +01:00
Vladimir Panteleev
5b59e16c9e
ob-table: Fix org-sbe's handling of quotes in cell values
...
* ob-table.el (org-sbe): org-sbe did the wrong thing when given a
reference to a cell containing quotes or backslashes, because it would
simply wrap any $-prefixed value in quotes, without any escaping. Fix
this by using "%S" (instead of "\"%s\"").
* test-ob-table.el: Add test.
2018-03-20 00:01:05 +01:00
Nicolas Goaziou
beeb4bf23f
ox: Fix regression in INCLUDE keywords
...
* lisp/ox.el (org-export--prepare-file-contents): Activate Org mode in
temporary buffer so all regexps are set. Also, be more strict when
updating links, i.e., do not bother if both includer and includee
belong to the same directory, or if there's no includer at all.
Eventually, only update links within lines specifications, if any.
* testing/lisp/test-ox.el (test-org/expand-include/links): Add tests.
Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00394.html >
2018-03-19 23:48:38 +01:00
Nicolas Goaziou
0de3f78c28
Merge branch 'maint'
2018-03-18 21:27:19 +01:00
Nicolas Goaziou
e1f1acbbfb
Improve docstring for `org-time-stamp-inactive'
...
* lisp/org.el (org-time-stamp-inactive): Improve docstring.
2018-03-18 21:26:42 +01:00
Daniel Gomez
d81a1d088c
Fix file links when using #+INCLUDE
2018-03-18 16:09:55 +01:00
Nicolas Goaziou
594b2dbae8
Merge branch 'maint'
2018-03-17 14:57:25 +01:00
Nicolas Goaziou
ea4cb14883
Fix `org-set-tags-to'.
...
* lisp/org.el (org-set-tags-to): Do not throw an error on empty
headlines.
* testing/lisp/test-org.el (test-org/set-tags): Move test.
(test-org/set-tags-to): New test.
Reported-by: Adrian Bradd <a.bradd@columbia.edu>
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00210.html >
2018-03-17 14:56:49 +01:00
Nicolas Goaziou
5aaf3dfc7e
Move `org-heading-delete-metadata' into "org-list.el"
...
* lisp/org.el (org-heading-delete-metadata): Move to...
* lisp/org-list.el (org-list--delete-metadata): ... here. Refactor
code.
(org-toggle-item): Use new function.
* testing/lisp/test-org-list.el (test-org-list/toggle-item): Add test.
At the moment, this function is only used internally in "org-list.el",
so it belongs there.
Also refrain from removing log or clock drawers, because they may not
contain all clocks or notes anyway. Besides, the information they
contain may still make sense in a plain list.
2018-03-17 11:49:16 +01:00
stardiviner
00938bc98b
org-src: New option for `org-src-window-setup'.
...
org-src.el: (org-src-window-setup) support open edit src window below.
TINYCHANGE
2018-03-17 08:11:24 +01:00
Pierre Téchoueyres
bd0b691716
ob-sql.el: Improve Oracle connection and usage for ob-sql.
...
* lisp/ob-sql.el (org-babel-sql-dbstring-oracle): Permit to omit host
and port to allow use of alias defined in Oracle's TNSNAMES files.
This now allow two way calling it :
<user>/<password>@<host>:<port>/<database ID>
or
<user>/<password>@<database alias>
2018-03-16 23:01:58 +01:00
Pierre Téchoueyres
0edf344e2a
ob-sql.el: Improve Oracle connection and usage for ob-sql.
...
* lisp/ob-sql.el (org-babel-sql-dbstring-oracle): Don't use empty
args. This allows use of alias defined in Oracle's TNSNAMES files.
(org-babel-execute:sql): Don't feed lines with trailing spaces. This
also improve speed for retrieving data.
2018-03-14 14:30:51 +01:00
Nicolas Goaziou
bc7b24d0d0
ob-core: Silence byte-compiler
2018-03-13 09:29:50 +01:00
Nicolas Goaziou
96ae324ed1
org-compat: Silence byte-compiler
...
* lisp/org-compat.el (fboundp): Silence byte-compiler.
2018-03-13 09:28:24 +01:00
Nicolas Goaziou
409a62e5c9
Move some string functions to "org-macs.el"
...
* lisp/org.el (org-string<):
(org-string<=):
(org-string>=):
(org-string>):
(org-string<>): Move to...
* lisp/org-macs.el: ... here.
2018-03-13 09:26:53 +01:00
Sebastian Reuße
88bf8aef28
org-table-sort-lines: Fix case-sensitive sorting
...
* org-table.el (org-table-sort-lines): Fix case sensitive sorting,
improve docstring.
* test-org-table.el (test-org-table/sort-lines): Enforce C locale when
testing alphabetic sorting.
‘sort-subr’ ignores ‘sort-fold-case’ when a predicate is provided. To
correctly handle case-sensitivity, we now bake it into the predicate.
Since we are now sorting according to the user’s locale, WITH-CASE
will not make a difference in most instances, since most locales
always sort case-insensitively (cf. how GNU sort ignores the ‘-f’
switch). We now mention this in the function docstring.
In order to meaningfully test case-sensitive sorting, we now enforce
the C locale in the respective unit test.
2018-03-13 09:09:54 +01:00
Sebastian Reuße
8e9518a3b0
Fix string-collate-lessp shim
...
* org-compat.el (org-string-collate-lessp): When shimming
string-collate-lessp, accept the same arguments as in the unshimmed
case.
2018-03-13 09:09:48 +01:00
Sebastian Reuße
0d6ee386a1
Fix alphabetic string matching operators
...
* org.el (org-string<): Add.
(org-op-to-function): Use it.
(org-string> etc.): Use collated comparison.
Cf. commit 551d2f1fe
.
2018-03-13 09:09:32 +01:00
Sebastian Reuße
e64ff15f67
Fix alphabetic sorting for tables, plain lists
...
* org-table.el (org-table-sort-lines): Use collated sorting.
* org-list.el (org-sort-list): Use collated sorting.
Cf. commit 551d2f1fe
.
2018-03-13 09:09:07 +01:00
Nicolas Goaziou
0de818964d
Merge branch 'maint'
2018-03-11 19:22:25 +01:00
Nicolas Goaziou
2f587d496f
org-capture: Prevent spurious blank line during capture
...
* lisp/org-capture.el (org-capture-place-entry): Prevent spurious
blank line during capture.
Reported-by: Luke <mideniko1234-org@yahoo.co.uk>
<http://lists.gnu.org/r/emacs-orgmode/2018-03/msg00075.html >
2018-03-11 19:21:29 +01:00
Bastien
69e674f518
Merge branch 'maint'
2018-03-10 22:29:38 +01:00
Glenn Morris
04f06958ab
Backport commit 16faff6a4 from Emacs
...
; * lisp/org/org-table.el: Replace obsolete alias in comment.
16faff6a46f28b4db2e9b91e52b27404303f3197
Glenn Morris
Fri Mar 9 12:43:21 2018 -0500
2018-03-09 23:41:47 -05:00
Kyle Meyer
f74f55cc75
Merge branch 'maint'
2018-03-07 22:07:42 -05:00
Paul Eggert
9ac80ede5e
Backport commit f2caf08ca from Emacs
...
; Spelling fixes
f2caf08ca625f64c7eeea8dfa8f65a5b1bac58e2
Paul Eggert
Sun Mar 4 17:10:34 2018 -0800
2018-03-07 22:07:25 -05:00