all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: miles@gnu.org, emacs-devel@gnu.org
Subject: Re: bug#7234: 24.0.50; strange message after text-scale-adjust
Date: Thu, 21 Oct 2010 10:21:40 +0900	[thread overview]
Message-ID: <tl7mxq8gx23.fsf@m17n.org> (raw)
In-Reply-To: <jwvpqv4g8r6.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 20 Oct 2010 12:07:49 -0400)

In article <jwvpqv4g8r6.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:

> > Then, what's the pros and cons of using an overlay map and
> > your set-temporary-overlay-map?

> I think isearch would like to use set-temporary-overlay-map.
> To a large extent they are very similar, but using
> overriding-terminal-local-map means that the non-isearch bindings
> (which cause isearch to exit) are not directly available, so isearch as
> to catch them with a default binding (define-key map [t] ...), then
> exit and push the events on unread-command-events for re-execution.

> And unread-command-events is evil because it's hellishly difficult to
> make it behave 100% correctly in all cases where function-key-map,
> input-decode-map, key-translation-map, keyboard-translate-table,
> input-methods, etc... are involved.

I see.  Thank you for the explanation.

>>> > With that, how to show the prompt?
>>> You'd do it with `message'.
> > Doesn't the message disappear when a command in the
> > temporary overlay-map is executed?

> Yes.  So you only get it at the beginning of the lifetime of the
> temporary-overlay-map, or you have to do extra work to also display it
> later on (e.g. with a post-command-hook:

Ummm, a little bit ugly.

> maybe set-temporary-overlay-map should provide such a
> feature itself, so it's encapsulated).

Yes, that is better.

> As I said, set-temporary-overlay-map barely exists now and while it
> solves some problems, it comes with a new set of problems.  I know its
> good sides (the ones that pushed me to try and play with it) but I'm
> only slowly learning the downsides.

I understand it.

---
Kenichi Handa
handa@m17n.org



      reply	other threads:[~2010-10-21  1:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-18  4:09 bug#7234: 24.0.50; strange message after text-scale-adjust Kenichi Handa
2010-10-18  7:16 ` Eli Zaretskii
2010-10-18 10:55   ` Kenichi Handa
     [not found]   ` <mailman.0.1287400359.30531.bug-gnu-emacs@gnu.org>
2010-10-18 12:30     ` Miles Bader
2010-10-18 14:17       ` Stefan Monnier
2010-10-19  0:37         ` Kenichi Handa
2010-10-19 16:26           ` Stefan Monnier
2010-10-20  2:00             ` Kenichi Handa
2010-10-20 16:07               ` Stefan Monnier
2010-10-21  1:21                 ` Kenichi Handa [this message]

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=tl7mxq8gx23.fsf@m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.