all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ryo Furue <furue@hawaii.edu>
Cc: bug-gnu-emacs@gnu.org, 4709@emacsbugs.donarmstrong.com
Subject: bug#4709: 23.1; keyboard-translate not working with emacs daemon
Date: Wed, 14 Oct 2009 23:34:15 -0400	[thread overview]
Message-ID: <jwvd44p49st.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <20091014.110719.209373463.furue@hawaii.edu> (Ryo Furue's message of "Wed, 14 Oct 2009 11:07:19 -1000 (HST)")

> | AFAIK, you cannot set it globally.
> Then, could we make it a request for a new feature?

Sure.

> We could even say that the keyboard-translate functionality
> is partially broken because it sometimes works and sometimes
> doesn't (Please recall my example).

To tell you the truth, it's the first time I hear of this feature being
actually used.  So that should give you the kind of priority this
feature request will "enjoy".  And of course it gets worse because of
the discussion below.

> | Still, I wonder: why would you want to set such a mapping
> | everywhere?
> I'm not sure if I understand your question. . . .  If you want
> a keyboard translation, you'd want it everywhere consistently,
> wouldn't you?
> In this particular case, I want C-h to delete the character
> before the cursor anywhere and everywhere (when deleting
> characters makes sense, that is.

But do you really also want C-x C-h to invoke the command bound
to C-x C-? 

> You don't want to delete characters on a webpage displayed by
> a webbrowser, for example).  That's natural for a person like me who
> instinctively types C-h to delete.

> I used to use
>  (global-set-key "\C-h" 'delete-backward-char)

That seems closer to what you want, yes.  But admittedly, C-h is
hardwired at many places, so you'd have to "fix" them one by one as you
bump into them.

> So, I think keyboard-translate is the cleanest,
> once-and-for-all solution, if it works globally.

Have you tried key-translation-map (which is global)?
I have never understand the existence of both key-translation-map and
keyboard-translate-table.


        Stefan






  reply	other threads:[~2009-10-15  3:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 20:37 bug#4709: 23.1; keyboard-translate not working with emacs daemon Ryo Furue
2009-10-14 13:25 ` Stefan Monnier
2009-10-14 21:07   ` Ryo Furue
2009-10-15  3:34     ` Stefan Monnier [this message]
2009-10-15  7:34       ` Ryo Furue
2009-10-15 15:22         ` Stefan Monnier
2009-10-15 18:26           ` Ryo Furue
2009-10-15 20:28             ` Stefan Monnier
2009-10-17  0:55               ` Ryo Furue
2009-10-17  2:22                 ` Stefan Monnier
2009-10-17  3:19                   ` Glenn Morris

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=jwvd44p49st.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=4709@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=furue@hawaii.edu \
    /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.