mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Don't warn about lexbind cookies when loading calc settings
* lisp/calc/calc-mode.el (calc-settings-file-name): * lisp/calc/calc.el (calc-mode): Bind 'warning-inhibit-types' to avoid lexbind cookie missing warning.
This commit is contained in:
parent
c3fe19aab9
commit
3f73b29875
2 changed files with 4 additions and 2 deletions
|
|
@ -326,7 +326,8 @@
|
|||
(equal user-init-file calc-settings-file)
|
||||
(> arg 0))
|
||||
(< arg 0)
|
||||
(load name t)
|
||||
(let ((warning-inhibit-types '((files missing-lexbind-cookie))))
|
||||
(load name t))
|
||||
(message "New file")))))
|
||||
|
||||
(defun math-get-modes-vec ()
|
||||
|
|
|
|||
|
|
@ -1347,7 +1347,8 @@ Notations: 3.14e6 3.14 * 10^6
|
|||
(equal calc-settings-file user-init-file)
|
||||
(progn
|
||||
(setq calc-loaded-settings-file t)
|
||||
(load (file-name-sans-extension calc-settings-file) t))) ; t = missing-ok
|
||||
(let ((warning-inhibit-types '((files missing-lexbind-cookie))))
|
||||
(load (file-name-sans-extension calc-settings-file) t)))) ; t = missing-ok
|
||||
(let ((p command-line-args))
|
||||
(while p
|
||||
(and (equal (car p) "-f")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue