GNU logs - #18793, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#18793: 24.4; zero width rectangular selection displaces text
Resent-From: Carlos Pita <carlosjosepita@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 22 Oct 2014 14:17:01 +0000
Resent-Message-ID: <handler.18793.B.14139873882047 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 18793
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 18793 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.14139873882047
          (code B ref -1); Wed, 22 Oct 2014 14:17:01 +0000
Received: (at submit) by debbugs.gnu.org; 22 Oct 2014 14:16:28 +0000
Received: from localhost ([127.0.0.1]:59904 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XgwiB-0000Wv-7B
	for submit <at> debbugs.gnu.org; Wed, 22 Oct 2014 10:16:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47698)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <carlosjosepita@HIDDEN>) id 1Xgwi8-0000Wg-Bp
 for submit <at> debbugs.gnu.org; Wed, 22 Oct 2014 10:16:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <carlosjosepita@HIDDEN>) id 1Xgwhy-0000UC-2Q
 for submit <at> debbugs.gnu.org; Wed, 22 Oct 2014 10:16:18 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50,
 FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42858)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <carlosjosepita@HIDDEN>) id 1Xgwhy-0000U7-0K
 for submit <at> debbugs.gnu.org; Wed, 22 Oct 2014 10:16:14 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49332)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <carlosjosepita@HIDDEN>) id 1Xgwht-0002d2-61
 for bug-gnu-emacs@HIDDEN; Wed, 22 Oct 2014 10:16:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <carlosjosepita@HIDDEN>) id 1Xgwhl-0000PA-32
 for bug-gnu-emacs@HIDDEN; Wed, 22 Oct 2014 10:16:09 -0400
Received: from mail-qg0-x235.google.com ([2607:f8b0:400d:c04::235]:39183)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <carlosjosepita@HIDDEN>) id 1Xgwhk-0000NG-OK
 for bug-gnu-emacs@HIDDEN; Wed, 22 Oct 2014 10:16:01 -0400
Received: by mail-qg0-f53.google.com with SMTP id q107so2560858qgd.40
 for <bug-gnu-emacs@HIDDEN>; Wed, 22 Oct 2014 07:15:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version:content-type;
 bh=GbIoDGozPIDXcJa8ABj6o2nehbTB9c6TACjQxxsyDgw=;
 b=oWdVRw3PgAy35SEbnhuY0A2AWyXLn6o2csrEF6gOhGW8jFzZSYJ8kdWED4iBTG1HaG
 xrHvBWH+3cXXhmJtKKWpaf3QH7FWIR3quNinJ56GPDw7+Tn9HUxIG+FULWvst18bRTro
 DpdlQhBGdKnGKNiLK2cnpscU9fmaYMvx1Pa9MmxV2TQ0S9Bm/CIFnfAqBgZ/qkRSQgUD
 SubbGsIBsLOaGhP/MAOUli9K01dEoNQB/0gP35RawZOTXeTIweXt3n25WSNMrelmMQL3
 BbAl8A2VkCD49ha8Bha3Hj+Q3iTjEdqeTIAXEJmbY4W3N/xfNncAokNqZ13nPvg+eQ32
 056g==
X-Received: by 10.224.47.2 with SMTP id l2mr41359218qaf.28.1413987355788;
 Wed, 22 Oct 2014 07:15:55 -0700 (PDT)
Received: from carlos ([190.216.58.35])
 by mx.google.com with ESMTPSA id k3sm13720204qay.1.2014.10.22.07.15.53
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 22 Oct 2014 07:15:54 -0700 (PDT)
From: Carlos Pita <carlosjosepita@HIDDEN>
Date: Wed, 22 Oct 2014 11:32:58 -0300
Message-ID: <82ppdk41k5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.0 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.0 (---)

1) Put the point at the beginning of the following sequence of a's.
2) Start a rectangular selection with C-x Space.
3) Move the point one char to the right.
4) Move it one char to the left so that it returns to the left margin.
5) Repeat 3 and 4 a number of times.

aaaaaaaaaaa

Do you see how the sequences of a's moves back and forward? This is not
nice and the example is not that artificial. Having lines separated by
empty lines is very common, so:

