[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/visual-fill-column 7c479f1a1c 098/137: Use `(selected-wind
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/visual-fill-column 7c479f1a1c 098/137: Use `(selected-window)' instead of `(get-buffer-window (current-buffer))'. |
Date: |
Sun, 2 Jan 2022 22:59:15 -0500 (EST) |
branch: elpa/visual-fill-column
commit 7c479f1a1c9de142aed02c72a8dc955834bc2ef0
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>
Use `(selected-window)' instead of `(get-buffer-window (current-buffer))'.
---
visual-fill-column.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/visual-fill-column.el b/visual-fill-column.el
index 9e0261f1ef..bc3fa724ed 100644
--- a/visual-fill-column.el
+++ b/visual-fill-column.el
@@ -203,7 +203,7 @@ area plus the margins, but excluding the fringes, scroll
bar and
right divider. WINDOW defaults to the selected window. The
return value is scaled to account for `text-scale-mode-amount'
and `text-scale-mode-step'."
- (or window (setq window (get-buffer-window (current-buffer))))
+ (or window (setq window (selected-window)))
(let* ((margins (window-margins window))
(buffer (window-buffer window))
(scale (if (and (boundp 'text-scale-mode-step)
- [nongnu] elpa/visual-fill-column db89c32b4d 059/137: Update copyright statement to 2018., (continued)
- [nongnu] elpa/visual-fill-column db89c32b4d 059/137: Update copyright statement to 2018., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column d3f64e7206 050/137: Update README, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column c0e5ec8f88 052/137: Fix potentially serious typos in license, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 606d86e38c 060/137: Update doc string of `turn-on-visual-fill-column-mode'., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column dd6f1e0cf2 084/137: Resize screenshots., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 14e841218d 083/137: Add text introducing screenshots to the README., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 48a3690b01 091/137: Add more bindings for mouse events in the margins., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 2048a0ce91 089/137: turn-on-visual-fill-column-mode: Do not depend on `visual-line-mode`., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 7ca18f37af 092/137: Rewrap comment., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 598bc992f0 093/137: Update Emacs dependency to 25.1., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 7c479f1a1c 098/137: Use `(selected-window)' instead of `(get-buffer-window (current-buffer))'.,
ELPA Syncer <=
- [nongnu] elpa/visual-fill-column e73f99e09f 104/137: Fix the values of `visual-fill-column-inhibit-sensible-window-split`., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 0c410828e0 101/137: Use `window-configuration-change-hook' in Emacs 27 as well., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column f833fb94ff 095/137: Use the window's previous margins as minimum margins., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column ff329c5ffd 105/137: Merge branch 'devel', ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 1da41f73a4 096/137: Use `window-size-change-functions`., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 9258eaf705 100/137: Resurrect `visual-fill-column-split-window'., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column ca98d4bb93 112/137: Revert "Make `visual-fill-column-offset` buffer-local.", ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 043867c469 108/137: Fix comment., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 5f5d816b5c 106/137: Correctly take width of line numbers into account., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 26cf5171ca 110/137: Make `visual-fill-column-offset` buffer-local., ELPA Syncer, 2022/01/02