emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swsw bc734b9937 003/146: Use 'read-char' instead of 'read-


From: ELPA Syncer
Subject: [nongnu] elpa/swsw bc734b9937 003/146: Use 'read-char' instead of 'read-char-from-minibuffer' to read IDs
Date: Wed, 25 May 2022 02:59:36 -0400 (EDT)

branch: elpa/swsw
commit bc734b993752da5a358539fd42ddb7b61484cda6
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>

    Use 'read-char' instead of 'read-char-from-minibuffer' to read IDs
    
    * swsw.el (swsw-select): Use 'read-char' instead of
    'read-char-from-minibuffer'.
    (swsw-id-prompt): Removed as it is no longer used.
---
 swsw.el | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/swsw.el b/swsw.el
index 3c6e280529..817101b697 100644
--- a/swsw.el
+++ b/swsw.el
@@ -40,11 +40,6 @@
   :group 'swsw
   :type '(repeat 'character))
 
-(defcustom swsw-id-prompt "Window: "
-  "Prompt to use when switching windows."
-  :group 'swsw
-  :type '(string))
-
 ;;;; Simple window switching minor mode:
 
 (defvar swsw-id-chars swsw-id-chars-base
@@ -104,7 +99,7 @@ line update for all windows."
 (defun swsw-select (&optional id)
   "Select window by its ID."
   (interactive (unless (< (length swsw-window-list) 3)
-                 (list (read-char-from-minibuffer (format swsw-id-prompt)))))
+                 (list (read-char))))
   (if id
       (let (window)
         (when (setq



reply via email to

[Prev in Thread] Current Thread [Next in Thread]