[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ampc f632ac3ece 080/111: * ampc.el (ampc-pad, ampc-set-
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ampc f632ac3ece 080/111: * ampc.el (ampc-pad, ampc-set-tab-offsets): Use incf rather than setf/+. |
Date: |
Tue, 20 Feb 2024 18:16:42 -0500 (EST) |
branch: externals/ampc
commit f632ac3ece816e2fbdbe4a473a645503f3f1efc6
Author: Christopher Schmidt <christopher@ch.ristopher.com>
Commit: Christopher Schmidt <christopher@ch.ristopher.com>
* ampc.el (ampc-pad, ampc-set-tab-offsets): Use incf rather than setf/+.
---
ampc.el | 32 +++++++++++++++-----------------
1 file changed, 15 insertions(+), 17 deletions(-)
diff --git a/ampc.el b/ampc.el
index 045bab0bb0..04c5d829c1 100644
--- a/ampc.el
+++ b/ampc.el
@@ -908,8 +908,8 @@ all the time!"
and do (incf current-offset)
end
concat tab
- do (setf current-offset (+ current-offset (length tab))
- first nil)))
+ do (incf current-offset (length tab))
+ (setf first nil)))
(defun ampc-update-header ()
(setf header-line-format
@@ -1496,27 +1496,25 @@ all the time!"
(&rest properties &aux (min 2) (optional-padding 0))
(loop for (title . props) in properties
for min- = (plist-get props :min)
- do (setf min (+ min (or (plist-get props :width) min-)))
+ do (incf min (or (plist-get props :width) min-))
when min-
- do (setf optional-padding (+ optional-padding
- (- (plist-get props :max) min-)))
+ do (incf optional-padding (- (plist-get props :max) min-))
end)
(setf ampc-tab-offsets nil)
(loop for (title . props) in properties
with offset = 2
do (add-to-list 'ampc-tab-offsets offset t)
- (setf offset
- (+ offset (or (plist-get props :width)
- (let ((min- (plist-get props :min))
- (max (plist-get props :max)))
- (if (>= min (window-width))
- min-
- (min max
- (+ min-
- (floor (* (/ (float (- max min-))
- optional-padding)
- (- (window-width)
- min))))))))))))
+ (incf offset (or (plist-get props :width)
+ (let ((min- (plist-get props :min))
+ (max (plist-get props :max)))
+ (if (>= min (window-width))
+ min-
+ (min max
+ (+ min-
+ (floor (* (/ (float (- max min-))
+ optional-padding)
+ (- (window-width)
+ min)))))))))))
(defun* ampc-configure-frame-1 (split &aux (split-type (car split)))
(if (member split-type '(vertical horizontal))
- [elpa] externals/ampc eed50af5a8 024/111: Cache internal database to avoid repeating rebuilding., (continued)
- [elpa] externals/ampc eed50af5a8 024/111: Cache internal database to avoid repeating rebuilding., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 9a8177fed5 028/111: Move ampc-align-point to the internal code section., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 997c473e86 030/111: Add link to the mpd webpage., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc ed2d1181a2 032/111: Use symbols rather than strings in ampc-status., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 702dd7cd41 037/111: Add new keywords., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 749cac46bc 052/111: * ampc.el (ampc-mode-map): Add suspend menu item., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 5516a10f63 064/111: * ampc.el (ampc-with-buffer): Remove unnecessary identification by tag., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 8458cea92e 075/111: * ampc.el (ampc-yield): Use incf rather than setf/1+., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 12e56e3e62 076/111: * ampc.el (ampc-configure-frame-1): Minor simplification., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 5e16d05c5c 065/111: * ampc.el: Take window width into account when computing tabular cell widths., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc f632ac3ece 080/111: * ampc.el (ampc-pad, ampc-set-tab-offsets): Use incf rather than setf/+.,
Stefan Monnier <=
- [elpa] externals/ampc 70dbe1918f 085/111: * Move file local lexical binding specification to first line. Workaround, Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 62764ad47a 095/111: * ampc.el (ampc-send-command-impl): Only send commands if the connection live., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 11216543fb 097/111: * ampc.el (ampc-handle-status): Run ampc-status-changed-hook., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc ea1a2267d9 100/111: * ampc: Sync to version 0.2., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 120a515820 015/111: ampc is (hopefully) a part of GNU Emacs., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 683f02ed7c 003/111: Remove autoload for ampc-quit., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 097424e63e 005/111: Simplify ampc-toggle-*., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc 8df5fd0ff3 010/111: Fix indentation in source code., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc d465fe978e 013/111: Add version tag., Stefan Monnier, 2024/02/20
- [elpa] externals/ampc d27ffb2415 016/111: * ampc: New package., Stefan Monnier, 2024/02/20