help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minibuffer tray to display current time and date


From: Stefan Monnier
Subject: Re: Minibuffer tray to display current time and date
Date: Wed, 06 May 2015 08:49:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>                                          `((space :align-to
>                                                   (- right
>                                                      (length ,string)))))

If you look at the documentation for the display property, and more
specifically for the `space' specifications, you'll see that the HPOS
element can be of the form:

       EXPR ::= NUM | (NUM) | UNIT | ELEM | POS | IMAGE | FORM
       NUM  ::= INTEGER | FLOAT | SYMBOL
       UNIT ::= in | mm | cm | width | height
       ELEM ::= left-fringe | right-fringe | left-margin | right-margin
             |  scroll-bar | text
       POS  ::= left | center | right
       FORM ::= (NUM . EXPR) | (OP EXPR ...)
       OP   ::= + | -

So, as you can see, there is no "(length EXP)" form in there.So you need
to use

   ,(length string)

instead of

   (length ,string)


-- Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]