From: Pierre-Yves <py@luyten.fr>
To: 18120@debbugs.gnu.org
Subject: bug#18120: cua-rect.el issue on help
Date: Sun, 27 Jul 2014 23:54:32 +0200 [thread overview]
Message-ID: <299BAB7F-F8D4-4029-9E7D-1C076ECF17EC@luyten.fr> (raw)
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
cua-rectangle feature does offer to type ? for help. It will display several available key sequence. Since modifier is not known, a function computes the string from the prefix variable.
It is basically a switch, which works for ‘hyper or ‘super or ‘alt or ‘meta , but it does not work for ‘control.
This is feasible to use ‘control as the modifier.
(setq cua--rectangle-modifier-key ‘control)
This one liner patch fixes the help in such case.
The cua-rect-help.patch is the result of `diff -c` command.
The 0001- prefixed patch is git, but I believe this is not the proper format.
[-- Attachment #2: cua-rect-help.patch --]
[-- Type: application/octet-stream, Size: 505 bytes --]
*** lisp/emulation/cua-rect.el.orig 2014-07-27 23:45:04.000000000 +0200
--- lisp/emulation/cua-rect.el 2014-07-27 23:44:56.000000000 +0200
***************
*** 1346,1351 ****
--- 1346,1352 ----
(let ((M (cond ((eq cua--rectangle-modifier-key 'hyper) " H-")
((eq cua--rectangle-modifier-key 'super) " s-")
((eq cua--rectangle-modifier-key 'alt) " A-")
+ ((eq cua--rectangle-modifier-key 'control) " C-")
(t " M-"))))
(message
(concat (if help "C-?:help" "")
[-- Attachment #3: 0001-cua-rect-help-check-for-control-value.patch --]
[-- Type: application/octet-stream, Size: 864 bytes --]
From e005034f22b87c5479e36649da416f7d74af1a72 Mon Sep 17 00:00:00 2001
From: Pierre-Yves Luyten <py@luyten.fr>
Date: Sun, 27 Jul 2014 20:04:50 +0200
Subject: [PATCH] cua-rect help : check for 'control value
---
lisp/emulation/cua-rect.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el
index d516bd4..2f9215b 100644
--- a/lisp/emulation/cua-rect.el
+++ b/lisp/emulation/cua-rect.el
@@ -1346,6 +1346,7 @@ With prefix arg, indent to that column."
(let ((M (cond ((eq cua--rectangle-modifier-key 'hyper) " H-")
((eq cua--rectangle-modifier-key 'super) " s-")
((eq cua--rectangle-modifier-key 'alt) " A-")
+ ((eq cua--rectangle-modifier-key 'control) " C-")
(t " M-"))))
(message
(concat (if help "C-?:help" "")
--
1.8.5.2 (Apple Git-48)
next reply other threads:[~2014-07-27 21:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-27 21:54 Pierre-Yves [this message]
2019-08-03 19:48 ` bug#18120: cua-rect.el issue on help Lars Ingebrigtsen
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=299BAB7F-F8D4-4029-9E7D-1C076ECF17EC@luyten.fr \
--to=py@luyten.fr \
--cc=18120@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.