1) Put the point at the beginning of the following sequence of a's.
2) Start a rectangular selection with C-x Space.
3) Move the point one char to the right to make the selection width = 1.
4) Move the point down 5 times to extend the selection up to the line of c's.

aaaaaaaaaaa

bbbbbbbbbbb

ccccccccccc

Text looks like jelly, doesn't it? I understand that having a visual
indicator of the empty selection is a good thing but what about the
following alternatives:

a) Keep the thin line near the fringe even when the selection is not
zero width, so no displacement will happen. Or,

b) Use the fringe instead of the buffer.








In GNU Emacs 24.4.1 (i686-pc-linux-gnu, GTK+ Version 3.12.2)
 of 2014-10-22 on carlos
Windowing system distributor `The X.Org Foundation', version 11.0.11502000
Configured using:
 `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft
 'CFLAGS=-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong
 --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Important settings:
  value of $LC_COLLATE: C
  value of $LC_TIME: es_AR.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Article

Minor modes in effect:
  show-paren-mode: t
  shell-dirtrack-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  ido-ubiquitous-mode: t
  ido-everywhere: t
  winner-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <down-mouse-4> <mouse-4> <double-down-mouse-4> 
<double-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4> 
<triple-mouse-4> <down-mouse-5> <mouse-5> <double-down-mouse-5> 
<double-mouse-5> <triple-down-mouse-5> <triple-mouse-5> 
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> 
<triple-down-mouse-5> <triple-mouse-5> <down-mouse-5> 
<mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> 
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5> 
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5> 
<triple-mouse-5> C-x k <return> <down> <down> <down> 
<down> <down> <up> <up> C-x SPC <up> <up> <right> <right> 
<right> <right> <right> <right> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<up> <up> <up> <up> <up> <up> <up> <up> C-g <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <up> <up> <up> <up> <up> <up> <up> <up> <prior> 
<prior> <up> <up> <up> <up> C-SPC <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <up> <up> 
<up> C-x SPC <down> <down> <down> <down> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<down> <down> <up> <right> <right> <right> <left> <left> 
<down> <right> <down> <right> <right> <right> <right> 
<right> <right> <right> <right> <right> <right> <right> 
<right> <right> <right> C-g <up> M-x r e p o r t - 
e m a c s <tab> <return>

Recent messages:
byte-code: Beginning of buffer
Contacting host: www.google.com.ar:80
byte-code: End of buffer [4 times]
Mark set
Mark set (rectangle mode)
Quit
End of buffer [2 times]
scroll-down-command: Beginning of buffer
Mark set
Rectangle-Mark mode enabled
Quit

Load-path shadows:
~/.emacs.d/lisp/rmail hides /usr/share/emacs/24.4/lisp/mail/rmail

Features:
(shadow emacsbug sendmail rect url-queue timezone shr-color color
url-http url-gw url-auth eww mm-url shr sort smiley gnus-cite mail-extr
gnus-async gnus-bcklg gnus-ml disp-table gnus-topic nndraft nnmh
nnfolder utf-7 gnutls network-stream starttls nnimap parse-time tls utf7
netrc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp
gnus-cache google-contacts-gnus gnus-art mm-uu mml2015 mm-view mml-smime
smime dig gnus-sum nnoo gnus-group gnus-undo nnmail mail-source
google-contacts-message google-contacts xml url-cache url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
mailcap url-util url-parse auth-source eieio byte-opt bytecomp
byte-compile cconv eieio-core password-cache url-vars google-oauth
gnus-start gnus-spec gnus-int gnus-range message idna rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit vc-git
epa-file epa derived epg server paredit edmacro kmacro paren cl-macs
ob-python ob-R org org-macro org-footnote org-pcomplete org-list
org-faces org-entities noutline outline easy-mmode org-version
ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys
ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func
cal-menu calendar cal-loaddefs ess-toolbar ess-mouse mouseme thingatpt
browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode
ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a shell pcomplete
ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp3-d
ess-julia ess-r-d compile ess-tracebug format-spec ess-roxy hideshow
ess-help ess-developer ess-r-args eldoc ess-s-l ess ess-inf comint
ansi-color ess-mode ess-noweb-mode ess-utils time-date ess-custom
executable ess-compat ess-site yasnippet help-mode cl gv ido-ubiquitous
cl-loaddefs cl-lib advice help-fns imenu-anywhere imenu ido windmove
winner ring info easymenu package epg-config wombat-theme tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 8 329590 34438)
 (symbols 24 43603 0)
 (miscs 20 317 1004)
 (strings 16 96587 8119)
 (string-bytes 1 3029362)
 (vectors 8 43899)
 (vector-slots 4 1544164 30648)
 (floats 8 797 571)
 (intervals 28 539 279)
 (buffers 512 31)
 (heap 1024 70848 1737))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Carlos Pita <carlosjosepita@HIDDEN>
