From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18793: 24.4; zero width rectangular selection displaces text Date: Wed, 22 Oct 2014 20:42:35 +0300 Message-ID: <83h9yw80hg.fsf@gnu.org> References: <82ppdk41k5.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1413999847 8599 80.91.229.3 (22 Oct 2014 17:44:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2014 17:44:07 +0000 (UTC) Cc: carlosjosepita@gmail.com, 18793@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 19:44:00 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xgzx1-0000w6-Kp for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2014 19:43:59 +0200 Original-Received: from localhost ([::1]:59484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgzx1-0002Cj-9h for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2014 13:43:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgzwD-00017n-QS for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 13:43:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xgzw8-0000gy-Ke for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 13:43:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgzw8-0000gr-7D for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 13:43:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xgzw7-0005wr-Ma for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2014 13:43:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Oct 2014 17:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18793-submit@debbugs.gnu.org id=B18793.141399976922815 (code B ref 18793); Wed, 22 Oct 2014 17:43:03 +0000 Original-Received: (at 18793) by debbugs.gnu.org; 22 Oct 2014 17:42:49 +0000 Original-Received: from localhost ([127.0.0.1]:60168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xgzvs-0005vs-JD for submit@debbugs.gnu.org; Wed, 22 Oct 2014 13:42:48 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:38797) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xgzvp-0005vb-Jf for 18793@debbugs.gnu.org; Wed, 22 Oct 2014 13:42:46 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NDU00000X4ZRK00@a-mtaout22.012.net.il> for 18793@debbugs.gnu.org; Wed, 22 Oct 2014 20:42:39 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NDU000U8X729S90@a-mtaout22.012.net.il>; Wed, 22 Oct 2014 20:42:39 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94936 > From: Stefan Monnier > Date: Wed, 22 Oct 2014 13:29:30 -0400 > Cc: 18793@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.