all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: dynamic prompt
Date: Sat, 05 May 2012 22:37:13 -0400	[thread overview]
Message-ID: <barmar-CB1C5E.22371305052012@news.eternal-september.org> (raw)
In-Reply-To: jwvzk9m13ms.fsf-monnier+gnu.emacs.help@gnu.org

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 ***


  reply	other threads:[~2012-05-06  2:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.608.1336237635.855.help-gnu-emacs@gnu.org>
2012-05-06  1:50 ` dynamic prompt Stefan Monnier
2012-05-06  2:37   ` Barry Margolin [this message]
2012-05-06 14:56     ` Stefan Monnier
2012-05-06 16:02       ` Joe Corneli
2012-05-07  0:32         ` Stefan Monnier
2012-05-07  9:49           ` Joe Corneli
2012-05-05 17:07 Joe Corneli

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=barmar-CB1C5E.22371305052012@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --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.