diff --git a/README.org b/README.org index e2c08a0..cf4c44a 100644 --- a/README.org +++ b/README.org @@ -412,6 +412,11 @@ Expands into a call to ~org-ql-select~ with the same arguments. For convenience *Changed* + 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 *Fixed* diff --git a/org-ql-view.el b/org-ql-view.el index 9ae7e1e..7bb7312 100644 --- a/org-ql-view.el +++ b/org-ql-view.el @@ -315,6 +315,8 @@ TYPE may be `ts', `ts-active', `ts-inactive', `clocked', or If PROMPT is non-nil (interactively, with prefix), prompt to update search arguments." (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))) (old-pos (point)) (defaults (list org-ql-view-buffers-files @@ -372,6 +374,10 @@ update search arguments." ;;;; 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 () "Return view list buffer." (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 default buffer." (with-current-buffer (get-buffer-create (or name (concat org-ql-view-buffer-name-prefix "*"))) - (unless (eq major-mode 'org-agenda-mode) - (org-agenda-mode) - (setf buffer-read-only t)) + (unless (eq major-mode 'org-ql-view-mode) + (org-ql-view-mode)) (current-buffer))) (defun org-ql-view--format-relative-date (difference) diff --git a/org-ql.info b/org-ql.info index d700130..59feeb4 100644 --- a/org-ql.info +++ b/org-ql.info @@ -64,6 +64,7 @@ Functions / Macros Changelog * 0.5-pre: 05-pre. +* 0.4.3: 043. * 0.4.2: 042. * 0.4.1: 041. * 0.4: 04. @@ -719,6 +720,7 @@ releases. * Menu: * 0.5-pre: 05-pre. +* 0.4.3: 043. * 0.4.2: 042. * 0.4.1: 041. * 0.4: 04. @@ -732,7 +734,7 @@ releases. * 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 =========== @@ -748,9 +750,19 @@ File: README.info, Node: 05-pre, Next: 042, Up: Changelog • 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* @@ -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 -5.3 0.4.1 +5.4 0.4.1 ========= *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 -5.4 0.4 +5.5 0.4 ======= _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 -5.5 0.3.2 +5.6 0.3.2 ========= *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 -5.6 0.3.1 +5.7 0.3.1 ========= *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 -5.7 0.3 +5.8 0.3 ======= *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 -5.8 0.2.3 +5.9 0.2.3 ========= *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 -5.9 0.2.2 -========= +5.10 0.2.2 +========== *Fixed* • (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 -5.10 0.2.1 +5.11 0.2.1 ========== *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 -5.11 0.2 +5.12 0.2 ======== *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 -5.12 0.1 +5.13 0.1 ======== First tagged release. @@ -1110,43 +1122,44 @@ GPLv3  Tag Table: Node: Top225 -Node: Contents1452 -Node: Screenshots1575 -Node: Installation1693 -Node: Quelpa2331 -Node: Usage2774 -Node: Commands3123 -Node: org-ql-search3596 -Node: helm-org-ql5310 -Node: org-ql-view5722 -Node: org-ql-view-sidebar6222 -Node: org-ql-view-recent-items6578 -Node: org-ql-sparse-tree7062 -Node: Queries7862 -Node: Non-sexp query syntax8770 -Node: General predicates10477 -Node: Ancestor/descendant predicates15692 -Node: Date/time predicates16820 -Node: Functions / Macros19475 -Node: Agenda-like views19708 -Node: Listing / acting-on results21113 -Node: Changelog25715 -Node: 05-pre26294 -Node: 04226658 -Node: 04126820 -Node: 0427059 -Node: 03230990 -Node: 03131367 -Node: 0331562 -Node: 02334535 -Node: 02234761 -Node: 02135027 -Node: 0235226 -Node: 0139261 -Node: Notes39362 -Node: Comparison with Org Agenda searches39524 -Node: org-sidebar40396 -Node: License40675 +Node: Contents1467 +Node: Screenshots1590 +Node: Installation1708 +Node: Quelpa2346 +Node: Usage2789 +Node: Commands3138 +Node: org-ql-search3611 +Node: helm-org-ql5325 +Node: org-ql-view5737 +Node: org-ql-view-sidebar6237 +Node: org-ql-view-recent-items6593 +Node: org-ql-sparse-tree7077 +Node: Queries7877 +Node: Non-sexp query syntax8785 +Node: General predicates10492 +Node: Ancestor/descendant predicates15707 +Node: Date/time predicates16835 +Node: Functions / Macros19490 +Node: Agenda-like views19723 +Node: Listing / acting-on results21128 +Node: Changelog25730 +Node: 05-pre26324 +Node: 04326688 +Node: 04226886 +Node: 04127045 +Node: 0427284 +Node: 03231215 +Node: 03131592 +Node: 0331787 +Node: 02334760 +Node: 02234986 +Node: 02135254 +Node: 0235453 +Node: 0139488 +Node: Notes39589 +Node: Comparison with Org Agenda searches39751 +Node: org-sidebar40623 +Node: License40902  End Tag Table