Subject: bug#18793: Acknowledgement (24.4; zero width rectangular
 selection displaces text)
Message-ID: <handler.18793.B.14139873882047.ack <at> debbugs.gnu.org>
References: <82ppdk41k5.fsf@HIDDEN>
X-Gnu-PR-Message: ack 18793
X-Gnu-PR-Package: emacs
Reply-To: 18793 <at> debbugs.gnu.org
Date: Wed, 22 Oct 2014 14:17:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 18793 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
18793: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18793
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#18793: 24.4; zero width rectangular selection displaces text
Resent-From: Stefan Monnier <monnier@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 22 Oct 2014 17:30:03 +0000
Resent-Message-ID: <handler.18793.B18793.141399897921466 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 18793
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Carlos Pita <carlosjosepita@HIDDEN>
Cc: 18793 <at> debbugs.gnu.org
Received: via spool by 18793-submit <at> debbugs.gnu.org id=B18793.141399897921466
          (code B ref 18793); Wed, 22 Oct 2014 17:30:03 +0000
Received: (at 18793) by debbugs.gnu.org; 22 Oct 2014 17:29:39 +0000
Received: from localhost ([127.0.0.1]:60135 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xgzj9-0005a9-4t
	for submit <at> debbugs.gnu.org; Wed, 22 Oct 2014 13:29:39 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:37075)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1Xgzj7-0005Zx-9O
 for 18793 <at> debbugs.gnu.org; Wed, 22 Oct 2014 13:29:37 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOF2MHhDgEqRmBaoNMIQ
X-IPAS-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOF2MHhDgEqRmBaoNMIQ
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="94848695"
Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home)
 ([69.165.143.59])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 22 Oct 2014 13:29:31 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id D3DD243C4; Wed, 22 Oct 2014 13:29:30 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
