[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: x-display-pixel-width/height inconsistency
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: x-display-pixel-width/height inconsistency |
Date: |
Sun, 28 Apr 2013 10:48:18 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Sat, 27 Apr 2013 14:13:46 +0900, YAMAMOTO Mitsuharu <address@hidden>
>>>>> said:
> What would the preferred format for rectangles be? The patch uses
> the format that geometry-related functions (such as
> x-parse-geometry) are using, but it might look a bit awkward for
> this purpose because of quoting "+" for possibly negative
> coordinates for positions.
I adopted the geometry format `((left . (+ XOFFSET)) (top . (+
YOFFSET)) (width . WIDTH) (height . HEIGHT))' because I thought a
simple format like `(XOFFSET YOFFSET WIDTH HEIGHT)' might make Lisp
codes that use this primitive more cryptic (`caddr' or `nth 2' for
getting the WIDTH part). On second thought, the `pcase' macro could
remedy this. So the simple format might be better.
YAMAMOTO Mitsuharu
address@hidden
Re: x-display-pixel-width/height inconsistency,
YAMAMOTO Mitsuharu <=