all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Colascione <dancol@dancol.org>
To: Emacs-devel@gnu.org
Subject: [RFC] normalize kill-region in calc
Date: Sat, 04 Jul 2015 16:28:37 -0700	[thread overview]
Message-ID: <55986C25.6020705@dancol.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

             reply	other threads:[~2015-07-04 23:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-04 23:28 Daniel Colascione [this message]
2015-07-05 10:41 ` [RFC] normalize kill-region in calc Wolfgang Jenkner
2015-07-05 16:14   ` Jay Belanger

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=55986C25.6020705@dancol.org \
    --to=dancol@dancol.org \
    --cc=Emacs-devel@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.