emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC] normalize kill-region in calc


From: Daniel Colascione
Subject: [RFC] normalize kill-region in calc
Date: Sat, 04 Jul 2015 16:28:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Right now, calc binds M-w to a special version of copy-region-as-kill
than copies the entire calc value (along with the calc stack prefix)
instead of just the highlighted region. This behavior is inconsistent
with other modes. Can we apply something like this patch? I'll fix the
documentation if we apply it.

diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el
index 67d0c27..baf4c3b 100644
--- a/lisp/calc/calc-ext.el
+++ b/lisp/calc/calc-ext.el
@@ -133,8 +133,8 @@
   (define-key calc-mode-map "\C-k" 'calc-kill)
   (define-key calc-mode-map "\M-k" 'calc-copy-as-kill)
   (define-key calc-mode-map "\C-w" 'calc-kill-region)
-  (define-key calc-mode-map "\M-w" 'calc-copy-region-as-kill)
-  (define-key calc-mode-map "\M-\C-w" 'kill-ring-save)
+  (define-key calc-mode-map "\M-w" 'kill-ring-save)
+  (define-key calc-mode-map "\M-\C-w" 'calc-copy-region-as-kill)
   (define-key calc-mode-map "\M-\C-m" 'calc-last-args)

   (define-key calc-mode-map "a" nil)

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]