changeset 57117:d2ffbe58525c

(calc-mode): Compare `calc-settings-file' to `user-init-file' rather than "\\.emacs" to determine if it is the user-init-file.
author Jay Belanger <jay.p.belanger@gmail.com>
date Wed, 15 Sep 2004 16:54:26 +0000
parents 344baab70c72
children 5105863ead20
files lisp/calc/calc.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calc/calc.el	Wed Sep 15 16:49:04 2004 +0000
+++ b/lisp/calc/calc.el	Wed Sep 15 16:54:26 2004 +0000
@@ -1059,7 +1059,7 @@
   (setq calc-stack-top (- (length calc-stack) calc-stack-top -1))
   (or calc-loaded-settings-file
       (null calc-settings-file)
-      (string-match "\\.emacs" calc-settings-file)
+      (equal calc-settings-file user-init-file)
       (progn
 	(setq calc-loaded-settings-file t)
 	(load calc-settings-file t)))   ; t = missing-ok