From fc37e3f1460cefe0f396f3f8033372a9d40c6107 Mon Sep 17 00:00:00 2001 From: xeijin Date: Mon, 9 Dec 2019 22:47:00 +0000 Subject: [PATCH] confirmation message for org-ql-view-refresh In keeping with the message displayed by `g` when refreshing an org-agenda buffer - if nothing has changed in an `org-ql` buffer it can sometimes be difficult to determine if the refresh took place at all. --- org-ql-view.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org-ql-view.el b/org-ql-view.el index e7f0329..56e2cd8 100644 --- a/org-ql-view.el +++ b/org-ql-view.el @@ -299,7 +299,10 @@ update search arguments." (goto-char (point-min)) (or (when (search-forward current-line nil t) (beginning-of-line)) - (goto-char old-pos)))) + (goto-char old-pos)) + (message "org-ql: view refreshed%s" + (when org-ql-view-title + (concat ": " (substring-no-properties org-ql-view-title)))))) (defun org-ql-view-save () "Save current `org-ql-search' buffer to `org-ql-views'."