all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#7390: 24.0.50; pos-col-row gives incorrect row
@ 2010-11-13 17:55 Drew Adams
  2010-11-13 19:02 ` Eli Zaretskii
  0 siblings, 1 reply; 19+ messages in thread
From: Drew Adams @ 2010-11-13 17:55 UTC (permalink / raw)
  To: 7390

emacs -Q
 
Load David Ponce's tabbar.el version 1.3, from here:
http://sourceforge.net/projects/emhacks/files/tabbar/1.3/tabbar-1.3.tar.gz/downl
oad
 
M-x tabbar-mode
 
That adds a tab bar to each window.  I don't see anything in the
tabbar.el code that should perturb the behavior of pos-col-row, but
something does.  I'm no expert on the tabbar code or pos-col-row.  I
hope that someone can debug this and fix it.  My guess is that
pos-col-row is incorrectly thinking that the tab bar is part of the
buffer.
 
The easiest way to see the problem is to do this:
 
M-x picture-mode
 
Click mouse-1 somewhere - e.g. the fourth char in some buffer.  The
result is that the cursor (point) is moved down one line from where you
clicked, so the active region shows from the click position to point
(one line down).
 
Do the same thing with tabbar-mode turned off, and there is no problem:
point does not move down a line: it is exactly where you clicked.
 
The problem arises in picture-mouse-set-point, where it calls
pos-col-row: the wrong row is returned.  This is presumably because it
is counting the tabbar row, which is not part of the buffer.
 
Dunno whether this is a bug in pos-col-row (that would be my guess) or
in tabbar.el.  I shouldn't think that tabbar.el should need to do
something to compensate and make pos-col-row DTRT.  But again, I'm no
expert on this.

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-11-09 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 






^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-12-12 20:47 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-13 17:55 bug#7390: 24.0.50; pos-col-row gives incorrect row Drew Adams
2010-11-13 19:02 ` Eli Zaretskii
2010-11-13 19:17   ` Drew Adams
2010-11-13 21:10   ` Eli Zaretskii
2010-11-13 21:30     ` Eli Zaretskii
2010-11-13 21:37       ` Chong Yidong
2010-11-13 22:00         ` Eli Zaretskii
2010-11-16 19:59           ` Chong Yidong
2010-12-12  7:15     ` YAMAMOTO Mitsuharu
2010-12-12  7:29       ` Eli Zaretskii
2010-12-12  7:37         ` YAMAMOTO Mitsuharu
2010-12-12 20:47           ` Eli Zaretskii
2010-11-13 21:13   ` Chong Yidong
2010-11-13 21:21     ` Eli Zaretskii
2010-11-13 21:38     ` Drew Adams
2010-11-13 22:31       ` Eli Zaretskii
2010-11-13 21:44     ` Chong Yidong
2010-11-13 21:55       ` Eli Zaretskii
2010-11-14 17:35         ` Chong Yidong

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.