unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: emacs-pretest-bug@gnu.org
Subject: bug#534: 23.0.60; mouse-set-point fails with word wrapping enabled
Date: Fri, 04 Jul 2008 22:41:20 +0200	[thread overview]
Message-ID: <877ic1pekv.fsf@escher.local.home> (raw)

[-- Attachment #1: Type: text/plain, Size: 2519 bytes --]

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


[-- Attachment #2: test file for word wrapping problem --]
[-- Type: application/octet-stream, Size: 1744 bytes --]

&Fri, Jul 4, 2008 6.13 xxxxxxx xxxxxxxxxxxxx xxxx xxxxxxxx xxx xxxxxxxxx x xxxxxx xxxxxxxxx
	7.00 xxxx xxx xxxxxxx xxxxxx x xxxx xxxxxxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxxxxxxxxxx xxxx x xxxxxxxxxx
	7.50 xxxx xxx xxxxxxx xxxx xxxxxxx xxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxx xxxxxx
	8.30 xxxxxxxx xxx xxxxxxxxxxxx xxx xxxxxxx xxxxxx xxx xxxxxx
	9.00 xxxxxxx xxxxxxx
	9.30 xx xxxxxxxxx xxxxxx xxxxxxxx xxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxx xx xxxxxxxxxx xxxxxxxxxxx xxx xxx xxxx xxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxxxxxxx
	11.30 xxxxxx xxxxxx xxxxxxxx xxx xxxxxxxx xxxxxxxxxxxxx xxxxxxxxxx xxx xxxxxxxxxxxx xxxxxxxxxxx xxxxxxx xxxxxxxxxxxx xxxxxxxxxxx
	13.00 xx xxxxxxxxx xxxxxxxxxxxxxx xxxxxxxxx xxxxxxxxxxxxxxx
	13.30 xxxx xxxxx xxx xxx xxxxx xxxxx xxxxx xxxx xxxx xxxxx xxxx xxxxxxxxxx
	15.05 xxxx xxxxxxxxx xxx xxx xxxxxxx xxxxxx xxxx xxxx xxxxxxxxxx xxxx xxxxxx xxxxx xxxxxx xx xxxxx
	16.00 xxx xxxx xxxxx xxxxx xxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxx xxxx xxxx xxx xxxxxxxxxxx xxx xxxxxx xxxxx xxxxxxxxx
	17.30 xxxx xxxxxxxx xxx xxxx xx xxxxxxxxx xxxx xxxxxxx xxxxxxxx xxxxx xxxxx xxx xxxxx xxx xxx xxxxxxxxxx xx
	18.20 xxxxxx xxxx
	18.40 xxxxxxxxxx
	19.15 xxxxxx xxx xxxxxx xxxxxxx xxxxxxxx xx xxxxxx xxx xxx xxxx xxx xx xxxxxx xxxx xxxx xx xxxxxxxxx xxxxxxxxxx
	20.00 xxxxxx xxxxxx xxx xxxxxxxxxxx xxxxxxxxxx xxxxxx xxxxxx xxxx xxx xxxxx xxxx xxxxxx xxxxxxxxxx xxxx xxxxx xxxx xxxx xxxxxxxxx xxxxxxx xxxxxxx xxxxxx xxxx xxxx xxx xxxxxx
	21.00 xxxxxxxxx xxxxxxxxxxxxx xxxx xxxxxxxxx xxxxx xxx xxx xxxxxx xxxx xxxxxxxx xxxxxx xxxxxxx xxxx xxxxxx xxxxxxx xxxxxxxxx
	22.00 xxxxxx xxx xxxxx xxx xxxxxx xx xxx xxxxx xxx
	22.30 xx xxxxxxxxx xxxxxxxxx xxx xxxxxx xxxxxxxxx xxxxxx xxxxx xxxx xxx xxxxxxx xxx xxxxxxxx xxxxxx xxxxxxxxxx
	1.00 xxx xxxx

             reply	other threads:[~2008-07-04 20:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-04 20:41 Stephen Berman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-25 20:03 bug#534: 23.0.60; mouse-set-point fails with word wrapping enabled Chong Yidong
2008-09-02 16:07 ` Stephen Berman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ic1pekv.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    --cc=534@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).