Bug#762978: xterm: On-Click selection now selects random ares, not things under the cursor

2014-09-26 Thread Sven-Haegar Koch
Package: xterm
Version: 311-1
Severity: normal

Dear Maintainer,

Since the last xterm update (311) selection on click/doubleclick
does not work correctly anymore.

I am using the following ~/.Xresources settings since years which always
worked correctly, until now:

XTerm*on2Clicks:  regex [^/@ \n]+
XTerm*on3Clicks:  regex [^ \n]+
XTerm*on4Clicks:  regex [^#$]+
XTerm*on5Clicks:  line

For example of the missbehaviour:

Line:  haegar@aurora:~$ less .Xresources
Double click on .Xresources:
Selection expected:  ^^^
Selection now: ^
Double click on less:
Selection expected: 
Selection now:   ^^^

(Yes, it now selects .Xresources, if I click on the word before)

Greetings
Haegar

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'oldstable'), (101, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xterm depends on:
ii  libc6   2.19-11
ii  libfontconfig1  2.11.0-6.1
ii  libice6 2:1.0.9-1
ii  libtinfo5   5.9+20140913-1
ii  libutempter01.1.5-4
ii  libx11-62:1.6.2-3
ii  libxaw7 2:1.0.12-2
ii  libxft2 2.3.2-1
ii  libxmu6 2:1.1.2-1
ii  libxpm4 1:3.5.11-1
ii  libxt6  1:1.1.4-1
ii  xbitmaps1.1.1-2

Versions of packages xterm recommends:
ii  x11-utils  7.7+2

Versions of packages xterm suggests:
pn  xfonts-cyrillic  none

-- Configuration Files:
/etc/X11/app-defaults/XTerm changed:
! $XTermId: XTerm.ad,v 1.99 2013/06/23 08:57:13 Ross.Combs Exp $
! -
! this file is part of xterm
!
! Copyright 1996-2010,2011 by Thomas E. Dickey
! 
! All Rights Reserved
! 
! Permission is hereby granted, free of charge, to any person obtaining a
! copy of this software and associated documentation files (the
! Software), to deal in the Software without restriction, including
! without limitation the rights to use, copy, modify, merge, publish,
! distribute, sublicense, and/or sell copies of the Software, and to
! permit persons to whom the Software is furnished to do so, subject to
! the following conditions:
! 
! The above copyright notice and this permission notice shall be included
! in all copies or substantial portions of the Software.
! 
! THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS
! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
! 
! Except as contained in this notice, the name(s) of the above copyright
! holders shall not be used in advertising or otherwise to promote the
! sale, use or other dealings in this Software without prior written
! authorization.
! -
*saveLines: 1024
*SimpleMenu*BackingStore: NotUseful
*SimpleMenu*menuLabel.font: 
-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
*SimpleMenu*menuLabel.vertSpace:100
*SimpleMenu*HorizontalMargins: 16
*SimpleMenu*Sme.height: 16
*SimpleMenu*Cursor: left_ptr
*mainMenu.Label:  Main Options
*mainMenu*toolbar*Label:  Toolbar
*mainMenu*fullscreen*Label: Full Screen
*mainMenu*securekbd*Label:  Secure Keyboard
*mainMenu*allowsends*Label:  Allow SendEvents
*mainMenu*redraw*Label:  Redraw Window
*mainMenu*logging*Label:  Log to File
*mainMenu*print-immediate*Label:  Print-All Immediately
*mainMenu*print-on-error*Label:  Print-All on Error
*mainMenu*print*Label:  Print Window
*mainMenu*print-redir*Label:  Redirect to Printer
*mainMenu*8-bit control*Label: 8-Bit Controls
*mainMenu*backarrow key*Label: Backarrow Key (BS/DEL)
*mainMenu*num-lock*Label: Alt/NumLock Modifiers
*mainMenu*alt-esc*Label: Alt Sends Escape
*mainMenu*meta-esc*Label: Meta Sends Escape
*mainMenu*delete-is-del*Label: Delete is DEL
*mainMenu*oldFunctionKeys*Label: Old Function-Keys
*mainMenu*sunFunctionKeys*Label: Sun Function-Keys
*mainMenu*sunKeyboard*Label: VT220 Keyboard
*mainMenu*hpFunctionKeys*Label: HP Function-Keys
*mainMenu*scoFunctionKeys*Label: SCO Function-Keys
*mainMenu*tcapFunctionKeys*Label: Termcap Function-Keys
*mainMenu*suspend*Label:  Send STOP Signal
*mainMenu*continue*Label:  Send CONT Signal
*mainMenu*interrupt*Label:  Send INT Signal
*mainMenu*hangup*Label:  Send HUP Signal
*mainMenu*terminate*Label:  Send TERM Signal
*mainMenu*kill*Label:  Send KILL Signal
*mainMenu*quit*Label:  Quit
*vtMenu.Label:  

Bug#762978: xterm: On-Click selection now selects random ares, not things under the cursor

2014-09-26 Thread Thomas Dickey
On Fri, Sep 26, 2014 at 08:43:27PM +0200, Sven-Haegar Koch wrote:
 Package: xterm
 Version: 311-1
 Severity: normal
 
 Dear Maintainer,
 
 Since the last xterm update (311) selection on click/doubleclick
 does not work correctly anymore.

hmm - H.Merijn Brand had a similar comment last weekend (did not mention
regex), but I was not able to reproduce his report.

With regex, I did fix an error - which may have introduced a different bug.
(will investigate/fix/etc).

thanks

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


signature.asc
Description: Digital signature


Bug#762978: xterm: On-Click selection now selects random ares, not things under the cursor

2014-09-26 Thread Thomas Dickey
On Fri, Sep 26, 2014 at 04:57:45PM -0400, Thomas Dickey wrote:
 On Fri, Sep 26, 2014 at 08:43:27PM +0200, Sven-Haegar Koch wrote:
  Package: xterm
  Version: 311-1
  Severity: normal
  
  Dear Maintainer,
  
  Since the last xterm update (311) selection on click/doubleclick
  does not work correctly anymore.
 
 hmm - H.Merijn Brand had a similar comment last weekend (did not mention
 regex), but I was not able to reproduce his report.
 
 With regex, I did fix an error - which may have introduced a different bug.
 (will investigate/fix/etc).

I'll put out a #312 this weekend (want to check on a different report).
Here is the fix for this problem:

--- /usr/build/xterm/xterm-311+/button.c2014-09-18 00:17:35.0 
+
+++ /usr/build/xterm/xterm-311a/button.c2014-09-26 23:58:14.0 
+
@@ -1,4 +1,4 @@
-/* $XTermId: button.c,v 1.481 2014/09/18 00:17:35 tom Exp $ */
+/* $XTermId: button.c,v 1.482 2014/09/26 23:58:14 tom Exp $ */
 
 /*
  * Copyright 1999-2013,2014 by Thomas E. Dickey
@@ -3257,7 +3257,7 @@
int start_col = indexToCol(indexed, len, start_inx);
int finis_col = indexToCol(indexed, len, finis_inx);
 
-   if (start_col = actual 
+   if (start_col = actual 
actual  finis_col) {
int test = finis_col - start_col;
if (best_len  test) {


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


signature.asc
Description: Digital signature


Bug#762978: xterm: On-Click selection now selects random ares, not things under the cursor

2014-09-26 Thread Sven-Haegar Koch
On Fri, 26 Sep 2014, Thomas Dickey wrote:

 On Fri, Sep 26, 2014 at 04:57:45PM -0400, Thomas Dickey wrote:
  On Fri, Sep 26, 2014 at 08:43:27PM +0200, Sven-Haegar Koch wrote:
   Package: xterm
   Version: 311-1
   Severity: normal
   
   Dear Maintainer,
   
   Since the last xterm update (311) selection on click/doubleclick
   does not work correctly anymore.
  
  hmm - H.Merijn Brand had a similar comment last weekend (did not mention
  regex), but I was not able to reproduce his report.
  
  With regex, I did fix an error - which may have introduced a different bug.
  (will investigate/fix/etc).
 
 I'll put out a #312 this weekend (want to check on a different report).
 Here is the fix for this problem:

Thank You!

I confirm this patch fixes my problem.

Took the xterm 311 package source, added the patch to debian/patches, 
rebuilt package, installed, xterm restarted - works.

*Happy*

c'ya
sven-haegar

-- 
Three may keep a secret, if two of them are dead.
- Ben F.


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/alpine.deb.2.11.1409270228440.15...@aurora.sdinet.de