Bug#276345: copy-paste troubles with the first line of a less

2004-10-24 Thread Loïc Minier
Thomas Dickey [EMAIL PROTECTED] - Sat, Oct 23, 2004:

   Talking about something that
 appears when less is run (is this using xterm's alternate screen?  Probably). 
 The alternate screen buffer is only as large as the terminal window.  The
 normal (with scrollback) is much larger.  So bugs that hit a boundary are more
 likely to happen with the alternate screen buffer.  (I don't use the alternate
 screen much, so it's mainly other people who would notice a problem with it).

 That's interesting.  I hope I'll find a way to reproduce the problem
 soon.

   Thanks,

-- 
Loïc Minier [EMAIL PROTECTED]




Bug#276345: copy-paste troubles with the first line of a less

2004-10-23 Thread Loïc Minier
Thomas Dickey [EMAIL PROTECTED] - Fri, Oct 22, 2004:

 On Fri, Oct 22, 2004 at 08:20:04PM +0200, Vincent Lefevre wrote:
  On 2004-10-13 16:34:42 +0200, Loïc Minier wrote:
[...]
  FYI, I reported this bug to Thomas on 2002-03-08.

 Vincent Lefevre reported on 2002-03-08, and I reported on 2004-10-13,
 and you're quoting:

 It might only be a similar bug.  Here are two that are in the same general
 area:
   Patch #183 - 2003/12/26 - XFree86 4.3.99.903
  Patch #167 - 2002/8/24 - XFree86 4.2.0

 I don't how this couls relate to the first of the second patch, I still
 get the problem randomly anyway.  Are you suggesting you might reverse
 these patches?  Or do you want someone to look at the patches and check
 wether they introduced new bugs?

   Regards,

-- 
Loïc Minier [EMAIL PROTECTED]




Bug#276345: copy-paste troubles with the first line of a less

2004-10-23 Thread Thomas Dickey
On Sat, Oct 23, 2004 at 09:42:10PM +0200, Loc Minier wrote:
 Thomas Dickey [EMAIL PROTECTED] - Fri, Oct 22, 2004:
 
  On Fri, Oct 22, 2004 at 08:20:04PM +0200, Vincent Lefevre wrote:
   On 2004-10-13 16:34:42 +0200, Lo?c Minier wrote:
 [...]
   FYI, I reported this bug to Thomas on 2002-03-08.
 
  Vincent Lefevre reported on 2002-03-08, and I reported on 2004-10-13,
  and you're quoting:
 
  It might only be a similar bug.  Here are two that are in the same general
  area:
Patch #183 - 2003/12/26 - XFree86 4.3.99.903
   Patch #167 - 2002/8/24 - XFree86 4.2.0
 
  I don't how this couls relate to the first of the second patch, I still

The symptoms sound similar - in the fixes there were places where data was
referenced outside the screen buffer.

  get the problem randomly anyway.  Are you suggesting you might reverse
  these patches?  Or do you want someone to look at the patches and check
  wether they introduced new bugs?

no - I was just pointing out that the particular bug Vincent was talking about
might have been fixed.  Reviewing patches doesn't help much unless you know
exactly what you're looking for (I mainly do that to see when a change was
made and what the corresponding log comments are).

It's likely that it only appears randomly because the conditions for
reproducing the bug are not well understood.  Talking about something that
appears when less is run (is this using xterm's alternate screen?  Probably). 
The alternate screen buffer is only as large as the terminal window.  The
normal (with scrollback) is much larger.  So bugs that hit a boundary are more
likely to happen with the alternate screen buffer.  (I don't use the alternate
screen much, so it's mainly other people who would notice a problem with it).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpSNxRSMD6It.pgp
Description: PGP signature


Bug#276345: copy-paste troubles with the first line of a less

2004-10-22 Thread Vincent Lefevre
On 2004-10-13 16:34:42 +0200, Loïc Minier wrote:
  It's been some months now that I repeatedly get a strange problem with
  a less in xterm:  if I select the first line of the xterm window, being
  the first line of the less dump too, I am pasting some sort of buffered
  data too, coming from previous lines of output.

FYI, I reported this bug to Thomas on 2002-03-08.

-- 
Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/
100% accessible validated (X)HTML - Blog: http://www.vinc17.org/blog/
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Bug#276345: copy-paste troubles with the first line of a less

2004-10-13 Thread Loïc Minier
Package: xterm
Version: 4.3.0.dfsg.1-8
Severity: normal

 Hi,

 It's been some months now that I repeatedly get a strange problem with
 a less in xterm:  if I select the first line of the xterm window, being
 the first line of the less dump too, I am pasting some sort of buffered
 data too, coming from previous lines of output.

 Say I have done a grep -r foo bar | less, and copy-paste the first
 line of the xterm (bar/xyz.c: ...), I get what I've selected plus
 some preprended text (blahblahbar/xyz.c: ...).  This happens when I
 select one or multiple lines or one or multiple words including the
 upper left word in the less in xterm.  It DOESN'T happen when I select
 character-wise (single-clicking instead of double- or triple-clicking).

 I can't reproduce deterministically but once I get it, it always happen
 with the same display.  Restarting the less usually clears things up.

 I think I already got the problem with vim a while ago, but I'm not
 copy-pasting so much from vim, either to it.

 I believe it's a but in the copy-paste word selection of xterm wich
 doesn't check if the characters selected are displayed and goes out of
 bound, but I can believe it is caused by improper terminal handling by
 less.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED]

Versions of packages xterm depends on:
ii  libc6 2.3.2.ds1-17   GNU C Library: Shared libraries an
ii  libexpat1 1.95.6-8   XML parsing C library - runtime li
ii  libfontconfig12.2.3-1generic font configuration library
ii  libfreetype6  2.1.7-2.2  FreeType 2 font engine, shared lib
ii  libice6   4.3.0.dfsg.1-8 Inter-Client Exchange library
ii  libncurses5   5.4-4  Shared libraries for terminal hand
ii  libsm64.3.0.dfsg.1-8 X Window System Session Management
ii  libxaw7   4.3.0.dfsg.1-8 X Athena widget set library
ii  libxext6  4.3.0.dfsg.1-8 X Window System miscellaneous exte
ii  libxft2   2.1.2-6FreeType-based font drawing librar
ii  libxmu6   4.3.0.dfsg.1-8 X Window System miscellaneous util
ii  libxpm4   4.3.0.dfsg.1-8 X pixmap library
ii  libxrender1   0.8.3-7X Rendering Extension client libra
ii  libxt64.3.0.dfsg.1-8 X Toolkit Intrinsics
ii  xlibs 4.3.0.dfsg.1-8 X Window System client libraries m
ii  xlibs-data4.3.0.dfsg.1-8 X Window System client data

-- no debconf information


   Regards,

-- 
Loïc Minier [EMAIL PROTECTED]