From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kim Storm Newsgroups: gmane.emacs.bugs Subject: bug#18886: 24.4; M-v no longer works in CUA-mode. Date: Thu, 30 Oct 2014 21:39:18 +0100 Message-ID: <5452A1F6.2070303@cua.dk> References: <54526B57.8080508@cua.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1414772768 3610 80.91.229.3 (31 Oct 2014 16:26:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2014 16:26:08 +0000 (UTC) Cc: 18886@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 31 17:26:01 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 1XkF1V-00013V-CZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Oct 2014 17:26:01 +0100 Original-Received: from localhost ([::1]:38927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkF1U-0001Ae-JF for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Oct 2014 12:26:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkE74-0003SM-GG for bug-gnu-emacs@gnu.org; Fri, 31 Oct 2014 11:28:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjwWm-00077L-CF for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2014 16:41:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjwWm-00077G-8I for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2014 16:41:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XjwWl-0006tF-PT for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2014 16:41:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kim Storm Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Oct 2014 20:41:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18886 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18886-submit@debbugs.gnu.org id=B18886.141470164226445 (code B ref 18886); Thu, 30 Oct 2014 20:41:03 +0000 Original-Received: (at 18886) by debbugs.gnu.org; 30 Oct 2014 20:40:42 +0000 Original-Received: from localhost ([127.0.0.1]:40871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjwWP-0006sS-E2 for submit@debbugs.gnu.org; Thu, 30 Oct 2014 16:40:41 -0400 Original-Received: from ispc3.dotserv.com ([178.20.216.13]:51704) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjwWJ-0006s3-GJ for 18886@debbugs.gnu.org; Thu, 30 Oct 2014 16:40:37 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by ispc3.dotserv.com (Postfix) with ESMTP id 44D5C8034783C; Thu, 30 Oct 2014 21:40:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ispc3.dotserv.com Original-Received: from ispc3.dotserv.com ([127.0.0.1]) by localhost (ispc3.dotserv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dFHQsjQ8Y21P; Thu, 30 Oct 2014 21:40:20 +0100 (CET) Original-Received: from [10.1.82.9] (1405ds6-amb.0.fullrate.dk [90.184.76.141]) (Authenticated sender: storm@cua.dk) by ispc3.dotserv.com (Postfix) with ESMTPSA id 887AD80347833; Thu, 30 Oct 2014 21:40:20 +0100 (CET) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: 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:95298 On 2014-10-30 20:23, Stefan Monnier wrote: >> I don't have time to try to get up to date with the repository stuff, >> so I have just included some patches for you to look at -- please >> commit them if you think they are acceptable (they are only lightly >> tested so far). > Thanks, installed into emacs-24, with minor changes (mostly I demoted > the defcustom to a defvar, because I think the right fix will be to move > the setting to simple.el where it will be configured yet differently > (probably allowing delete-active-region to be set to a character)). Thank you. > > I think further changes will be needed, tho. E.g. cua-delete-region > should probably disappear (i.e. be an alias for delete-active-region). Yes, it should definitely go away. >> Note that the new defcustom is unconditionally set to ?0 >> by cua-mode if cua-mode-copy-to-register-0 is enabled (default), > Right, I added a FIXME about it. Good. > >> Also, the new replace command only works if save-to-register >> is non-nil, as it uses the old-text copy in that register (instead >> of saving another copy as the original code in cua did). > BTW, I think that instead of scavenging the undo log we should place an > overlay at the last delete so we can directly grab the "replacement text". Yes - I would like to do that, as the current code is deficient in the sense that any movement or editing will terminate the "replacement text". I will try it when I have some time to improve on it. > >> Finally, using a C-u arg should replace until eob according to the >> doc string -- it actually replaces max 1000000 instances; this >> is just laziness on my part. > I used (point-max) which should work well and is only 4 extra characters ;-) Nice ! Kim