[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/workroom 1a0dd6b17d 65/74: Use format-prompt to format min
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/workroom 1a0dd6b17d 65/74: Use format-prompt to format minibuffer prompts |
Date: |
Sun, 27 Nov 2022 16:03:29 -0500 (EST) |
branch: elpa/workroom
commit 1a0dd6b17d7a3dcb1e4f279a110ede2e652d09c6
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Use format-prompt to format minibuffer prompts
---
workroom.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/workroom.el b/workroom.el
index ba69c0120a..a5519b2eee 100644
--- a/workroom.el
+++ b/workroom.el
@@ -100,6 +100,7 @@
(require 'cl-lib)
(require 'bookmark)
(require 'project)
+(require 'compat)
;;;; User Options.
@@ -550,9 +551,8 @@ Return DEF when input is empty, where DEF is either a
string or nil.
REQUIRE-MATCH and PREDICATE is same as in `completing-read'."
(completing-read
- (concat prompt (when def (format " (default %s)" def)) ": ")
- (mapcar #'workroom-name workroom--rooms) predicate require-match
- nil 'workroom-room-history def))
+ (format-prompt prompt def) (mapcar #'workroom-name workroom--rooms)
+ predicate require-match nil 'workroom-room-history def))
(defun workroom--read-to-switch ( prompt &optional def require-match
predicate)
@@ -577,9 +577,8 @@ Return DEF when input is empty, where DEF is either a
string or nil.
REQUIRE-MATCH and PREDICATE is same as in `completing-read-multiple'."
(completing-read-multiple
- (concat prompt (when def (format " (default %s)" def)) ": ")
- (mapcar #'workroom-name workroom--rooms) predicate require-match
- nil 'workroom-room-history def))
+ (format-prompt prompt def) (mapcar #'workroom-name workroom--rooms)
+ predicate require-match nil 'workroom-room-history def))
(defun workroom--read-view ( room prompt &optional def require-match
predicate)
@@ -594,7 +593,7 @@ REQUIRE-MATCH and PREDICATE is same as in
`completing-read'."
(let ((workroom--view-history (workroom-view-history room)))
(prog1
(completing-read
- (concat prompt (when def (format " (default %s)" def)) ": ")
+ (format-prompt prompt def)
(mapcar #'workroom-view-name (workroom-view-list room))
predicate require-match nil 'workroom-room-history def)
(setf (workroom--room-view-history room)
- [nongnu] elpa/workroom a87110f435 56/74: Clone views correctly, (continued)
- [nongnu] elpa/workroom a87110f435 56/74: Clone views correctly, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom f9d88f211c 68/74: Bump version to 2.2.2, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom eef13afbbf 66/74: Bump version to 2.2.1, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 1d4c134d60 26/74: Add new command workroom-switch-room, some refactoring, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 497c04d666 15/74: Make lighter customizable, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom b28aae7a13 40/74: Add chapter "Project Integration" to manual, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 98d1158ef0 36/74: Fix key binding of "C-d" in command map, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 8e805c716e 51/74: Bump version to 2.0.2, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 64da63c1a9 67/74: Add Compat dependency, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom bb74cce814 60/74: Fix error when a frame is killed, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 1a0dd6b17d 65/74: Use format-prompt to format minibuffer prompts,
ELPA Syncer <=
- [nongnu] elpa/workroom fe38dc8aea 63/74: Bump version to 2.2, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom a82287cd5b 06/74: Add support for dynamic buffer list, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom c38489669e 18/74: Fix the defaults of workroom-switch, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 78f0d5ee9e 38/74: Accept prefix argument in workroom-kill-with-buffers, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom a014990432 28/74: Project integration, some refactoring, update README, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 9e486d8102 30/74: Add new command workroom-kill-with-buffers, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom ba1ca498d8 58/74: Switch to most recent workroom when kill the current workroom, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom c9c22ff707 35/74: Update README, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom ff72e2be15 64/74: Remove the use of undefined function, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 80d9c60ab3 16/74: Fix the keymap issue, ELPA Syncer, 2022/11/27