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: Changes in frame/window code Date: Sun, 17 Aug 2014 18:13:17 +0300 Message-ID: <83wqa7cfoy.fsf@gnu.org> References: <53CE6A44.1010708@gmx.at> <83tx62hane.fsf@gnu.org> <53D6172A.5010909@gmx.at> <83fvhlhad5.fsf@gnu.org> <53D656BB.3010201@gmx.at> <83egx5h86z.fsf@gnu.org> <53D68806.9080101@gmx.at> <838undgxiu.fsf@gnu.org> <53D76758.2030707@gmx.at> <831tt4h58x.fsf@gnu.org> <83y4vcfoqi.fsf@gnu.org> <53D77BDB.1090500@gmx.at> <83wqawflgj.fsf@gnu.org> <53D7A981.30909@gmx.at> <83lhrctdzr.fsf@gnu.org> <53D7C10C.4010402@gmx.at> <83k36wta5m.fsf@gnu.org> <53D7E6B0.7040504@gmx.at> <83egx4t3nq.fsf@gnu.org> <53D917B5.2050604@gmx.at> <837g2uu80w.fsf@gnu.org> <53D9211C.7010000@gmx.at> <834mxyu5jg.fsf@gnu.org> <53D92D04.3010006@gmx.at> <83zjfqspfw.fsf@gnu.org> <53DA0310.4010706@gmx.at> <53DA15C4.5050006@gmx.at> <83mwbpss6s.fsf@gnu.org> <53DA29EC.3000504@gmx.at> <837g2ssg30.fsf@gnu.org> <53DB6B08.7000305@gmx.at> <834mxws6a0.fsf@gnu.org> <53DBB268.2020909@gmx.at> <831tt0rwyp.fsf@gnu.org> <53EE2CD5.50603@gmx.a> <83tx5demej.fsf@gnu.org> <53EF25F2.9010909@gmx.at> <83iolsekqd.fsf@gnu.org> <53EF609C.2090303@gmx> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1408288443 16887 80.91.229.3 (17 Aug 2014 15:14:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2014 15:14:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 17 17:13:56 2014 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 1XJ29a-0007OF-EV for ged-emacs-devel@m.gmane.org; Sun, 17 Aug 2014 17:13:54 +0200 Original-Received: from localhost ([::1]:39338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ29Z-0002xT-Rl for ged-emacs-devel@m.gmane.org; Sun, 17 Aug 2014 11:13:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ29H-0002we-3r for emacs-devel@gnu.org; Sun, 17 Aug 2014 11:13:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJ29B-00072G-U8 for emacs-devel@gnu.org; Sun, 17 Aug 2014 11:13:35 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:63599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ29B-00072B-Lw for emacs-devel@gnu.org; Sun, 17 Aug 2014 11:13:29 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NAG00G00HVMO000@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 17 Aug 2014 18:13:28 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NAG00GZAIAFD360@a-mtaout22.012.net.il>; Sun, 17 Aug 2014 18:13:27 +0300 (IDT) Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and truncated. In-reply-to: <53EF609C.2090303@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:173728 Archived-At: > Date: Sat, 16 Aug 2014 15:46:04 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org >=20 > (1) When dragging I cannot move the slider entirely to the right an= d > make the first column of R2L lines visible until I release the= mouse > button. I suppose this is due to some off-by-one failure here= but > there might be more to it. I'm not sure this is at all related to R2L lines. I wrote a trivial function which just displays the mouse event, and bound it to clicks on the horizontal scroll bar. When I drag the scroll bar, even in an entirely L2R buffer, I see some strange phenomena: e.g., more often than not, when I drag the bar all the way to the right, releasing the mouse button without moving the mouse reports slightly different coordinates than the ones reported before releasing the mouse. Moreover, many time the 2nd coordinate reported after releasing the mouse is -1. Try it. Maybe it's Windows-specific, I don't know. Btw, it looks like the information returned by mouse events on the horizontal scroll bar is not described anywhere, not even in NEWS. Your use of (cdr (nth 2 start-position)) in scroll-bar-horizontal-drag-1 got my jaw dropped for a few seconds, before I realized it was not the Y coordinate... Also, I don't understand the subtlety of +1 in setting up the scroll info, e.g.: /* Allow nPage to be one larger than nPos so we don't allow to scro= ll an already fully visible buffer. */ si.nPage =3D min (portion, si.nMax) + 1; si.nPos =3D min (position, si.nMax); The comment doesn't correspond to the code, and I couldn't understand what's behind this trick. > (2) Sometimes during dragging the slider starts moving for-/backwar= d in > some erratic fashion. I'm not yet sure whether this is caused= by an > hmargin issue or something else. I could only see this in the very first line of the tutorial. There was an old and very subtle bug in xdisp.c, revealed by set_horizontal_scroll_bar, which caused broken cursor motion in that line. This is now fixed in r117711 on the trunk. If you still see something like that, and it's not related to the few L2R lines in the tutorial, please report a bug with the recipe. > (3) Line 121 (written backwards as) >=20 > =D7=90=D7=9D =D7=94=D7=A1=D7=9E=D7=9F =D7=A0=D7=9E=D7=A6=D7=90 = =D7=91=D7=90=D7=9E=D7=A6=D7=A2 =D7=9E=D7=99=D7=9C=D7=94, M-f =D7=96= =D7=96 =D7=9C=D7=A1=D7=95=D7=A3 =D7=94=D7=9E=D7=99=D7=9C=D7=94. =D7= =90=D7=9D =D7=94=D7=A1=D7=9E=D7=9F =D7=A0=D7=9E=D7=A6=D7=90 =D7=91= =D7=99=D7=9F =D7=A9=D7=AA=D7=99 =D7=9E=D7=9C=D7=99=D7=9D, >=20 > of the tutorial presents a special problem: When I'm repeatedly= doing > `next-line' on the rightmost column before that line and are ab= out > to move to that line I enter some strange sort of loop with the > slider in the center of the scroll bar trying to move back- and > forward. C-g gets me out of it but I can't tell so far why I'm= stuck > there. This is now fixed in r117447 on the release branch. The previous revision fixed bug #18277. > If (2) or (3) are caused by bug#18277 (or a common underlying probl= em) > it should be easier to resolve the remaining issues. They were all separate and completely unrelated problems.