[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/workroom 6d159a5566 24/74: Use `string=' to compare workro
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/workroom 6d159a5566 24/74: Use `string=' to compare workroom and view names |
Date: |
Sun, 27 Nov 2022 16:03:26 -0500 (EST) |
branch: elpa/workroom
commit 6d159a5566d5c42131bd318fd703a28f26e245db
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Use `string=' to compare workroom and view names
---
workroom.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/workroom.el b/workroom.el
index 4d38b17a73..5f747d69f9 100644
--- a/workroom.el
+++ b/workroom.el
@@ -33,8 +33,7 @@
;; Each workroom also has its own set of views. Views are just named
;; window configurations. They allow you to switch to another window
-;; configuration without losing your well-planned current window
-;; setup.
+;; configuration without losing your well-planned window setup.
;; You can also bookmark a workroom or all your workrooms to restore
;; them at a later time, possibly in another Emacs session.
@@ -238,7 +237,7 @@ The value is a mode line terminal like `mode-line-format'."
If no such workroom exists, return nil."
(catch 'found
(dolist (room workroom--rooms nil)
- (when (equal name (workroom-name room))
+ (when (string= name (workroom-name room))
(throw 'found room)))))
(defun workroom-get-create (name)
@@ -267,7 +266,7 @@ that."
If no such view exists, return nil."
(catch 'found
(dolist (view (workroom-views room) nil)
- (when (equal name (workroom-view-name view))
+ (when (string= name (workroom-view-name view))
(throw 'found view)))))
(defun workroom-view-get-create (room name)
@@ -574,8 +573,10 @@ PROMPT, DEF, REQUIRE-MATCH and PREDICATE is same as in
`read-buffer'."
;; Restore a single workroom.
(let ((room (workroom--decode (cdr data))))
(when-let ((existing (workroom-get (workroom-name room))))
- (unless (y-or-n-p (format-message "Workroom `%s' already \
-exists, overwrite? " (workroom-name room)))
+ (unless (y-or-n-p
+ (format-message
+ "Workroom `%s' already exists, overwrite? "
+ (workroom-name room)))
(user-error "Workroom `%s' exists" (workroom-name room)))
(workroom-kill existing))
(push room workroom--rooms)))
- [nongnu] elpa/workroom 5def9e5862 73/74: Ignore texinfo.tex while preparing release, (continued)
- [nongnu] elpa/workroom 5def9e5862 73/74: Ignore texinfo.tex while preparing release, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 827dcd2049 55/74: Fix cloning default workroom, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 895b77f7ce 62/74: Some refactoring, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 4dbc8b5822 69/74: Fix code injection to desktop file, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 23ff6f463e 53/74: Don't fail to restore if the workroom project is non-existant, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom a1f5cc9754 52/74: Make the workroom custom group part of tools group, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 3b7b17e2cc 72/74: Bump version to 2.2.4, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom c50e7219a0 07/74: Make README Codeberg compatible, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 31eabf2547 21/74: Add some comments for explaining the code, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 64b465093e 20/74: Make line no more wide than 75 characters, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 6d159a5566 24/74: Use `string=' to compare workroom and view names,
ELPA Syncer <=
- [nongnu] elpa/workroom a4845ad57f 44/74: Don't switch room in workroom-switch if ROOM is current, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 4c4fd7830c 34/74: Add Winner integration, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom e7dc14236e 42/74: Fix out of sync documentation, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 3144324e33 39/74: Add an user manual, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 40acb8c7b8 45/74: O(n) switch-to-buffer instead of O(n^2) in project workrooms, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 13e648f3db 74/74: Add .dir-locals.el, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom add6fb080d 61/74: Bump version to 2.1.1, ELPA Syncer, 2022/11/27
- [nongnu] elpa/workroom 9974fb58a9 41/74: Add new command workroom-bookmark-multiple, ELPA Syncer, 2022/11/27
- [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