[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/workroom 80d9c60ab3 16/74: Fix the keymap issue
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/workroom 80d9c60ab3 16/74: Fix the keymap issue |
Date: |
Sun, 27 Nov 2022 16:03:18 -0500 (EST) |
branch: elpa/workroom
commit 80d9c60ab311b6a1b06b6b43709cc6320f82ab84
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Fix the keymap issue
---
workroom.el | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/workroom.el b/workroom.el
index 4e045f50f5..ccffebf5d4 100644
--- a/workroom.el
+++ b/workroom.el
@@ -96,6 +96,10 @@ This workroom contains all live buffers of the current Emacs
session.
Workroom-Mode must be reenabled for changes to take effect."
:type 'string)
+(defcustom workroom-default-view-name "main"
+ "Name of the default view."
+ :type 'string)
+
(defcustom workroom-buffer-handler-alist
'((bookmark :encoder workroom--encode-buffer-bookmark
:decoder workroom--decode-buffer-bookmark))
@@ -207,7 +211,6 @@ The value is a mode line terminal like `mode-line-format'."
keymap)
"Keymap containing all useful commands of Workroom.")
-(define-prefix-command 'workroom-command-map)
(define-key workroom-mode-map workroom-command-map-prefix
workroom-command-map)
@@ -634,11 +637,16 @@ name if it doesn't exist, then switch to the workroom."
(when-let ((prev (car (workroom-previous-room-list))))
(workroom-name prev))))
(workroom-current-room))))
- (list room (workroom--read-view-to-switch
- room "Switch to view"
- (when-let ((prev
- (car (workroom-previous-view-list room))))
- (workroom-view-name prev)))))))
+ (when (and (stringp room) (string-empty-p room))
+ (setq room workroom-default-room-name))
+ (let ((view
+ (workroom--read-view-to-switch
+ room "Switch to view"
+ (when-let ((prev (car (workroom-previous-view-list room))))
+ (workroom-view-name prev)))))
+ (when (and (stringp view) (string-empty-p view))
+ (setq view workroom-default-view-name))
+ (list room view)))))
(when (stringp room)
(setq room (workroom-get-create room)))
(when (stringp view)
@@ -953,7 +961,7 @@ When prefix arg is given, don't restrict." fn)
:name workroom-default-room-name
:views (list
(make-workroom-view
- :name workroom--default-view-of-default-room
+ :name workroom-default-view-name
:window-config
(workroom--save-window-config)))
:buffers #'buffer-list
- [nongnu] elpa/workroom 1a0dd6b17d 65/74: Use format-prompt to format minibuffer prompts, (continued)
- [nongnu] elpa/workroom 1a0dd6b17d 65/74: Use format-prompt to format minibuffer prompts, ELPA Syncer, 2022/11/27
- [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 <=
- [nongnu] elpa/workroom 94700152e5 13/74: Lower required Emacs version and elaborate README, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 2b4f883467 43/74: Fix workroom--project-name, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 731404dee1 32/74: Prefix "C-x x" conflicts, switch to "C-x c", ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 4e746fcd34 57/74: Bump version to 2.0.4, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom f695e59165 47/74: Fix member buffer checking in workroom-kill-with-buffers, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 934101a89f 49/74: Fix adding and removing buffer from workroom, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 433f567780 29/74: Integration with IBuffer, Buffer Menu and Electric Buffer List, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom a02bb2a3a6 59/74: Bump version to 2.1, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 8bcfdc96d3 33/74: Fix workroom-kill-with-buffers, add binding for it, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 9fb5cb793e 50/74: Fix buffer add/remove in project buffer manager, ELPA Syncer, 2022/11/27