Skip to content
forked from ch11ng/xelb

Commit e2bccd5

Browse files
authored
Use cl-incf (ch11ng#24)
* xcb.el (xcb:-cache-request), xelb-gen: Use cl-incf.
1 parent f5f336e commit e2bccd5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xcb.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,10 @@ classes of EVENT (since they have the same event number)."
552552
(cache (slot-value obj 'request-cache)))
553553
(when extension-opcode
554554
(setq msg (vconcat (vector extension-opcode) msg))
555-
(setq len (1+ len)))
555+
(cl-incf len))
556556
(when (> 2 (length msg)) ;for short message (e.g. GetInputFocus)
557557
(setq msg (vconcat msg [0]))
558-
(setq len (1+ len)))
558+
(cl-incf len))
559559
(setq msg
560560
(vconcat (substring msg 0 2)
561561
(funcall (if (slot-value request '~lsb) #'xcb:-pack-u2-lsb

xelb-gen

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ an `xelb-auto-padding' attribute."
347347
(expression (xelb-node-subnode i)))
348348
(if expression
349349
(setq value (xelb-parse-expression expression))
350-
(setq value (1+ value)))
350+
(cl-incf value))
351351
;; Omit the rare enums that do not fit in a fixnum in
352352
;; 32-bit Emacs, so that the resulting .el and .elc
353353
;; files are portable to 32-bit Emacs. Admittedly

0 commit comments

Comments
 (0)