From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keitaro Miyazaki Newsgroups: gmane.emacs.bugs Subject: bug#7282: 23.2; [PATCH] Improve text composition by Input Methods on MacOSX. Date: Thu, 28 Oct 2010 15:15:54 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=90e6ba6e84b84246f20493a74629 X-Trace: dough.gmane.org 1288248202 16257 80.91.229.12 (28 Oct 2010 06:43:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Oct 2010 06:43:22 +0000 (UTC) Cc: 7282@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 28 08:43:21 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1PBMCk-0005oq-Rs for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Oct 2010 08:43:19 +0200 Original-Received: from localhost ([127.0.0.1]:39500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBMCk-0006w8-8h for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Oct 2010 02:43:18 -0400 Original-Received: from [140.186.70.92] (port=59229 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBMCX-0006si-MD for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2010 02:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBMCW-0000vS-3a for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2010 02:43:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBMCV-0000vN-SO for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2010 02:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PBLiU-0005AF-I6; Thu, 28 Oct 2010 02:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Keitaro Miyazaki Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Oct 2010 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7282 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 7282-submit@debbugs.gnu.org id=B7282.128824630919842 (code B ref 7282); Thu, 28 Oct 2010 06:12:02 +0000 Original-Received: (at 7282) by debbugs.gnu.org; 28 Oct 2010 06:11:49 +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 1PBLiG-00059z-Gx for submit@debbugs.gnu.org; Thu, 28 Oct 2010 02:11:48 -0400 Original-Received: from mail-iw0-f172.google.com ([209.85.214.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBLiE-00059u-6Y for 7282@debbugs.gnu.org; Thu, 28 Oct 2010 02:11:46 -0400 Original-Received: by iwn40 with SMTP id 40so1886582iwn.3 for <7282@debbugs.gnu.org>; Wed, 27 Oct 2010 23:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=nCzeCh4r4j89zQR7/yUk5U0tvhgIAG1uLioo4gm5uHs=; b=amd5xwdHgG7E6c0tCB9gCIwPJW/bT+KOyBF8AScFTK/MTQxPijmA/tFHv6vL3Dcb0S ObvIuigMFuznKgTqwjrMmf8hcGz7zcrCAAeWPDR8RWO3sww7qebox4z3nwkX7nttRoqC 1mJd/G0f7kaaUkTrajnAf2F275CZN8GBQbUXQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Cn0YRGNWxea+IiCZ691nvEqeBcGb/mOsqUpm3RBY7YTdnhbuCWuMJ28idyOzhehESw YJfX7F/IM5050LSG3fKvWVvHeRwXP2/n+tfnXiFxy0YqQO4Qtyx5NS0cRwjcbgmEXO9b lBXSGXX/N2HB/WLj8zdUSF8V8DK0h47wezPQg= Original-Received: by 10.42.243.132 with SMTP id lm4mr8291118icb.177.1288246554412; Wed, 27 Oct 2010 23:15:54 -0700 (PDT) Original-Received: by 10.231.188.226 with HTTP; Wed, 27 Oct 2010 23:15:54 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 28 Oct 2010 02:12:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41188 Archived-At: --90e6ba6e84b84246f20493a74629 Content-Type: text/plain; charset=ISO-8859-1 Do you mean that there are some cases that the number of characters in a string, in other words, the length of a string, is different from the one counted by NSString to the one counted by Emacs? If so, could you show me any example of these cases? > Also, selected range handling is not enough for the following case: Thank you for pointing that out. I made an attached patch which may fix this problem by moving cursor in composing text. Apply this patch after applying my previous patch. --90e6ba6e84b84246f20493a74629 Content-Type: application/octet-stream; name="im-cursor-position-fix.diff" Content-Disposition: attachment; filename="im-cursor-position-fix.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gft8lxc02 LS0tIGVtYWNzLTIzLjIvbGlzcC90ZXJtL25zLXdpbi5lbC5vcmlnCTIwMTAtMTAtMjggMTQ6NTc6 NTAuMDAwMDAwMDAwICswOTAwCisrKyBlbWFjcy0yMy4yL2xpc3AvdGVybS9ucy13aW4uZWwJMjAx MC0xMC0yOCAxNDo1ODoxOC4wMDAwMDAwMDAgKzA5MDAKQEAgLTYxMSw3ICs2MTEsOCBAQCBUaGUg b3ZlcmxheSBpcyBhc3NpZ25lZCB0aGUgZmFjZSBgbnMtd29yCiAgICAgICAgICAgICAgICAgICAg ICAgIChtYWtlLW92ZXJsYXkgKCsgc3RhcnQgKGNhciBucy1yYW5nZS1vZi1hY3RpdmUtY2xhdXNl KSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoKyBzdGFydCAoY2RyIG5z LXJhbmdlLW9mLWFjdGl2ZS1jbGF1c2UpKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIG5pbCB0KSkKLSAgICAgICAgICAgICAgICAgJ2ZhY2UgJ25zLWFjdGl2ZS1jbGF1c2Ut ZmFjZSkpKQorICAgICAgICAgICAgICAgICAnZmFjZSAnbnMtYWN0aXZlLWNsYXVzZS1mYWNlKQor ICAgIChnb3RvLWNoYXIgKCsgc3RhcnQgKGNkciBucy1yYW5nZS1vZi1hY3RpdmUtY2xhdXNlKSkp KSkKIAogKGRlZnVuIG5zLWVjaG8td29ya2luZy10ZXh0ICgpCiAgICJFY2hvIGNvbnRlbnRzIG9m IGBucy13b3JraW5nLXRleHQnIGluIG1lc3NhZ2UgZGlzcGxheSBhcmVhLgo= --90e6ba6e84b84246f20493a74629--