From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: dynamic prompt Date: Sat, 05 May 2012 22:37:13 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1336272017 32386 80.91.229.3 (6 May 2012 02:40:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 May 2012 02:40:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 06 04:40:16 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SQrOQ-0000xH-Cu for geh-help-gnu-emacs@m.gmane.org; Sun, 06 May 2012 04:40:14 +0200 Original-Received: from localhost ([::1]:56433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQrOP-0007rm-Lf for geh-help-gnu-emacs@m.gmane.org; Sat, 05 May 2012 22:40:13 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Injection-Info: barmar.motzarella.org; posting-host="ePtxJaRXJPFeIWBMlKfZaA"; logging-data="5179"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18MNkyraWE7Iky13UeqTct2" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:4NP2KXH03wz5KvvtULc2T/skfik= Original-Xref: usenet.stanford.edu gnu.emacs.help:192322 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84730 Archived-At: In article , Stefan Monnier 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 ***