Bastien
8f8eac002c
Merge branch 'maint'
2020-02-06 07:39:41 +01:00
Bastien
44e7e34ed3
org-agenda.el: Partially revert 19676dce
...
* lisp/org-agenda.el (org-agenda-show-new-time): Don't use
`org-agenda-previous-line'.
Thanks to Matt Lundin for reporting this.
2020-02-06 07:39:32 +01:00
Bastien
f636cf91b6
New org-refile.el file with refile definitions
...
* lisp/org-refile.el: New file.
* lisp/org.el (org-refile, org-directory)
(org-default-notes-file, org-reverse-note-order)
(org-log-refile, org-refile-targets)
(org-refile-target-verify-function, org-refile-use-cache)
(org-refile-use-outline-path)
(org-outline-path-complete-in-steps)
(org-refile-allow-creating-parent-nodes)
(org-refile-active-region-within-subtree)
(org-refile-target-table, org-refile-cache)
(org-refile-markers, org-refile-marker)
(org-refile-cache-clear, org-refile-cache-check-set)
(org-refile-cache-put, org-refile-cache-get)
(org-outline-path-cache, org-refile-get-targets)
(org--get-outline-path-1, org-get-outline-path)
(org-format-outline-path, org-display-outline-path)
(org-refile-history, org-after-refile-insert-hook)
(org-capture-last-stored-marker, org-refile-keep, org-copy)
(org-refile, org-refile-goto-last-stored)
(org-refile--get-location, org-refile-get-location)
(org-refile-check-position, org-refile-new-child)
(org-olpath-completing-read): Move to org-refile.el.
(org-menu-define): Display Org refile comands only when
'org-refile is featured.
* lisp/org-keys.el (org-refile-copy, org-mode-map): Declare
functions.
* lisp/org-capture.el: Require 'org-refile.
* lisp/org-agenda.el: Require 'org-refile.
2020-02-05 15:34:06 +01:00
Bastien
4e7bd17899
Merge branch 'maint'
2020-02-05 09:10:48 +01:00
Bastien
164d30f5ab
org-agenda.el: Fix call to `recenter'
...
* lisp/org-agenda.el (org-agenda-list): Fix call to `recenter'
when `org-agenda-buffer-name' is not known.
2020-02-05 09:10:40 +01:00
Bastien
524a6102e5
Merge branch 'maint'
2020-02-05 07:51:55 +01:00
Bastien
07e9ad2aa2
org-agenda.el: Fix for `org-agenda-open-link'
...
* lisp/org-agenda.el (org-agenda-open-link): Fix opening links
that moves the point in the link buffer.
Thanks to Ihor Radchenko for reporting this.
2020-02-05 07:51:19 +01:00
Bastien
280e804ffc
Merge branch 'maint'
2020-02-05 00:37:42 +01:00
Bastien
19676dce75
org-agenda.el: Fix `org-agenda-show-new-time'
...
* lisp/org-agenda.el (org-agenda-show-new-time): Fix infinite
loop while trying to show new time in hidden lines.
Thanks to Andrew Hyatt for reporting this.
2020-02-05 00:36:42 +01:00
Bastien
e076ed6e85
Merge branch 'maint'
2020-02-03 21:49:03 +01:00
Bastien
cb19f5c94e
org-agenda.el: Fix `org-agenda-get-blocks'
...
* lisp/org-agenda.el (org-agenda-get-blocks): When both dates
are of the same value, assume this is a time to display for
each date in the range.
Thanks to David Masterson for reporting this.
2020-02-03 21:48:06 +01:00
Bastien
4843030b45
Merge branch 'maint'
2020-02-02 20:08:53 +01:00
Bastien
5c72d60d44
Silent compiler warning
2020-02-02 20:07:18 +01:00
Bastien
9ece54ee64
Merge branch 'maint'
2020-02-02 19:39:40 +01:00
Bastien
a2b69c58f8
org-agenda.el: Add `org-agenda-end-of-line'
...
* lisp/org-agenda.el (org-agenda-mode-map): Remap
'move-end-of-line to 'org-agenda-end-of-line.
(org-agenda-end-of-line): New command.
This fixes this bug: when moving to the end of line, if the next
line is hidden, changing the timestamp of the current headline would
not display the new time. This is also safer when archiving subtrees
and when performing actions on agenda headlines in general.
2020-02-02 19:39:26 +01:00
Bastien
8aa206583b
org-agenda.el: Fix `org-agenda-filter-hide-line'
...
* lisp/org-agenda.el (org-agenda-filter-hide-line):
Temporarily set `buffer-invisibility-spec' to `nil'.
2020-02-02 19:30:25 +01:00
Bastien
f7bb9ec9b3
Merge branch 'maint'
2020-02-02 17:38:37 +01:00
Bastien
efbf96389a
org-agenda.el: Fix display of agenda new time
...
* lisp/org-agenda.el (org-agenda-show-new-time): Compute the
width relatively to the text scale.
2020-02-02 17:38:09 +01:00
Bastien
8651e3ff15
Merge branch 'maint'
2020-02-01 09:45:38 +01:00
Bastien
39c656870c
org-agenda.el: Fix handling of one-time delays
...
* lisp/org-agenda.el (org-agenda-get-scheduled): Fix handling
of one-time delays.
Thanks to hhkg for reporting this.
2020-02-01 09:44:14 +01:00
Bastien
499cff10ef
Merge branch 'maint'
2020-01-31 17:22:01 +01:00
Bastien
04bd110b2b
Small fixes
...
* lisp/ox-odt.el (org-odt--format-timestamp): Fix timestamp
display.
* lisp/org-agenda.el (org-agenda-show-and-scroll-up): Remove
useless code.
2020-01-31 17:21:43 +01:00
Bastien
3d0282ef87
New option `org-archive-subtree-save-file-p'
...
* lisp/org-agenda.el (org-agenda-archive-with): Bind
`org-archive-from-agenda' to `t' when archiving from agenda.
* lisp/org-archive.el (org-archive-subtree-save-file-p): New option.
(org-archive-subtree): Use the new option.
* doc/org-manual.org (Moving a tree to an archive file):
Mention the new option.
Thanks to Russ Allbery for suggesting a similar idea.
2020-01-31 10:42:40 +01:00
Bastien
c9d2f12094
org-agenda.el: Use `user-error'
...
* lisp/org-agenda.el (org-agenda-priority): Use `user-error'.
2020-01-31 08:36:00 +01:00
Bastien
e11f506484
Continue previous commit and document it in etc/ORG-NEWS
...
* lisp/org.el (org-priority-enable-commands)
(org-priority-highest, org-priority-get-priority-function):
Define aliases.
(org-priority): Use `org-priority-show'.
* lisp/org-agenda.el (org-agenda-priority, org-agenda-menu):
Ditto.
2020-01-30 15:16:44 +01:00
Bastien
1de5e80adf
Rename org-x-priority' functions and variables to
org-priority-x'
...
* lisp/org.el (org-priority-enable-commands)
(org-priority-start-cycle-with-default)
(org-set-regexps-and-options, org-sort-entries, org-priority)
(org-get-priority, org-entry-properties)
(org-property-get-allowed-values, org-shiftup, org-shiftdown):
Rename `org-[x]-priority' functions and variables to
`org-priority-[x]'.
* lisp/org-pcomplete.el (org-priority-default)
(org-priority-highest)
(pcomplete/org-mode/file-option/priorities): Ditto.
* lisp/org-mouse.el (org-mouse-get-priority)
(org-mouse-priority-list): Ditto.
* lisp/org-agenda.el (org-agenda-fontify-priorities)
(org-agenda-format-item, org-agenda-priority): Ditto.
* lisp/ox-icalendar.el (org-icalendar--vtodo): Ditto.
* doc/org-manual.org (Priorities, Summary of In-Buffer Settings): Ditto.
* testing/lisp/test-org.el (test-org/set-regexps-and-options)
(test-org/entry-properties): Ditto.
2020-01-30 14:56:38 +01:00
Bastien
7b1077def7
Tiny enhancements to priority handling
...
* lisp/org.el (org-font-lock-add-priority-faces): Use
`org-priority-regexp'.
(org-priority-regexp): Match multiple characters.
* lisp/org-agenda.el (org-agenda-fontify-priorities): Use
`org-priority-regexp'.
This commit paves the way for more flexibility in priority handling.
For example, `org-priority-[up/down]' could deal with priorities as
numbers (e.g. [#1 ]) instead of letters.
2020-01-30 12:05:07 +01:00
Bastien
8c943b8403
org-agenda.el: Don't always display a message when removing filters
...
* lisp/org-agenda.el (org-agenda-filter-remove-all): Only display
a message when called interactively.
2020-01-30 10:24:42 +01:00
Bastien
9fe7dbfd15
org-agenda.el: Small `org-agenda-filter' enhancement
...
* lisp/org-agenda.el (org-agenda-filter): Use existing filters as
the initial prompt input.
2020-01-29 22:12:55 +01:00
Bastien
a7770e6333
Merge branch 'maint'
2020-01-29 21:49:22 +01:00
Bastien
2820c2c4aa
org-agenda.el: Minor fixes
...
* lisp/org-agenda.el (org-agenda-filter): Tiny formatting fix.
(org-agenda-filter-completion-function): Fix docstring typo.
2020-01-29 21:48:58 +01:00
Bastien
0f86a14af3
Silence compiler warning
2020-01-29 15:10:19 +01:00
Bastien
241750b3c2
Use number-to-string' instead of
int-to-string'
...
* lisp/org.el (org-end-of-subtree): Use `number-to-string' instead
of `int-to-string'.
* lisp/org-table.el (org-table-edit-field)
(org-table-fix-formulas, org-table-analyze, orgtbl-make-binding)
(org-table-field-info): Ditto.
* lisp/org-macs.el (org-shorten-string): Ditto.
* lisp/org-agenda.el (org-get-time-of-day): Ditto.
2020-01-28 20:19:24 +01:00
Bastien
e9526b5a79
Enhance C-c C-c in agenda buffers
...
* lisp/org-agenda.el (org-agenda-ctrl-c-ctrl-c): Don't try to
deactivate columns as `org-columns-toggle-or-columns-quit' is
already bound to `C-c C-c' when the column view is active.
* lisp/org.el (org-ctrl-c-ctrl-c): Update docstring.
2020-01-28 12:44:27 +01:00
Marco Wahl
82ebc73b92
agenda: Refactor key defining section towards more consitency
...
Unify spaces and use the function quote.
2020-01-28 09:53:15 +01:00
Marco Wahl
4a43cd983b
agenda: Refactor use uniform key definition
2020-01-28 00:38:51 +01:00
Marco Wahl
45a0fe531c
agenda: C-c C-c deactivates columns
...
* lisp/org-agenda.el (org-agenda-ctrl-c-ctrl-c): New function.
This is to unify and thereby harmonize the behavior of C-c C-c with
regard to Org files and columns.
2020-01-28 00:00:05 +01:00
Bastien
32eba0f0a6
Merge branch 'maint'
2020-01-27 23:41:56 +01:00
Bastien
6d0b866637
org-agenda.el: Fix 1f6bacf88
properly
...
* lisp/org-agenda.el (org-agenda-mode): Make `text-scale-mode' usable
before any call to `org-agenda-redo'.
2020-01-27 18:42:11 +01:00
Bastien
53acdfaa03
Revert "org-agenda.el: don't prevent the use of M-x text-scale-mode RET"
...
This reverts commit 1f6bacf88c
.
2020-01-27 16:10:24 +01:00
Bastien
6f02fa596a
Merge branch 'maint'
2020-01-27 14:55:50 +01:00
Bastien
e982108445
Fix "Maintainer: " entry in the header
...
* lisp/org.el:
* lisp/org-table.el:
* lisp/org-list.el:
* lisp/org-attach.el:
* lisp/org-agenda.el: Fix "Maintainer: " entry in the header.
2020-01-27 14:55:15 +01:00
Bastien
f828a27323
Adding maintainer
...
(Testing post-receive hook.)
2020-01-26 12:07:01 +01:00
Bastien
1f52f8c502
org-agenda.el: Adding maintainer
...
(Testing post-receive hook.)
2020-01-26 12:03:29 +01:00
Nicolas Goaziou
4141355492
Merge branch 'maint'
2020-01-26 09:45:28 +01:00
Bastien
1f6bacf88c
org-agenda.el: don't prevent the use of M-x text-scale-mode RET
...
* lisp/org-agenda.el (org-agenda-mode): Fix bug: don't prevent the
use of M-x text-scale-mode RET.
Before this fix, M-x text-scale-mode RET was only available after
the agenda buffer was redone once. Now it is available immediately.
This fixes commit 00c1184a0
.
2020-01-25 21:01:32 +01:00
Bastien
dc1d4aa12e
Merge branch 'maint'
2020-01-20 16:58:00 +01:00
Bastien
06cf532f47
org-agenda.el: Fix bug when using category filters
...
* lisp/org-agenda.el (org-agenda-filter-make-matcher): Use `or'
for category filters, `and' for other filters.
For example, when using `org-agenda-category-filter-preset' set to
'("+cat1" "+cat2"), using `and' in the filter matcher results in
displaying 0 headline, since no headline can have two categories.
2020-01-20 16:51:36 +01:00
Kyle Meyer
93c11da002
Merge branch 'maint'
2020-01-01 13:39:26 -05:00
Kyle Meyer
ff5fc050d3
Update copyright year to 2020
2020-01-01 13:38:46 -05:00