[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/xelb 1cea22d 20/42: Provide a way to disable auto-paddi
From: |
Chris Feng |
Subject: |
[elpa] externals/xelb 1cea22d 20/42: Provide a way to disable auto-padding |
Date: |
Thu, 17 Sep 2015 23:16:44 +0000 |
branch: externals/xelb
commit 1cea22d26295f089139233907a97248451d5fe92
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
Provide a way to disable auto-padding
The auto-padding feature need to be disabled for at least XIM. Perhaps it's
better to insert auto-padding fields with code generator directly.
---
xcb-types.el | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/xcb-types.el b/xcb-types.el
index 3fd06bf..b3eecdb 100644
--- a/xcb-types.el
+++ b/xcb-types.el
@@ -293,7 +293,8 @@ Consider let-bind it rather than change its global value.")
(defclass xcb:-struct ()
((~lsb :initarg :~lsb
:initform (symbol-value 'xcb:lsb) ;see `eieio-default-eval-maybe'
- :type xcb:-ignore))
+ :type xcb:-ignore)
+ (~auto-padding :initarg :~auto-padding :initform t :type xcb:-ignore))
:documentation "Struct type.")
(cl-defmethod xcb:marshal ((obj xcb:-struct))
@@ -350,7 +351,7 @@ The optional POS argument indicates current byte index of
the field (used by
(data (slot-value obj list-name))
implicit-padding)
(unless (integerp list-size)
- (setq implicit-padding t)
+ (when (slot-value obj '~auto-padding) (setq implicit-padding t))
(setq list-size (eval list-size `((obj . ,obj))))
(unless list-size
(setq list-size (length data)))) ;list-size can be nil
@@ -467,7 +468,7 @@ and the second the consumed length."
(list-size (plist-get initform 'size))
implicit-padding)
(unless (integerp list-size)
- (setq implicit-padding t)
+ (when (slot-value obj '~auto-padding) (setq implicit-padding t))
(setq list-size (eval list-size `((obj . ,obj) (ctx . ,ctx)))))
(cl-assert (integerp list-size))
(pcase list-type
- [elpa] externals/xelb c042d3f 08/42: Provide more verbose message when connection failed or auth required, (continued)
- [elpa] externals/xelb c042d3f 08/42: Provide more verbose message when connection failed or auth required, Chris Feng, 2015/09/17
- [elpa] externals/xelb 6a7bccc 09/42: Disable concurrency of events, Chris Feng, 2015/09/17
- [elpa] externals/xelb 11005f2 10/42: Fix ch11ng/exwm#16 (cursor size not matching), Chris Feng, 2015/09/17
- [elpa] externals/xelb cd67b51 11/42: Set the `display` slot of `xcb:connection` in `xcb:connect-to-socket`, Chris Feng, 2015/09/17
- [elpa] externals/xelb 23cb30b 12/42: Fix an emacsclient bug, Chris Feng, 2015/09/17
- [elpa] externals/xelb 946d3ed 14/42: Fix keyboard mapping update problem, Chris Feng, 2015/09/17
- [elpa] externals/xelb 76246b4 13/42: Check `length` slot in `xcb:icccm:-GetProperty~reply`, Chris Feng, 2015/09/17
- [elpa] externals/xelb bf39d9b 15/42: allow key mappings without mode switch or NumLock keys, Chris Feng, 2015/09/17
- [elpa] externals/xelb 518b17a 16/42: Merge branch 'pipcet-no-num-lock', Chris Feng, 2015/09/17
- [elpa] externals/xelb 4e42bf2 04/42: Cleanup code, Chris Feng, 2015/09/17
- [elpa] externals/xelb 1cea22d 20/42: Provide a way to disable auto-padding,
Chris Feng <=
- [elpa] externals/xelb 247d6d2 17/42: Make the manipulation of message cache more robust, Chris Feng, 2015/09/17
- [elpa] externals/xelb 677623a 19/42: Disable auto-padding for xcb-xim, Chris Feng, 2015/09/17
- [elpa] externals/xelb 7c194e7 21/42: Don't assume key events are numbers; they can be symbols., Chris Feng, 2015/09/17
- [elpa] externals/xelb f465091 22/42: It's valid for WM_NORMAL_HINTS responses only to have 15 words., Chris Feng, 2015/09/17
- [elpa] externals/xelb aaddcd9 18/42: Add implicit paddings after variable-length <list>, Chris Feng, 2015/09/17
- [elpa] externals/xelb e153829 23/42: Merge pull request #2 from pipcet/shift-keypad-fix, Chris Feng, 2015/09/17
- [elpa] externals/xelb 520120a 24/42: Merge pull request #3 from pipcet/ignore-missing-values, Chris Feng, 2015/09/17
- [elpa] externals/xelb 1e20b20 26/42: Adjust to unmarshalling API changes., Chris Feng, 2015/09/17
- [elpa] externals/xelb ad845df 28/42: Merge pull request #4 from pipcet/data-offset, Chris Feng, 2015/09/17
- [elpa] externals/xelb 1ab5bb9 29/42: Fix a typo in 32-bit version `xcb:-unpack-u4-lsb`, Chris Feng, 2015/09/17