From: seberino@spawar.navy.mil
Cc: help-gnu-emacs@gnu.org
Subject: Re: How add one to column # on modeline (%c) so starts from _1_?
Date: Mon, 7 Oct 2002 10:49:31 -0700 [thread overview]
Message-ID: <20021007104931.A15231@spawar.navy.mil> (raw)
In-Reply-To: <Pine.SUN.3.91.1020926075054.12918J-100000@is>; from eliz@is.elta.co.il on Thu, Sep 26, 2002 at 07:52:58AM +0200
Eli
Thanks for this tip!
I read Emacs Lisp manual on this and followed the example.
After some tweaking I can get eval to print something without
an error by adding following to modeline list....
'(:eval "%c + 1")
The ' and the double quotes are necessary.
The above will print "0 + 1" on the modeline when in the first column.
*****How can I tell Emacs to evaluate the *addition* in quotes rather
than just interpret it as a /string/????
Chris
On Thu, Sep 26, 2002 at 07:52:58AM +0200, Eli Zaretskii wrote:
>
> On Wed, 25 Sep 2002 seberino@spawar.navy.mil wrote:
>
> > %c on modeline gives column number but it
> > starts at 0 which is silly...
> >
> > How add 1 to this so starts at 1???
> >
> > (%c + 1) doesn't do it of course.
>
> Try the (:eval FORM) construct.
>
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
--
_______________________________________
Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2363
49590 Lassing Rd. Rm. A339
San Diego, CA 92152-6147
U.S.A.
Phone: (619) 553-7940
Fax: (619) 553-1269
Email: seberino@spawar.navy.mil
_______________________________________
next prev parent reply other threads:[~2002-10-07 17:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-26 5:35 How add one to column # on modeline (%c) so starts from _1_? seberino
2002-09-26 5:52 ` Eli Zaretskii
2002-10-07 17:49 ` seberino [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-08 9:39 Victor Kirk
2002-10-08 19:33 ` seberino
2002-10-09 14:34 ` ken
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021007104931.A15231@spawar.navy.mil \
--to=seberino@spawar.navy.mil \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.