From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#17768: 24.3; problem with two ruler-mode windows Date: Sun, 15 Jun 2014 17:09:50 +0200 Message-ID: <539DB73E.3060704@gmx.at> References: <84sin9n0kf.fsf@gmail.com> <539AA853.3050202@gmx.at> <8438f75rua.fsf@gmail.com> 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 1402845043 7021 80.91.229.3 (15 Jun 2014 15:10:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Jun 2014 15:10:43 +0000 (UTC) Cc: 17768@debbugs.gnu.org To: Andrea Rossetti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 15 17:10:35 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1WwC4o-000291-LY for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jun 2014 17:10:34 +0200 Original-Received: from localhost ([::1]:38940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwC4n-0000AE-SQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jun 2014 11:10:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwC4Y-0008VT-OX for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2014 11:10:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwC4M-0002Qs-OG for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2014 11:10:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwC4M-0002Ql-LU for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2014 11:10:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WwC4L-0000eI-Q7 for bug-gnu-emacs@gnu.org; Sun, 15 Jun 2014 11:10:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Jun 2014 15:10:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17768 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17768-submit@debbugs.gnu.org id=B17768.14028450042484 (code B ref 17768); Sun, 15 Jun 2014 15:10:05 +0000 Original-Received: (at 17768) by debbugs.gnu.org; 15 Jun 2014 15:10:04 +0000 Original-Received: from localhost ([127.0.0.1]:48430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwC4I-0000dy-Cg for submit@debbugs.gnu.org; Sun, 15 Jun 2014 11:10:03 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:60941) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwC4E-0000dX-OX for 17768@debbugs.gnu.org; Sun, 15 Jun 2014 11:10:00 -0400 Original-Received: from [194.166.85.236] ([194.166.85.236]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MYtId-1XITtD3kFn-00Vkop; Sun, 15 Jun 2014 17:09:53 +0200 In-Reply-To: <8438f75rua.fsf@gmail.com> X-Provags-ID: V03:K0:JvkiJ+X/EytOU1k/37XWgzGsfGmOHxOGoBTLzbl5Dt01d6Msk0A Cba/EZRpLvYCux2PPEaS2rqsI69psTv1HPu6pYInLjhhqpoDwr2Mvm+MdfYx+AT3PeNySE1 UTOvY1iuKOb2I9HdlWvQ6Jqu8wP6ciJCAg1bHSeKWlHBy0DuZfG9bilO3W4KgXKXx8yWRDN oIWG87MQTbPGpp5wO8yjw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90400 Archived-At: > First patch applies the changes that we supposed could > solve the problem of the wrong offset. Thanks. I'll apply it as soon as I can build again here. > I tested patch1 somewhat randomly, opening 4/5 windows horizontally, > 1/2 windows vertically, and did also some attempt splitting windows > in two frames. Played also a bit on the text-only Emacs (using MSYS shell). > > Everything worked fine with patch1, except for an unexpected small > and non-blocking issue (let's call it "diagonal-drag" issue) that > can be reproduced as follows: > > - C-x 3 M-x ruler-mode (you should see two windows with ruler) > - click S- on the ruler of the rightmost window, this will set > a left margin, choose a width of around 10~20 chars > - drag "diagonally" a column, for example moving down-left the > fill-column, until the cursor goes a few pixels below the ruler area How do I drag a column? What is "moving down-left"? Can you explain in terms of keystrokes or mouse clicks? > - you will see that the dragged column will "jump" innaturally to the > left of around 10~20 chars > > Tentative diagnosys: function `ruler-mode-window-col' returns a > different column value depending if you are inside or outside the > ruler area. The actual problem is probably inherited from `posn-col-row', > but I could not clarify any better. It seems so (from reading the doc-string of `ruler-mode-window-col'). But I would like to reproduce the problem first. Please advice. > And finally: I noticed another independent bug ("text-scale issue"), > i.e. most ruler's mouse operation have wrong offset if you adjust > text scale (C-x C-+). This should be definitively corrected (as well as other text scale related issues happening, for example, when splitting windows). > If anyone reading is interested to help, here's a proposed action plan: > > - may you please try to play with patch1, and give advice if it could be > acceptable for a commit I only need advice from Stefan whether to install it in the branch or on trunk. > - I guess that patch2 is unacceptable (BTW it changes the definition of > ruler-mode-window-col, I assumed that ruler-mode.el is the only > program calling it) but it's the best I could squeeze out of my head... > any help or constructive criticism is welcome :) The premise of `ruler-mode-window-col' seems wrong so we have to do something about it. > - be aware of the "text-scale" issue but don't test for it; it seems > a totally independent issue so I'd rather send another bug report for it Please do that. Thanks, martin