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#22873: Can we support multiple Cursors? Date: Tue, 29 Mar 2016 17:58:21 +0300 Message-ID: <83shz9wctu.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1459264355 23734 80.91.229.3 (29 Mar 2016 15:12:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 15:12:35 +0000 (UTC) Cc: jwiegley@gmail.com, mbork@mbork.pl, 22873@debbugs.gnu.org, rms@gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 29 17:12:23 2016 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 1akv7y-0001Df-Uf for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2016 17:00:19 +0200 Original-Received: from localhost ([::1]:47592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akv7w-0001iI-KJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Mar 2016 11:00:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akv7m-0001eJ-J5 for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:00:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akv7i-0003Jz-Ms for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akv7i-0003Ju-JO for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1akv7i-0007Z1-Dw for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2016 11:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2016 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22873 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22873-submit@debbugs.gnu.org id=B22873.145926355428982 (code B ref 22873); Tue, 29 Mar 2016 15:00:02 +0000 Original-Received: (at 22873) by debbugs.gnu.org; 29 Mar 2016 14:59:14 +0000 Original-Received: from localhost ([127.0.0.1]:43894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akv6v-0007XN-4s for submit@debbugs.gnu.org; Tue, 29 Mar 2016 10:59:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akv6t-0007XC-WE for 22873@debbugs.gnu.org; Tue, 29 Mar 2016 10:59:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akv6n-00035w-2p for 22873@debbugs.gnu.org; Tue, 29 Mar 2016 10:59:05 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akv6X-00031X-UT; Tue, 29 Mar 2016 10:58:49 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1945 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1akv6Q-0001qg-SX; Tue, 29 Mar 2016 10:58:43 -0400 In-reply-to: (message from Keith David Bershatsky on Mon, 28 Mar 2016 20:45:07 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:115703 Archived-At: > Date: Mon, 28 Mar 2016 20:45:07 -0700 > From: Keith David Bershatsky > Cc: John Wiegley ,Eli Zaretskii ,Marcin Borkowski ,Richard Stallman > > The attached multiple_cursors_007.diff applies to the master branch as of today, March 28, 2016, bearing commit a30e7e12ed8465e2565dd318d921bc87f52ce18e. > > mc_calc now runs from the applicable nsterm.m/w32term.c/xterm.c, instead of xdisp.c. Why is that a good idea? You have 3 almost identical copies of the same code, which goes against our long-time trend to have terminal independent code only once, for easier maintenance. > ((oddp current-column) > (list pos "bar" [1.0 0.0 0.0])) ;; red > ((evenp current-column) > (list pos "bar" [0.0 0.0 1.0])))))) ;; blue That's not how we specify colors in Emacs, not on the user level, anyway. I don't think I like this design. Why not use the existing mechanisms for specifying the cursor color?