]> git.eshelyaron.com Git - emacs.git/commitdiff
Bind sieve-refresh-scriptlist to 'g' in sieve-mode
authorBjörn Bidar <bjorn.bidar@thaodan.de>
Fri, 31 Jan 2025 01:24:44 +0000 (03:24 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 13 Feb 2025 11:53:32 +0000 (12:53 +0100)
* lisp/net/sieve.el (sieve-manage-mode-map): Bind
`sieve-refersh-scriptlist' to 'g' to refresh buffer.
(sieve-refresh-scriptlist): Highlight in docstring that the function
updates the current sieve buffer.  (Bug#75956)

* doc/misc/sieve.texi (Managing Sieve): Document new keybinding and the
existing `sieve-refresh-scriptlist` function.

(cherry picked from commit 6967587daef027b0f4fd917b5181b43e45c7cb56)

doc/misc/sieve.texi
lisp/net/sieve.el

index 5d4b3b369d762b890f7cf36f5184960ca08cdadb..deadc991173f3d7bcb8c951266b278d60133cf68 100644 (file)
@@ -213,6 +213,12 @@ Bury the Manage Sieve buffer without closing the connection.
 @findex sieve-help
 Displays help in the minibuffer.
 
+@item g
+@kindex g
+@findex sieve-refresh-scriptlist
+Refresh list of scripts found on the currently opened server.
+Update contents of the current sieve buffer.
+
 @item Q
 @kindex Q
 @findex sieve-manage-quit
index df053538edf330aa534d15196b08f36d52f89ad6..7f496df403c2eec95a0b15e84695e2384841ce5f 100644 (file)
@@ -111,6 +111,7 @@ require \"fileinto\";
   ;; various
   "?"      #'sieve-help
   "h"      #'sieve-help
+  "g"      #'sieve-refresh-scriptlist
   ;; activating
   "m"      #'sieve-activate
   "u"      #'sieve-deactivate
@@ -314,7 +315,8 @@ Used to bracket operations which move point in the sieve-buffer."
     (sieve-manage-authenticate)))
 
 (defun sieve-refresh-scriptlist ()
-  "Refresh list of scripts found the currently opened server."
+  "Refresh list of scripts found on the currently opened server.
+Update contents of the current sieve buffer."
   (interactive)
   (with-current-buffer sieve-buffer
     (setq buffer-read-only nil)