[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw db5cd237a7 125/146: ; Documentation improvements
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw db5cd237a7 125/146: ; Documentation improvements |
Date: |
Wed, 25 May 2022 02:59:54 -0400 (EDT) |
branch: elpa/swsw
commit db5cd237a7d5b4a953f89e527b1497c13696e2a4
Author: Daniel Semyonov <daniel@dsemy.com>
Commit: Daniel Semyonov <daniel@dsemy.com>
; Documentation improvements
---
swsw.el | 19 ++++++++++---------
swsw.texi | 11 ++++++-----
2 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/swsw.el b/swsw.el
index 57ff2defd8..40afc7d40c 100644
--- a/swsw.el
+++ b/swsw.el
@@ -207,6 +207,8 @@ If set to `lighter', use a mode line lighter."
(set-window-parameter window 'swsw-id id)
(setq swsw-window-count (1+ swsw-window-count))))
+;; This is a separate function only to prevent running `swsw--update'
+;; on any window state change.
(defun swsw--update-frame ()
"Run `swsw--update' if the current frame isn't `swsw--current-frame'.
This check is skipped (and this function does nothing) if `swsw-scope'
@@ -295,8 +297,7 @@ If less than three windows have been assigned an ID, switch
to the
window returned by `next-window'.
Otherwise, window selection allows either choosing a window by its ID
\(switching to it), or using a window manipulation command.
-This command is intended to be used only when simple window switching
-is enabled."
+This command is intended to be used only when swsw mode is enabled."
(declare (modes swsw-mode))
(interactive)
(if (< swsw-window-count 3)
@@ -305,8 +306,7 @@ is enabled."
(defun swsw-select-minibuffer ()
"Select the active minibuffer window (if it exists).
-This command is intended to be used only when simple window switching
-is enabled."
+This command is intended to be used only when swsw mode is enabled."
(declare (modes swsw-mode))
(interactive)
(let ((window (active-minibuffer-window)))
@@ -319,8 +319,7 @@ If less than three windows have been assigned an ID, delete
the window
returned by `next-window'.
Otherwise, window deletion allows either choosing a window by its ID
\(deleting it), or using a window manipulation command.
-This command is intended to be used only when simple window switching
-is enabled."
+This command is intended to be used only when swsw mode is enabled."
(declare (modes swsw-mode))
(interactive)
(if (< swsw-window-count 3)
@@ -340,13 +339,15 @@ is enabled."
This key map is set as the parent of `swsw--id-map' during ID
selection.")
-;;;; Simple window switching mode:
+;;;; swsw mode:
;;;###autoload
(define-minor-mode swsw-mode
- "Minor mode for simple window management.
+ "Toggle swsw mode.
-When the mode is active, `other-window' is remapped to `swsw-select'.
+When swsw mode is enabled, window IDs are shown as mode line
+lighters of the form \"<ID>\" (by default), and `other-window' is remapped to
+`swsw-select' (a command used to select windows according to their ID).
The following key bindings are available after starting window
selection:
diff --git a/swsw.texi b/swsw.texi
index 9781fb9510..2fdf721913 100644
--- a/swsw.texi
+++ b/swsw.texi
@@ -130,19 +130,20 @@ Install the package:
In order to use any feature of the package, @code{swsw-mode} must be enabled:
-@cindex swsw-mode
@table @asis
+@cindex swsw-mode
@item @kbd{M-x swsw-mode RET}
You can also add @code{(swsw-mode)} to your init file, instead.
@end table
-By default, window IDs are shown as mode line lighters of the
-form @code{<ID>} (@xref{Display functions}), and @code{other-window}
-(@kbd{C-x o}) is remapped to @code{swsw-select}.
+When @code{swsw-mode} is enabled, window IDs are shown as mode line
+lighters of the form @code{<ID>} (by default, @xref{Display
+functions}), and @code{other-window} (@kbd{C-x o}) is remapped to
+@code{swsw-select}.
+@table @asis
@kindex C-x o
@cindex swsw-select
-@table @asis
@item @kbd{C-x o}
Start window selection (@code{swsw-select}).
This command sets a transient key map in which several window
- [nongnu] elpa/swsw a5b25e075f 032/146: Allow setting the scope to the selected frame, (continued)
- [nongnu] elpa/swsw a5b25e075f 032/146: Allow setting the scope to the selected frame, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 082e03382e 033/146: * swsw.el (swsw-select): Ensure 'swsw-after-select-hook' runs., ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 40f7a25f82 047/146: ; Add license information to the title page of the Info node, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 3a9848deac 042/146: Add an Info node for the package, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw c2c579a3c9 061/146: Construct multi-character IDs without pre-computing all possible IDs, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 7d82ffeef4 076/146: ; Small modifications to the NEWS file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 4ceacd0330 132/146: Indicate that some functions are for interactive use only, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw eba70478e0 065/146: Update window information after 'swsw-scope' is customized, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 51fcc776bd 081/146: ; Reorganize swsw.el, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 2f7500636d 098/146: ; Add 'swsw' to .gitignore, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw db5cd237a7 125/146: ; Documentation improvements,
ELPA Syncer <=
- [nongnu] elpa/swsw 6a70afa84f 097/146: ; Documentation fixes, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 384dae5d45 128/146: ; Move local mode declaration to the top of NEWS, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 220c023a2a 088/146: ; Update copyright years, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 73a241cf38 064/146: Ensure 'swsw-id-chars' is set correctly when customized, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 3261f323e9 077/146: ; Bump version to 1.1.2, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw e43021aa7e 112/146: * swsw.el (swsw-format-id): Use 'format-spec' instead of 'format', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw c864e6d524 144/146: ; Add change log for version 2.1.1, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw d7fe615c3f 049/146: ; Fix inconsistency between requirements in swsw.el and swsw-pkg.el, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 74124620af 048/146: ; Add brief usage information to the docstring of 'swsw-mode', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 83eb90586a 051/146: ; Alter comments and docstrings to comply with Emacs' conventions, ELPA Syncer, 2022/05/25