From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.bugs Subject: bug#1580: zap-to-char too raw, or document Date: Sun, 17 Jul 2011 09:23:21 +0900 Message-ID: <87ipr1sqkm.fsf__36420.0275661007$1310863418$gmane$org@uwakimon.sk.tsukuba.ac.jp> References: <87myeydbea.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: dough.gmane.org 1310863418 18667 80.91.229.12 (17 Jul 2011 00:43:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 00:43:38 +0000 (UTC) Cc: 1580@debbugs.gnu.org, jidanni@jidanni.org, emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 17 02:43:34 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QiFSH-0008Ga-Gi for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Jul 2011 02:43:33 +0200 Original-Received: from localhost ([::1]:44002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiFSG-0005sY-I4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jul 2011 20:43:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiFEH-0004Fa-HQ for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 20:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QiFEG-0002lG-FB for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 20:29:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QiFEG-0002lC-CT for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2011 20:29:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QiFEE-0008Sn-VC; Sat, 16 Jul 2011 20:29:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Stephen J. Turnbull" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Jul 2011 00:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 1580-submit@debbugs.gnu.org id=B1580.131086254032524 (code B ref 1580); Sun, 17 Jul 2011 00:29:02 +0000 Original-Received: (at 1580) by debbugs.gnu.org; 17 Jul 2011 00:29:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiFEB-0008SW-7q for submit@debbugs.gnu.org; Sat, 16 Jul 2011 20:28:59 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QiF8j-0008Kr-N6 for 1580@debbugs.gnu.org; Sat, 16 Jul 2011 20:23:22 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 7F4463FA06BD; Sun, 17 Jul 2011 09:23:15 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 6723E1A28A2; Sun, 17 Jul 2011 09:23:21 +0900 (JST) In-Reply-To: X-Mailer: VM 8.1.93a under 21.5 (beta31) "ginger" cd1f8c4e81cd XEmacs Lucid (x86_64-unknown-linux) X-Mailman-Approved-At: Sat, 16 Jul 2011 20:28:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 16 Jul 2011 20:29:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sat, 16 Jul 2011 20:43:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49301 Archived-At: 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.