Package: emacs22-common Version: 22.3+1-1 Severity: normal Tags: patch
I used to be able to do the following in emacs 22.2: 1. copy a formula like '2+4.5' to the kill ring 2. use 'M-x calc' to launch calc 3. hit 'C-y' to yank the formula into calc 4. hit '=' to get a result on the stack In emacs 22.3 calc hangs at step 3, until I hit Ctrl-g, and the text is not yanked, because Ctrl-y is bound to calc-missing-key instead of calc-yank. Ctrl-y is first bound to calc-yank in lisp/calc/calc.el, and a few lines later is bound again, together with many other keys, to calc-missing-key. I've attached a patch that fixes this. Cheers, Avi. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages emacs22-common depends on: ii dpkg 1.14.26 Debian package management system ii emacsen-common 1.4.17 Common facilities for all emacsen emacs22-common recommends no packages. Versions of packages emacs22-common suggests: ii emacs22-common-non-dfsg 22.3+1-1 GNU Emacs shared, architecture ind ii emacs22-el 22.3+1-1 GNU Emacs LISP (.el) files -- no debconf information
Index: emacs22-22.3+1/lisp/calc/calc.el =================================================================== --- emacs22-22.3+1.orig/lisp/calc/calc.el 2009-05-05 16:03:36.000000000 +0300 +++ emacs22-22.3+1/lisp/calc/calc.el 2009-05-05 16:03:43.000000000 +0300 @@ -955,7 +955,7 @@ "lOW") (mapc (lambda (x) (define-key map (char-to-string x) 'calc-missing-key)) (concat "ABCDEFGHIJKLMNPQRSTUVXZabcdfghjkmoprstuvwxyz" - ":\\|!()[]<>{},;=~`\C-k\M-k\C-w\M-w\C-y\C-_")) + ":\\|!()[]<>{},;=~`\C-k\M-k\C-w\M-w\C-_")) (mapc (lambda (x) (define-key map (char-to-string x) 'calcDigit-start)) "_0123456789.#@") map))
signature.asc
Description: OpenPGP digital signature