From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Changes in frame/window code Date: Tue, 29 Jul 2014 16:02:41 +0200 Message-ID: <53D7A981.30909@gmx.at> References: <53CE6A44.1010708@gmx.at> <53D4FF76.1060804@gmx.at> <8338dmj1of.fsf@gnu.org> <83wqayhe0o.fsf@gnu.org> <53D542B3.20206@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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1406642599 17981 80.91.229.3 (29 Jul 2014 14:03:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2014 14:03:19 +0000 (UTC) Cc: jan.h.d@swipnet.se, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 29 16:03:12 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 1XC7zi-0001d6-Hk for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 16:03:10 +0200 Original-Received: from localhost ([::1]:45926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC7zi-0004X8-3o for ged-emacs-devel@m.gmane.org; Tue, 29 Jul 2014 10:03:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC7zX-0004Vy-PP for emacs-devel@gnu.org; Tue, 29 Jul 2014 10:03:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XC7zP-00023I-Db for emacs-devel@gnu.org; Tue, 29 Jul 2014 10:02:59 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:61866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC7zP-00023C-42; Tue, 29 Jul 2014 10:02:51 -0400 Original-Received: from [62.46.213.117] ([62.46.213.117]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LnUna-1WYxQF1EEA-00havY; Tue, 29 Jul 2014 16:02:49 +0200 In-Reply-To: <83wqawflgj.fsf@gnu.org> X-Provags-ID: V03:K0:K2WQNqfRvNsR9Ey/zg2RvQF18pEo2d+JTIixtEJ53C7HbIAcgVn plqEXNG9ugLi5/kwAwC4Gwl65bBQh7G1nP+RVBf0msE5WxHbTizOIN5T0Kwu4XnYyvVak4p 6saB/pARRwe4Fm6Tbmg5OVS7V63DRdxdB+iflS8UwnlIJQGLeV2jH3K/vVOvgxseHSuaRNo KJoj6qrgf+P5ALXd7lrzw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.22 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:173252 Archived-At: > Just type "C-u C-h t hebrew RET", and you have your sample. Most of > it is R2L lines, with some L2R lines at the end. OK. > . As soon as I click on the scroll-bar thumb, which is correctly > drawn flushed all the way to the right when point is an a R2L line, > the scroll bar "jumps" to the left edge. Where's the code which > does that? I see the problem - it must be with auto-hscroll suspension. This can be a bit hairy to get right. The idea is that when you drag the slider and `point' is about to go off screen, usually auto-hscroll kicks in and moves the text back to the previous position to make `point' visible again (note that dragging the slider is not supposed to move `point'). Now the suspend_auto_hscroll flag of a window, when set, is supposed to prevent that. For some reason this seems to backfire here. . The code below is for the selected window, where point is up to date. But what about non-selected windows, should we use window-point there? There's no other choice I suppose. martin