From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.bugs Subject: bug#18886: 24.4; M-v no longer works in CUA-mode. Date: Wed, 29 Oct 2014 12:54:53 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1414601878 31814 80.91.229.3 (29 Oct 2014 16:57:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2014 16:57:58 +0000 (UTC) To: 18886@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 29 17:57:51 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 1XjWXv-00025H-Sx for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Oct 2014 17:56:32 +0100 Original-Received: from localhost ([::1]:47657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjWXv-0005PQ-ER for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Oct 2014 12:56:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjWXa-00059U-Rd for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:56:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjWXU-0000An-4t for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:56:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjWXU-0000Ag-2l for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:56:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XjWXT-00070k-MO for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:56:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: storm@cua.dk (Kim F. Storm) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Oct 2014 16:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18886 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141460175826937 (code B ref -1); Wed, 29 Oct 2014 16:56:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2014 16:55:58 +0000 Original-Received: from localhost ([127.0.0.1]:39155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjWXI-000709-70 for submit@debbugs.gnu.org; Wed, 29 Oct 2014 12:55:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57366) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjWWd-0006yS-Hr for submit@debbugs.gnu.org; Wed, 29 Oct 2014 12:55:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjWWR-0007v7-Ig for submit@debbugs.gnu.org; Wed, 29 Oct 2014 12:55:06 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjWWR-0007v1-F1 for submit@debbugs.gnu.org; Wed, 29 Oct 2014 12:54:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjWWL-0004Xz-CX for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:54:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjWWC-0007pu-63 for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:54:53 -0400 Original-Received: from mail1-hoer.fullrate.dk ([90.185.2.131]:43600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjWWB-0007p8-Uk for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:54:44 -0400 Original-Received: from kfs-lx2 (1405ds6-amb.0.fullrate.dk [90.184.76.141]) by mail1-hoer.fullrate.dk (Postfix) with SMTP id 5A77DBFAE9 for ; Wed, 29 Oct 2014 17:54:38 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:95262 I have just upgraded from 23.? to 24.4, and found that two (for me) essintial features of cua-mode no longer works: - Deleted text is not saved automatically in register 0 when overwriting highlighted region. - M-v no longer performs the "repeat last replacement" functionality. Both functions are documented in cua-base.el: ;; Typing text replaces the region ;; ------------------------------- ;; When the region is active, i.e. highlighted, the text in region is ;; replaced by the text you type. ;; The replaced text is saved in register 0 which can be inserted using ;; the key sequence M-0 C-v (see the section on register support below). ;; If you have just replaced a highlighted region with typed text, ;; you can repeat the replace with M-v. This will search forward ;; for a stretch of text identical to the previous contents of the ;; region (i.e. the contents of register 0) and replace it with the ;; text you typed to replace the original region. Repeating M-v will ;; replace the next matching region and so on. ;; ;; Example: Suppose you have a line like this ;; The redo operation will redo the last redoable command ;; which you want to change into ;; The repeat operation will repeat the last repeatable command ;; This is done by highlighting the first occurrence of "redo" ;; and type "repeat" M-v M-v. Since the basic functionality has now been split from cua-mode, I think that those functions belongs in delsel (if anywhere). Of course, the M-v binding should still only be active in cua-mode (since cua-mode takes over C-v it can also use M-v). I guess the functionality could be restored by suitable tweaking of the region-extract-function -- I will look into that possibility. -- Kim F. Storm http://www.cua.dk