Merge: 0.4.3

This commit is contained in:
Adam Porter 2020-03-14 14:08:53 -05:00
commit 5bc4a4a825
3 changed files with 77 additions and 54 deletions

View file

@ -412,6 +412,11 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience
*Changed* *Changed*
+ Binding to refresh search/view buffers changed to =r=. + Binding to refresh search/view buffers changed to =r=.
** 0.4.3
*Fixed*
+ When =org-ql-view-refresh= is called, ensure the buffer is an Org QL View buffer.
** 0.4.2 ** 0.4.2
*Fixed* *Fixed*

View file

@ -315,6 +315,8 @@ TYPE may be `ts', `ts-active', `ts-inactive', `clocked', or
If PROMPT is non-nil (interactively, with prefix), prompt to If PROMPT is non-nil (interactively, with prefix), prompt to
update search arguments." update search arguments."
(interactive "P") (interactive "P")
(unless (eq major-mode 'org-ql-view-mode)
(user-error "Not an Org QL View buffer"))
(let* ((current-line (buffer-substring-no-properties (line-beginning-position) (line-end-position))) (let* ((current-line (buffer-substring-no-properties (line-beginning-position) (line-end-position)))
(old-pos (point)) (old-pos (point))
(defaults (list org-ql-view-buffers-files (defaults (list org-ql-view-buffers-files
@ -372,6 +374,10 @@ update search arguments."
;;;; Functions ;;;; Functions
(define-derived-mode org-ql-view-mode org-agenda-mode "Org QL View"
"Major mode for `org-ql-view' buffers."
(setf buffer-read-only t))
(defun org-ql-view--list-buffer () (defun org-ql-view--list-buffer ()
"Return view list buffer." "Return view list buffer."
(with-current-buffer (get-buffer-create "*Org QL View List*") (with-current-buffer (get-buffer-create "*Org QL View List*")
@ -493,9 +499,8 @@ with human-readable strings."
If NAME is non-nil, return buffer by that name instead of using If NAME is non-nil, return buffer by that name instead of using
default buffer." default buffer."
(with-current-buffer (get-buffer-create (or name (concat org-ql-view-buffer-name-prefix "*"))) (with-current-buffer (get-buffer-create (or name (concat org-ql-view-buffer-name-prefix "*")))
(unless (eq major-mode 'org-agenda-mode) (unless (eq major-mode 'org-ql-view-mode)
(org-agenda-mode) (org-ql-view-mode))
(setf buffer-read-only t))
(current-buffer))) (current-buffer)))
(defun org-ql-view--format-relative-date (difference) (defun org-ql-view--format-relative-date (difference)

View file

@ -64,6 +64,7 @@ Functions / Macros
Changelog Changelog
* 0.5-pre: 05-pre. * 0.5-pre: 05-pre.
* 0.4.3: 043.
* 0.4.2: 042. * 0.4.2: 042.
* 0.4.1: 041. * 0.4.1: 041.
* 0.4: 04. * 0.4: 04.
@ -719,6 +720,7 @@ releases.
* Menu: * Menu:
* 0.5-pre: 05-pre. * 0.5-pre: 05-pre.
* 0.4.3: 043.
* 0.4.2: 042. * 0.4.2: 042.
* 0.4.1: 041. * 0.4.1: 041.
* 0.4: 04. * 0.4: 04.
@ -732,7 +734,7 @@ releases.
* 0.1: 01. * 0.1: 01.
 
File: README.info, Node: 05-pre, Next: 042, Up: Changelog File: README.info, Node: 05-pre, Next: 043, Up: Changelog
5.1 0.5-pre 5.1 0.5-pre
=========== ===========
@ -748,9 +750,19 @@ File: README.info, Node: 05-pre, Next: 042, Up: Changelog
• Binding to refresh search/view buffers changed to r. • Binding to refresh search/view buffers changed to r.
 
File: README.info, Node: 042, Next: 041, Prev: 05-pre, Up: Changelog File: README.info, Node: 043, Next: 042, Prev: 05-pre, Up: Changelog
5.2 0.4.2 5.2 0.4.3
=========
*Fixed*
• When org-ql-view-refresh is called, ensure the buffer is an Org QL
View buffer.

File: README.info, Node: 042, Next: 041, Prev: 043, Up: Changelog
5.3 0.4.2
========= =========
*Fixed* *Fixed*
@ -759,7 +771,7 @@ File: README.info, Node: 042, Next: 041, Prev: 05-pre, Up: Changelog
 
File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog
5.3 0.4.1 5.4 0.4.1
========= =========
*Fixed* *Fixed*
@ -769,7 +781,7 @@ File: README.info, Node: 041, Next: 04, Prev: 042, Up: Changelog
 
File: README.info, Node: 04, Next: 032, Prev: 041, Up: Changelog File: README.info, Node: 04, Next: 032, Prev: 041, Up: Changelog
5.4 0.4 5.5 0.4
======= =======
_Note:_ The next release, 0.5, may include changes which will require _Note:_ The next release, 0.5, may include changes which will require
@ -850,7 +862,7 @@ as they will be pushed to the master branch when ready.
 
File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog
5.5 0.3.2 5.6 0.3.2
========= =========
*Fixed* *Fixed*
@ -863,7 +875,7 @@ File: README.info, Node: 032, Next: 031, Prev: 04, Up: Changelog
 
File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog
5.6 0.3.1 5.7 0.3.1
========= =========
*Fixed* *Fixed*
@ -873,7 +885,7 @@ File: README.info, Node: 031, Next: 03, Prev: 032, Up: Changelog
 
File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog
5.7 0.3 5.8 0.3
======= =======
*Added* *Added*
@ -938,7 +950,7 @@ File: README.info, Node: 03, Next: 023, Prev: 031, Up: Changelog
 
File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog
5.8 0.2.3 5.9 0.2.3
========= =========
*Fixed* *Fixed*
@ -948,8 +960,8 @@ File: README.info, Node: 023, Next: 022, Prev: 03, Up: Changelog
 
File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog
5.9 0.2.2 5.10 0.2.2
========= ==========
*Fixed* *Fixed*
• (deadline auto) selector matched entries whose deadlines had a • (deadline auto) selector matched entries whose deadlines had a
@ -959,7 +971,7 @@ File: README.info, Node: 022, Next: 021, Prev: 023, Up: Changelog
 
File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog
5.10 0.2.1 5.11 0.2.1
========== ==========
*Fixed* *Fixed*
@ -969,7 +981,7 @@ File: README.info, Node: 021, Next: 02, Prev: 022, Up: Changelog
 
File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog
5.11 0.2 5.12 0.2
======== ========
*Added* *Added*
@ -1052,7 +1064,7 @@ File: README.info, Node: 02, Next: 01, Prev: 021, Up: Changelog
 
File: README.info, Node: 01, Prev: 02, Up: Changelog File: README.info, Node: 01, Prev: 02, Up: Changelog
5.12 0.1 5.13 0.1
======== ========
First tagged release. First tagged release.
@ -1110,43 +1122,44 @@ GPLv3
 
Tag Table: Tag Table:
Node: Top225 Node: Top225
Node: Contents1452 Node: Contents1467
Node: Screenshots1575 Node: Screenshots1590
Node: Installation1693 Node: Installation1708
Node: Quelpa2331 Node: Quelpa2346
Node: Usage2774 Node: Usage2789
Node: Commands3123 Node: Commands3138
Node: org-ql-search3596 Node: org-ql-search3611
Node: helm-org-ql5310 Node: helm-org-ql5325
Node: org-ql-view5722 Node: org-ql-view5737
Node: org-ql-view-sidebar6222 Node: org-ql-view-sidebar6237
Node: org-ql-view-recent-items6578 Node: org-ql-view-recent-items6593
Node: org-ql-sparse-tree7062 Node: org-ql-sparse-tree7077
Node: Queries7862 Node: Queries7877
Node: Non-sexp query syntax8770 Node: Non-sexp query syntax8785
Node: General predicates10477 Node: General predicates10492
Node: Ancestor/descendant predicates15692 Node: Ancestor/descendant predicates15707
Node: Date/time predicates16820 Node: Date/time predicates16835
Node: Functions / Macros19475 Node: Functions / Macros19490
Node: Agenda-like views19708 Node: Agenda-like views19723
Node: Listing / acting-on results21113 Node: Listing / acting-on results21128
Node: Changelog25715 Node: Changelog25730
Node: 05-pre26294 Node: 05-pre26324
Node: 04226658 Node: 04326688
Node: 04126820 Node: 04226886
Node: 0427059 Node: 04127045
Node: 03230990 Node: 0427284
Node: 03131367 Node: 03231215
Node: 0331562 Node: 03131592
Node: 02334535 Node: 0331787
Node: 02234761 Node: 02334760
Node: 02135027 Node: 02234986
Node: 0235226 Node: 02135254
Node: 0139261 Node: 0235453
Node: Notes39362 Node: 0139488
Node: Comparison with Org Agenda searches39524 Node: Notes39589
Node: org-sidebar40396 Node: Comparison with Org Agenda searches39751
Node: License40675 Node: org-sidebar40623
Node: License40902
 
End Tag Table End Tag Table