unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <turnbull@sk.tsukuba.ac.jp>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: 1580@debbugs.gnu.org, jidanni@jidanni.org, emacs-devel@gnu.org
Subject: bug#1580: zap-to-char too raw, or document
Date: Sun, 17 Jul 2011 09:23:21 +0900	[thread overview]
Message-ID: <87ipr1sqkm.fsf__36420.0275661007$1310863418$gmane$org@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <m3fwm62iiw.fsf@quimbies.gnus.org>

Lars Magne Ingebrigtsen writes:

 > Should there be an interactive spec that allows reading one character,
 > but allows input methods?  Or does that make no sense?

Yes, there should be such a spec.  Personally, I would expect "c" to
be that spec.  This does make sense both conceptually and
implementation-wise because input methods conceptually operate as a
"preedit" stage.  And of course if your input method is implemented in
the OS rather than Emacs you already can input non-ASCII characters to
the "c" interactive spec.

However, many input methods can return non-trivial strings (in
Japanese it's quite common to compose whole sentences in the input
method before the input method returns any characters), and IIRC the
XIM spec explicitly says a string is returned.  In cases of phonetic
input methods for Asian languages, it is often convenient to convert a
whole word then delete unneeded characters to get a specific
character.  My recommendation would be for "c" to read either a
character or a string, characters being used directly, and otherwise
extracting the first character from the string read.  An empty string
would be an error.







  parent reply	other threads:[~2011-07-17  0:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-14 15:28 bug#1580: zap-to-char too raw, or document jidanni
2011-07-10 14:26 ` Lars Magne Ingebrigtsen
2011-07-16 18:21   ` Lars Magne Ingebrigtsen
     [not found]   ` <m3fwm62iiw.fsf@quimbies.gnus.org>
2011-07-17  0:23     ` Stephen J. Turnbull [this message]
2011-07-20 15:02     ` Chong Yidong
     [not found]       ` <m3pql4ww74.fsf@quimbies.gnus.org>
2011-07-21 16:19         ` Chong Yidong
2011-07-21 19:16         ` Glenn Morris
     [not found]         ` <l9wrfb30lz.fsf@fencepost.gnu.org>
2011-07-31 15:33           ` Lars Magne Ingebrigtsen
     [not found]           ` <m3pqkqea7k.fsf@stories.gnus.org>
2012-04-10  2:24             ` Lars Magne Ingebrigtsen
2011-07-10 19:37 ` jidanni

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='87ipr1sqkm.fsf__36420.0275661007$1310863418$gmane$org@uwakimon.sk.tsukuba.ac.jp' \
    --to=turnbull@sk.tsukuba.ac.jp \
    --cc=1580@debbugs.gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jidanni@jidanni.org \
    --cc=larsi@gnus.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).