* Calc problem
@ 2004-02-18 8:39 Richard Stallman
2004-02-18 13:41 ` Jay Belanger
0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2004-02-18 8:39 UTC (permalink / raw)
Can someone work on this?
Date: Tue, 17 Feb 2004 10:10:14 +1100
From: Stephen Powell <stephen_powell@optusnet.com.au>
To: emacs-pretest-bug@gnu.org
X-Posting-Agent: Hamster/2.0.4.0
Subject: void-variable calc-mode-var-list
Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org
Symptoms:
# start emacs
emacs --no-init-file --no-site-file
# backtrace on error
M-x toggle-debug-on-error
# start calculator
<ESC> # C
# 1 + 2 = 3
1 <RET>
2 +
# Reset calculator - the 0 is a zero
<ESC> # 0
# Gives this backtrace
Debugger entered--Lisp error: (void-variable calc-mode-var-list)
calc-reset(nil)
call-interactively(calc-reset)
calc-do-dispatch(nil)
calc-dispatch(nil)
call-interactively(calc-dispatch)
I've reported with M-x report-calc-bug but deego@gnufans.org said to
report it here.
In GNU Emacs 21.3.50.1 (i386-msvc-nt5.1.2600)
of 2004-02-15 on D3LD581S
configured using `configure --with-msvc (12.00) --cflags -DENABLE_CHECKING'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ENA
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
Major mode: Debugger
Minor modes in effect:
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
unify-8859-on-encoding-mode: t
line-number-mode: t
Recent input:
M-x t o g g l e SPC d e b g i n <backspace> <backspace>
<backspace> u g SPC o n SPC e r r o r <return> <escape>
# c 1 <return> 2 + <escape> # 0 <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>
Recent messages:
Debug on Error enabled
Loading calc...done
Welcome to the GNU Emacs Calculator! Press `?' or `h' for help, `q' to quit
Working...
ESC # (Type ? for a list of Calc options)
Loading calc-ext...done
Loading debug...done
Entering debugger...
Loading help-mode...done
Loading emacsbug...done
_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-pretest-bug
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Calc problem
2004-02-18 8:39 Calc problem Richard Stallman
@ 2004-02-18 13:41 ` Jay Belanger
2004-02-18 18:21 ` Patches (Re: Calc problem) Jay Belanger
0 siblings, 1 reply; 3+ messages in thread
From: Jay Belanger @ 2004-02-18 13:41 UTC (permalink / raw)
Cc: belanger, emacs-devel
Richard Stallman <rms@gnu.org> writes:
> Can someone work on this?
...
> # Gives this backtrace
> Debugger entered--Lisp error: (void-variable calc-mode-var-list)
I tried it and didn't get the error here.
calc-mode-var-list is needed for saving calc settings, among other
things, but has been removed from the Calc in cvs emacs.
I posted a patch putting calc-mode-var-list back into calc (and use
the patch myself, which is perhaps why I don't get the error even
though I'm using a recent cvs emacs). I'd be happy to post it again,
if wanted.
Jay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Patches (Re: Calc problem)
2004-02-18 13:41 ` Jay Belanger
@ 2004-02-18 18:21 ` Jay Belanger
0 siblings, 0 replies; 3+ messages in thread
From: Jay Belanger @ 2004-02-18 18:21 UTC (permalink / raw)
Cc: Robert J. Chassell, belanger
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]
The purpose of calc-mode-var-list seems to be to allow users to
access and change variable settings easily; the variables in the list
are actually bound by a mapcar. I think this was got rid of because
it didn't give docstrings to the variables.
The following patches put calc-mode-var-list back in, and also adds
docstrings to the variables when they are bound.
The list is used by a couple of functions in calc.el and
calc-embed.el, so because the list has been changed to include
docstrings, some minor changes are needed in those functions.
So included are patches for calc.el and calc-embed.el.
(Completely unrelated, but calc-mode compares the calc-settings file
to ".emacs" to make sure it doesn't get loaded twice. The problem is
that it only checks to see if the calc settings file contains the
string ".emacs", so if it is "~/.emacs.d/calc", for example, it
doesn't get loaded. Miles Bader suggested changing the check to see
if the calc-settings file is actually the user-init-file instead of
seeing if it contains ".emacs". The third patch does that.)
Jay
[-- Attachment #2: Patch to put calc-mode-var-list in calc.el (gzipped) --]
[-- Type: application/octet-stream, Size: 4345 bytes --]
[-- Attachment #3: Patch to take care of calc-mode-var-list in calc-embed.el (gzipped) --]
[-- Type: application/octet-stream, Size: 287 bytes --]
[-- Attachment #4: Patch to take care of settings file in calc.el (gzipped) --]
[-- Type: application/octet-stream, Size: 288 bytes --]
[-- Attachment #5: Type: text/plain, Size: 141 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-18 18:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-18 8:39 Calc problem Richard Stallman
2004-02-18 13:41 ` Jay Belanger
2004-02-18 18:21 ` Patches (Re: Calc problem) Jay Belanger
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).