From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#534: 23.0.60; mouse-set-point fails with word wrapping enabled Date: Fri, 04 Jul 2008 22:41:20 +0200 Message-ID: <877ic1pekv.fsf@escher.local.home> Reply-To: Stephen Berman , 534@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1215205661 22145 80.91.229.12 (4 Jul 2008 21:07:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2008 21:07:41 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 04 23:08:26 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KEsVz-0002rO-BJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jul 2008 23:08:23 +0200 Original-Received: from localhost ([127.0.0.1]:45123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEsV8-0006Bd-Fy for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jul 2008 17:07:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEsUv-00066N-Sc for bug-gnu-emacs@gnu.org; Fri, 04 Jul 2008 17:07:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEsUu-00065Q-Rk for bug-gnu-emacs@gnu.org; Fri, 04 Jul 2008 17:07:16 -0400 Original-Received: from [199.232.76.173] (port=33496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEsUu-00065C-GD for bug-gnu-emacs@gnu.org; Fri, 04 Jul 2008 17:07:16 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50093) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEsUu-00053y-Bf for bug-gnu-emacs@gnu.org; Fri, 04 Jul 2008 17:07:16 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m64L7DeW004567; Fri, 4 Jul 2008 14:07:14 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m64Ko3oI031704; Fri, 4 Jul 2008 13:50:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 04 Jul 2008 20:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 534 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121520410130389 (code B ref -1); Fri, 04 Jul 2008 20:50:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 4 Jul 2008 20:41:41 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m64KfXXM030383 for ; Fri, 4 Jul 2008 13:41:34 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:51598) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KEs5h-0001l5-0I for emacs-pretest-bug@gnu.org; Fri, 04 Jul 2008 16:41:13 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KEs5v-0000qJ-D6 for emacs-pretest-bug@gnu.org; Fri, 04 Jul 2008 16:41:32 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:38697) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KEs5u-0000pT-VM for emacs-pretest-bug@gnu.org; Fri, 04 Jul 2008 16:41:27 -0400 Original-Received: (qmail invoked by alias); 04 Jul 2008 20:41:21 -0000 Original-Received: from i5387D963.versanet.de (EHLO escher.local.home) [83.135.217.99] by mail.gmx.net (mp048) with SMTP; 04 Jul 2008 22:41:21 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/iKs1MRGDiYsHEACi1fyt5DgtERJ2WLhdCur0rrK yVUZ5W/sqhuVTf Original-Received: by escher.local.home (Postfix, from userid 1000) id 4E6051D0EFC; Fri, 4 Jul 2008 22:41:20 +0200 (CEST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.55 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 04 Jul 2008 17:07:16 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18647 gmane.emacs.pretest.bugs:22711 Archived-At: --=-=-= I have found that with word-wrap enabled, at some point in the buffer of a wrapped text setting point by clicking mouse-1 fails, with the result that point is set not where I click but at the same column exactly one visible line below (i.e., also within a wrapped line). I haven't managed to find a general recipe for reproducing this, but I do have a sample file which shows the problem. Start Emacs with -Q, visit the attached file and set word-wrap to t. I can set point by clicking mouse-1 on any position in the buffer -- until the first `x' after the line wrapping in the line that begins with `13.30': clicking mouse-1 on this position set points on the space immediately below. Likewise for every position following this one, till the end of the text. Now scroll the text up one line at a time, until the line beginning with `15.05' is at the top of the window. Now setting point by clicking mouse-1 works again as expected. But scrolling down one line, so that the line beginning with `13.30' is at the top of the window, restores the previous aberrant behavior. A probably related observation is the following. If I click mouse-1 in the space between the last character of a wrapped line and the right fringe, starting on the second space after the last character, then point gets set on the subsequent wrapped portion, and advancing the clicked position towards the fringe advances the cursor display on the wrapped portion. If I click on the right fringe, then point gets set (back) to the first character after the wrapping. But this behavior changes at the line that begins with `13.30': clicking in the spaces has the effect described, but clicking on the right fringe does not reset point. But in the line beginning with `20.00', clicking in the space before the first wrapped portion advances the cursor in the second wrapped portion below it, and clicking in the right fringe before the first wrapped portion does reset point to the beginning of the second wrapped portion. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of 2008-07-01 on escher Windowing system distributor `The X.Org Foundation', version 11.0.70200000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default-enable-multibyte-characters: t --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=wrap-test Content-Transfer-Encoding: base64 Content-Description: test file for word wrapping problem JkZyaSwgSnVsIDQsIDIwMDggNi4xMyB4eHh4eHh4IHh4eHh4eHh4eHh4eHggeHh4eCB4eHh4eHh4 eCB4eHggeHh4eHh4eHh4IHggeHh4eHh4IHh4eHh4eHh4eAoJNy4wMCB4eHh4IHh4eCB4eHh4eHh4 IHh4eHh4eCB4IHh4eHggeHh4eHh4eHh4eHh4eCB4eHh4eHh4eHh4IHh4eHh4eHh4eCB4eHh4eHh4 eHh4eHggeHh4eCB4IHh4eHh4eHh4eHgKCTcuNTAgeHh4eCB4eHggeHh4eHh4eCB4eHh4IHh4eHh4 eHggeHh4eHh4eH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