unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18886: 24.4; M-v no longer works in CUA-mode.
@ 2014-10-29 16:54 Kim F. Storm
  2014-10-30  0:47 ` Stefan Monnier
  2016-06-26 17:55 ` Noam Postavsky
  0 siblings, 2 replies; 7+ messages in thread
From: Kim F. Storm @ 2014-10-29 16:54 UTC (permalink / raw)
  To: 18886


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  <storm@cua.dk>      http://www.cua.dk






^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-26 17:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 16:54 bug#18886: 24.4; M-v no longer works in CUA-mode Kim F. Storm
2014-10-30  0:47 ` Stefan Monnier
2014-10-30 16:46   ` Kim Storm
2014-10-30 19:23     ` Stefan Monnier
2014-10-30 20:39       ` Kim Storm
2014-11-02 17:04         ` Kim Storm
2016-06-26 17:55 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).