From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: `C-b' is backward-char, `left' is left-char - why? Date: Fri, 03 Jun 2011 10:13:50 +0300 Message-ID: <83r57be6a9.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1307085250 12210 80.91.229.12 (3 Jun 2011 07:14:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Jun 2011 07:14:10 +0000 (UTC) Cc: andrewjmoreton@gmail.com, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 03 09:14:06 2011 Return-path: Envelope-to: ged-emacs-devel@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 1QSOa4-0006no-LJ for ged-emacs-devel@m.gmane.org; Fri, 03 Jun 2011 09:14:04 +0200 Original-Received: from localhost ([::1]:43682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSOa3-0007Wx-DF for ged-emacs-devel@m.gmane.org; Fri, 03 Jun 2011 03:14:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSOZj-0007WT-GL for emacs-devel@gnu.org; Fri, 03 Jun 2011 03:13:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSOZh-00005r-9T for emacs-devel@gnu.org; Fri, 03 Jun 2011 03:13:43 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:43307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSOZg-00005Q-SW for emacs-devel@gnu.org; Fri, 03 Jun 2011 03:13:41 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LM700G00D4SSI00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Fri, 03 Jun 2011 10:13:39 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.223.140]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LM700G1VDEPRI40@a-mtaout23.012.net.il>; Fri, 03 Jun 2011 10:13:39 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140110 Archived-At: > From: Kenichi Handa > Date: Fri, 03 Jun 2011 09:47:59 +0900 > Cc: emacs-devel@gnu.org > > In article , Andy Moreton writes: > > > So for forward-char, movement of point is always N characters forward in > > the buffer. The effect on the screen position must be considered as a > > sequence of single character movements in the buffer, each of which may > > move the screen position left or right (depending on the bidirectional > > context). > > > Is that more accurate ? > > I'm not sure we should make the docstring more complex by > mentioning about composition, but when forward-char is used > interactively (i.e. by typing C-f), the resulting buffer > position is changed more than one character if the character > at point is composed with the following few characters. I know about this, but is that really part of forward-char? I rather thought that the main command loop advances point in these cases. It also does that when we enter a portion of text that is intangible, e.g. covered by display strings or by invisible text property. Aren't composed characters handled the same way? If not, where does forward-char do what you describe?