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

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

Re: How force evaluation of this string's math *before* print?....


From: Jesper Harder
Subject: Re: How force evaluation of this string's math *before* print?....
Date: Wed, 09 Oct 2002 19:06:32 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-redhat-linux-gnu)

seberino@spawar.navy.mil writes:

> On modeline I have this element....
>
> '(:eval "%c + 1")
>
> How can I tell Emacs to evaluate the addition in quotes above??? Right
> now it literally prints "+ 1" all the time rather than adding it to
> column number (%c).

You can do it like this:

   '(:eval (format "%d" (1+ (current-column))))


reply via email to

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