[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dynamic prompt
From: |
Barry Margolin |
Subject: |
Re: dynamic prompt |
Date: |
Sat, 05 May 2012 22:37:13 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <jwvzk9m13ms.fsf-monnier+gnu.emacs.help@gnu.org>,
Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> > I'd like to have a prompt that shows the number of characters entered
> > in the response
>
> > Prompt (3): bla
> > Prompt (7): bla bla
>
> > Is that in any way possible?
>
> Of course: the prompt is normal text present in the (mini)buffer, which
> itself is a perfectly normal buffer (tho displayed in a special
> (mini)window) and you can edit it like any other buffer text.
I suspect he wants the character count to be updated automatically.
Seems like he needs to enable a hook when he goes into the mini-buffer,
that modifies the prompt after each command.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***