Message-ID: <jwvegu0xbhr.fsf-monnier+emacsbugs@HIDDEN>
References: <82ppdk41k5.fsf@HIDDEN>
Date: Wed, 22 Oct 2014 13:29:30 -0400
In-Reply-To: <82ppdk41k5.fsf@HIDDEN> (Carlos Pita's message of "Wed, 22 Oct
 2014 11:32:58 -0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> Text looks like jelly, doesn't it? I understand that having a visual
> indicator of the empty selection is a good thing but what about the
> following alternatives:

Using the fringe is kind of problematic since the fringe may not be
displayed, and it also mean it's displayed "elsewhere", which is
less convenient.

Keeping the thin line is an alternative I hadn't considered, since
I think this thin line is a problem.  But indeed maybe the movement is
worse than the thin line itself, so maybe keeping the thin line is
a better option.

FWIW, I think the better option is to provide a way to draw a thin line
that does not shift the rest of the text.  But I think that requires
changes in the redisplay code.


        Stefan




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#18793: 24.4; zero width rectangular selection displaces text
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 22 Oct 2014 17:43:03 +0000
Resent-Message-ID: <handler.18793.B18793.141399976922815 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 18793
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Stefan Monnier <monnier@HIDDEN>
Cc: carlosjosepita@HIDDEN, 18793 <at> debbugs.gnu.org
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Received: via spool by 18793-submit <at> debbugs.gnu.org id=B18793.141399976922815
          (code B ref 18793); Wed, 22 Oct 2014 17:43:03 +0000
Received: (at 18793) by debbugs.gnu.org; 22 Oct 2014 17:42:49 +0000
Received: from localhost ([127.0.0.1]:60168 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xgzvs-0005vs-JD
	for submit <at> debbugs.gnu.org; Wed, 22 Oct 2014 13:42:48 -0400
Received: from mtaout22.012.net.il ([80.179.55.172]:38797)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1Xgzvp-0005vb-Jf
 for 18793 <at> debbugs.gnu.org; Wed, 22 Oct 2014 13:42:46 -0400
Received: from conversion-daemon.a-mtaout22.012.net.il by
 a-mtaout22.012.net.il (HyperSendmail v2007.08) id
 <0NDU00000X4ZRK00@HIDDEN> for 18793 <at> debbugs.gnu.org;
 Wed, 22 Oct 2014 20:42:39 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NDU000U8X729S90@HIDDEN>;
 Wed, 22 Oct 2014 20:42:39 +0300 (IDT)
Date: Wed, 22 Oct 2014 20:42:35 +0300
From: Eli Zaretskii <eliz@HIDDEN>
In-reply-to: <jwvegu0xbhr.fsf-monnier+emacsbugs@HIDDEN>
X-012-Sender: halo1@HIDDEN
Message-id: <83h9yw80hg.fsf@HIDDEN>
References: <82ppdk41k5.fsf@HIDDEN>
 <jwvegu0xbhr.fsf-monnier+emacsbugs@HIDDEN>
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: Stefan Monnier <monnier@HIDDEN>
> Date: Wed, 22 Oct 2014 13:29:30 -0400
> Cc: 18793 <at> debbugs.gnu.org
> 
> FWIW, I think the better option is to provide a way to draw a thin line
> that does not shift the rest of the text.

You could change the cursor to a vertical bar, and change its color to
match the color of the region.

Another possibility is to make a composition of the character at point
and some zero-width character (which we display as a thin space).  The
display engine already supports compositions, so the only problem is
to create one that will look "right", and solve the color issue in
some reasonable way.

Yet another possibility is to have a new cursor type that would
display a small portion of the block in another color.  This does
require changes to C code, but they are relatively simple and
straightforward.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#18793: 24.4; zero width rectangular selection displaces text
Resent-From: Stefan Monnier <monnier@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 23 Oct 2014 00:57:02 +0000
Resent-Message-ID: <handler.18793.B18793.1414025767920 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 18793
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: carlosjosepita@HIDDEN, 18793 <at> debbugs.gnu.org
Received: via spool by 18793-submit <at> debbugs.gnu.org id=B18793.1414025767920
          (code B ref 18793); Thu, 23 Oct 2014 00:57:02 +0000
Received: (at 18793) by debbugs.gnu.org; 23 Oct 2014 00:56:07 +0000
Received: from localhost ([127.0.0.1]:60353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Xh6hC-0000Em-Ng
	for submit <at> debbugs.gnu.org; Wed, 22 Oct 2014 20:56:07 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:59696)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1Xh6h8-0000ED-D3
 for 18793 <at> debbugs.gnu.org; Wed, 22 Oct 2014 20:56:02 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOF2MHhDgEqRmBaoNMIQ
X-IPAS-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOF2MHhDgEqRmBaoNMIQ
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="94881216"
Received: from 69-165-143-59.dsl.teksavvy.com (HELO ceviche.home)
 ([69.165.143.59])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 22 Oct 2014 20:55:56 -0400
Received: by ceviche.home (Postfix, from userid 20848)
 id 2792766094; Wed, 22 Oct 2014 20:55:56 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
Message-ID: <jwvzjcnfw45.fsf-monnier+emacsbugs@HIDDEN>
References: <82ppdk41k5.fsf@HIDDEN>
 <jwvegu0xbhr.fsf-monnier+emacsbugs@HIDDEN> <83h9yw80hg.fsf@HIDDEN>
Date: Wed, 22 Oct 2014 20:55:56 -0400
In-Reply-To: <83h9yw80hg.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 22 Oct
 2014 20:42:35 +0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> You could change the cursor to a vertical bar, and change its color to
> match the color of the region.

The main use is not when the rectangle is completely empty (i.e. when
mark = point) but when the rectangle has 0 width, so you see where the
mark is and you see on each line the 0-width boundary of the rectangle.

So changing the cursor doesn't quite give me what I want.

> Another possibility is to make a composition of the character at point
> and some zero-width character (which we display as a thin space).

Hmm... that's a possibility.  Sounds costly (compared to "draw a line"),
but maybe it could work.


        Stefan





Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.