diff options
author | Jay Belanger <jay.p.belanger@gmail.com> | 2004-09-15 16:54:26 +0000 |
---|---|---|
committer | Jay Belanger <jay.p.belanger@gmail.com> | 2004-09-15 16:54:26 +0000 |
commit | a8aee43bd29a425b3684083263ac1f2c1a335a91 (patch) | |
tree | dc58244dfa54f055a24b9d3cd89a655e801aac58 /lisp/calc/calc.el | |
parent | f10b7b1b5af2d282b9586cfa32f60b1180a230ee (diff) | |
download | emacs-a8aee43bd29a425b3684083263ac1f2c1a335a91.tar.gz |
(calc-mode): Compare `calc-settings-file' to `user-init-file' rather
than "\\.emacs" to determine if it is the user-init-file.
Diffstat (limited to 'lisp/calc/calc.el')
-rw-r--r-- | lisp/calc/calc.el | 2 |
1 files changed, 1 insertions, 1 deletions
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 |