From: storm@cua.dk (Kim F. Storm)
To: 18886@debbugs.gnu.org
Subject: bug#18886: 24.4; M-v no longer works in CUA-mode.
Date: Wed, 29 Oct 2014 12:54:53 -0400 [thread overview]
Message-ID: <E1XjWWB-0007p8-Uk@eggs.gnu.org> (raw)
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
next reply other threads:[~2014-10-29 16:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 16:54 Kim F. Storm [this message]
2014-10-30 0:47 ` bug#18886: 24.4; M-v no longer works in CUA-mode 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1XjWWB-0007p8-Uk@eggs.gnu.org \
--to=storm@cua.dk \
--cc=18886@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.