From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug#7234: 24.0.50; strange message after text-scale-adjust Date: Tue, 19 Oct 2010 12:26:55 -0400 Message-ID: References: <87mxqbu1ii.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287506596 19486 80.91.229.12 (19 Oct 2010 16:43:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Oct 2010 16:43:16 +0000 (UTC) Cc: miles@gnu.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 19 18:43:15 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8FHO-0008QI-6J for ged-emacs-devel@m.gmane.org; Tue, 19 Oct 2010 18:43:14 +0200 Original-Received: from localhost ([127.0.0.1]:38648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8FHM-0005y4-DJ for ged-emacs-devel@m.gmane.org; Tue, 19 Oct 2010 12:43:12 -0400 Original-Received: from [140.186.70.92] (port=50993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8FAP-0000ZJ-9U for emacs-devel@gnu.org; Tue, 19 Oct 2010 12:36:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8F3F-0008Ju-Bp for emacs-devel@gnu.org; Tue, 19 Oct 2010 12:30:14 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:43912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8F1g-0007r0-1m; Tue, 19 Oct 2010 12:27:00 -0400 Original-Received: from faina.iro.umontreal.ca (vpn-132-204-232-65.acd.umontreal.ca [132.204.232.65]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o9JGQuTg029448; Tue, 19 Oct 2010 12:26:56 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id DD314B4007; Tue, 19 Oct 2010 12:26:55 -0400 (EDT) In-Reply-To: (Kenichi Handa's message of "Tue, 19 Oct 2010 09:37:18 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3653=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131842 Archived-At: >> > It would be better that read-event call in >> > text-scale-adjust has some prompt: >> > e.g. (read-event "+,-,0 for further adjustment: ") >> Agreed. > Shall I install that change, or do you have a better prompt > string, or should we wait for your alternative > implementation? Go ahead with your change. It's not directly related to my alternative implementation anyway and that implementation is still work in progress. >> > For non-interactive use, you should probably also be using >> > `text-scale-set' or `text-scale-increase' instead. >> BTW, I've been playing around with an alternative implementation for >> such things. The reason is that the use of >> read-event/read-char/read-key has surprising side-effects: in those >> cases I'm concerned with, the user expects that the command is already >> finished and the behavior is somewhat consistent with that expectation, >> but not completely: indeed typing "any" key sequence (except for a few >> special ones) runs the usual corresponding command, but OTOH >> post-command-hook and friends aren't run when expected. > I think the situation is similar to isearch. How does > isearch solve it? isearch uses an overlay map (overriding-terminal-local-map) rather than read-key/event/char. > With that, how to show the prompt? You'd do it with `message'. Stefan