Package: calc
Version: 2.02f-24
Severity: important
Tags: patch
After I installed calc, the version bundled with emacs-snapshot stopped
working, pressing M-# signals the error:
Symbol's function definition is void: calc-record-compilation-date-macro
Enabling debug-on-error gave me the following backtrace:
Debugger entered--Lisp error: (void-function calc-record-compilation-date-macro)
(calc-record-compilation-date-macro)
calc-record-compilation-date()
eval-buffer(#<buffer *load*> nil "/usr/share/emacs/site-lisp/calc/calc.el"
nil t) ; Reading at buffer position 2875
load-with-code-conversion("/usr/share/emacs/site-lisp/calc/calc.el"
"calc/calc" nil nil)
Interpretation: Although /usr/share/emacs/site-lisp/calc is not the load-path
of emacs-snapshot, /usr/share/emacs/site-lisp is there and comes before
/usr/share/emacs/22.0.50/lisp. That alone would not be a problem, but
/etc/emacs/site-start.d/50calc.el has
(autoload 'calc-dispatch "calc/calc" "Calculator Options" t)
in it, and so Emacs loads the (uncompiled) version from the wrong place. :-(
I suggest to replace all instances of "calc/calc" in 50calc.el with "calc",
i.e. the following patch:
--------------------------------<-8--------------------------------------
diff -u 50calc.el~ 50calc.el
--- 50calc.el~ 2002-04-11 01:13:39.000000000 +0200
+++ 50calc.el 2005-11-25 14:45:27.000000000 +0100
@@ -18,16 +18,16 @@
"/site-lisp/calc") load-path))
-(autoload 'calc-dispatch "calc/calc" "Calculator Options" t)
-(autoload 'full-calc "calc/calc" "Full-screen Calculator" t)
-(autoload 'full-calc-keypad "calc/calc" "Full-screen X Calculator" t)
-(autoload 'calc-eval "calc/calc" "Use Calculator from Lisp")
-(autoload 'defmath "calc/calc" nil t t)
-(autoload 'calc "calc/calc" "Calculator Mode" t)
-(autoload 'quick-calc "calc/calc" "Quick Calculator" t)
-(autoload 'calc-keypad "calc/calc" "X windows Calculator" t)
-(autoload 'calc-embedded "calc/calc" "Use Calc inside any buffer" t)
-(autoload 'calc-embedded-activate "calc/calc" "Activate =>'s in buffer" t)
-(autoload 'calc-grab-region "calc/calc" "Grab region of Calc data" t)
-(autoload 'calc-grab-rectangle "calc/calc" "Grab rectangle of data" t)
+(autoload 'calc-dispatch "calc" "Calculator Options" t)
+(autoload 'full-calc "calc" "Full-screen Calculator" t)
+(autoload 'full-calc-keypad "calc" "Full-screen X Calculator" t)
+(autoload 'calc-eval "calc" "Use Calculator from Lisp")
+(autoload 'defmath "calc" nil t t)
+(autoload 'calc "calc" "Calculator Mode" t)
+(autoload 'quick-calc "calc" "Quick Calculator" t)
+(autoload 'calc-keypad "calc" "X windows Calculator" t)
+(autoload 'calc-embedded "calc" "Use Calc inside any buffer" t)
+(autoload 'calc-embedded-activate "calc" "Activate =>'s in buffer" t)
+(autoload 'calc-grab-region "calc" "Grab region of Calc data" t)
+(autoload 'calc-grab-rectangle "calc" "Grab rectangle of data" t)
(global-set-key "\e#" 'calc-dispatch)
--------------------------------<-8--------------------------------------
That's what I did, and it solves the problem for emacs-snapshot while keeping
Calc working with emacs21.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (3, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.32
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Versions of packages calc depends on:
ii emacs21 21.4a-3 The GNU Emacs editor
ii ucf 2.003 Update Configuration File: preserv
calc recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]