GNU bug report logs - #5617
23.1; Preferences of Calc are lost when started twice during Emacs session

Previous Next

Package: emacs;

Reported by: ithies <at> astro.uni-bonn.de

Date: Sun, 21 Feb 2010 17:42:02 UTC

Severity: normal

Tags: moreinfo

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5617 in the body.
You can then email your comments to 5617 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5617; Package emacs. (Sun, 21 Feb 2010 17:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ithies <at> astro.uni-bonn.de:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 21 Feb 2010 17:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ingo Thies <ingo.thies <at> gmx.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1; Preferences of Calc are lost when started twice during Emacs
	session
Date: Sun, 21 Feb 2010 18:14:09 +0100
Dear developers,

I want to submit a possible bug concerning Emacs (23.1.1) and Calc 
(2.02), both in Linux and Mac. If Calc is started first during an Emacs 
session, then closed, and later opened again, the preferences from 
.calc.el are not reloaded again. A workaround is possible by adding

(add-hook 'calc-mode-hook
(function (lambda ()
(load "~/.calc.el"))))"

to .emacs.  However, I guess that this behaviour is not intended.

BTW there were problems submitting this mail (invalid certificate). I 
could not tell whether the first attempt was successfull (Thunderbird 
says 'no'), so please apologize if this mail arrives twice.

Cheers,

Ingo


In GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, GTK+ Version 2.16.6)
of 2009-09-19 on ingo-thiess-macbook.local
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure '--prefix=/sw' 
'--disable-dependency-tracking' '--infodir=${prefix}/share/info' 
'--mandir=${prefix}/share/man' '--libexecdir=${prefix}/lib' 
'PKG_CONFIG_PATH=/sw/lib/pango-ft219/lib/pkgconfig:/sw/lib/fontconfig2/lib/pkgconfig:/sw/lib/freetype219/lib/pkgconfig:' 
'FREETYPE_CONFIG=/sw/lib/freetype219/bin/freetype-config' 
'--x-includes=/usr/X11R6/include' '--x-libraries=/usr/X11R6/lib' 
'--with-x' '--with-x-toolkit=gtk' 'CFLAGS=-Os -pipe' 
'LDFLAGS=-L/sw/lib/pango-ft219/lib -L/sw/lib/freetype219/lib 
-L/sw/lib/fontconfig2/lib' 'LIBS=-L/sw/lib -L/usr/X11/lib' 
'CPPFLAGS=-I/sw/lib/pango-ft219/include/pango-1.0 
-I/sw/lib/pango-ft219/include -I/sw/lib/freetype219/include/freetype2 
-I/sw/lib/freetype219/include -I/sw/lib/fontconfig2/include -I/sw/include''

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: nil
value of $XMODIFIERS: nil
locale-coding-system: nil
default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
tooltip-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> M-x r e p o <tab> r t <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5617; Package emacs. (Mon, 22 Feb 2010 01:17:02 GMT) Full text and rfc822 format available.

Message #8 received at 5617 <at> debbugs.gnu.org (full text, mbox):

From: Jay Belanger <jay.p.belanger <at> gmail.com>
To: Ingo Thies <ingo.thies <at> gmx.de>
Cc: jay.p.belanger <at> gmail.com, 5617 <at> debbugs.gnu.org
Subject: Re: bug#5617: 23.1;
	Preferences of Calc are lost when started twice during Emacs session
Date: Sun, 21 Feb 2010 19:14:16 -0600
> I want to submit a possible bug concerning Emacs (23.1.1) and Calc
> (2.02), both in Linux and Mac.

Calc 2.02 is a very old version of Calc; Emacs 23.1.1 comes with its own
version. 

> If Calc is started first during an Emacs session, then closed, and
> later opened again, the preferences from .calc.el are not reloaded
> again.

What preferences are you referring to?  Any changes in the mode settings
should be handled properly without rereading the settings file.  The
intended behavior is that if you open a Calc buffer and make changes,
starting another copy of Calc (`another-calc') should have the same
settings as the first copy originally had.  (Hmm, this isn't working
correctly right now; I'll have to fix it.)  If you change some modes and
save them (`calc-save-modes'), then if another copy of Calc rereads the
init file it would have the new modes, not the original modes.  (Either
using the new modes or the original modes would sound reasonable to me; 
Calc was just designed to have the latter behavior.)

It sounds like you are quitting Calc by killing the buffer.  If you use
`q'(`calc-quit') first, then the current modes will become the new
default modes (the new "original" modes).  Or, of course, you could
...
>  A workaround is possible by adding
>
> (add-hook 'calc-mode-hook
> (function (lambda ()
> (load "~/.calc.el"))))"
>
> to .emacs.  However, I guess that this behaviour is not intended.

Jay




bug reassigned from package 'emacs' to 'emacs,calc'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 22 Feb 2010 18:02:02 GMT) Full text and rfc822 format available.

Added tag(s) moreinfo. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 23 Feb 2010 20:57:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 5617 <at> debbugs.gnu.org and ithies <at> astro.uni-bonn.de Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 07 Feb 2013 01:47:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 07 Mar 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.