From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: "... the window start at a meaningless point within a line." Date: Mon, 19 Oct 2015 12:02:23 +0000 Message-ID: <20151019120222.GE2438@acm.fritz.box> References: <83twpp51xz.fsf@gnu.org> <20151017115738.GA2522@acm.fritz.box> <83oafx4qsb.fsf@gnu.org> <83lhb14o6e.fsf@gnu.org> <20151018145356.GC1639@acm.fritz.box> <83k2qkhxx3.fsf@gnu.org> <20151019104507.GC2438@acm.fritz.box> <83d1wbgm95.fsf@gnu.org> <20151019112425.GD2438@acm.fritz.box> <83a8rfgkqx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1445256073 15522 80.91.229.3 (19 Oct 2015 12:01:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 12:01:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 19 14:01:02 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zo97b-0003aW-QB for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 14:00:59 +0200 Original-Received: from localhost ([::1]:38749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zo97a-0000uR-VQ for ged-emacs-devel@m.gmane.org; Mon, 19 Oct 2015 08:00:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zo97R-0000uG-Ti for emacs-devel@gnu.org; Mon, 19 Oct 2015 08:00:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zo97N-0003bh-JJ for emacs-devel@gnu.org; Mon, 19 Oct 2015 08:00:49 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:35693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zo97N-0003bI-5Z for emacs-devel@gnu.org; Mon, 19 Oct 2015 08:00:45 -0400 Original-Received: (qmail 18966 invoked by uid 3782); 19 Oct 2015 12:00:43 -0000 Original-Received: from acm.muc.de (p5B14604F.dip0.t-ipconnect.de [91.20.96.79]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 19 Oct 2015 14:00:43 +0200 Original-Received: (qmail 3597 invoked by uid 1000); 19 Oct 2015 12:02:23 -0000 Content-Disposition: inline In-Reply-To: <83a8rfgkqx.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 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:192077 Archived-At: Hello, Eli. On Mon, Oct 19, 2015 at 02:28:54PM +0300, Eli Zaretskii wrote: > > Date: Mon, 19 Oct 2015 11:24:25 +0000 > > Cc: emacs-devel@gnu.org > > From: Alan Mackenzie > > > > I think I'd prefer to have the "actual" BOLs at the LHS. But the > > symbols at the left are still useful for discussion about a scenario. > If you insist. But then please make them consistent: there's no need > to start with B, then go to A, then to C, then to C2 (what happened to > C1?), etc. :-) They're not that consistent, are they? "B" and "A" were the xdisp BOLs "B"efore and "A"fter WS. "C" was for "C"ommon lines. I must have been starting counting at 1 when the next symbol was "C2". But I think, for discussion, it's useful to maintain the symbolic distinction between actual, xdisp, and common BOLs. How about using WS, A2, A3, ... for actual BOLs, X0, X1, X2, ... for xdisp bols, and C1, C2, ... for the common ones? So we'd end up with this: 8. nlines = 3: X0------------------------------ WS----X1------------------------------ A2----X2------------------------------\n ^ C1------------------------------------ C2------------------------------------\n it C3------------------------------------ T That leaves the possibility of X-1, X-2 when we need to go backwards from WS, and also the possibility of A0, A-1 for actual BOLs before WS, though I'm not sure what that might mean. > > Here, point starts between L1 and A2, our target BOL is C3 (3 actual > > BOLs after L1) and Fvertical_motion puts `it' at C2 (3 xdisp BOLs after > > A). > I don't understand why "T" is always at bol. It can be any column. I'm only really looking at the problem of getting to the correct beginning of line. Moving to a specific column (with a cons argument to vertical-motion) seems to be less of a problem. That seems to work OK. (By the way, have you tried the code at all?) -- Alan Mackenzie (Nuremberg, Germany).