From a8aee43bd29a425b3684083263ac1f2c1a335a91 Mon Sep 17 00:00:00 2001 From: Jay Belanger Date: Wed, 15 Sep 2004 16:54:26 +0000 Subject: [PATCH] (calc-mode): Compare `calc-settings-file' to `user-init-file' rather than "\\.emacs" to determine if it is the user-init-file. --- lisp/calc/calc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index daa01136dd7..22dbbef2c5b 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -1059,7 +1059,7 @@ Notations: 3.14e6 3.14 * 10^6 (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 -- 2.39.2