]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/loadup.el: Fix "Eager macro-expansion error" on w32.
authorEli Zaretskii <eliz@gnu.org>
Sat, 18 Sep 2021 07:56:05 +0000 (10:56 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Sep 2021 07:56:05 +0000 (10:56 +0300)
lisp/loadup.el

index 0ea441de01253437d2d02b9f4e6bffdd24f313a6..1889ff562c617e730b1b9736bacf55b4aab3d24d 100644 (file)
 (load "textmodes/paragraphs")
 (load "progmodes/prog-mode")
 (load "emacs-lisp/lisp-mode")
-(load "progmodes/elisp-mode")
 (load "textmodes/text-mode")
 (load "textmodes/fill")
 (load "newcomment")
     ;; Do it after loading term/foo-win.el since the value of the
     ;; mouse-wheel-*-event vars depends on those files being loaded or not.
     (load "mwheel"))
+
+;; progmodes/elisp-mode.el must be after w32-fns.el, to avoid this:
+;;"Eager macro-expansion failure: (void-function w32-convert-standard-filename)"
+;; which happens while processing 'elisp-flymake-byte-compile', when
+;; elisp-mode.elc is outdated.
+(load "progmodes/elisp-mode")
+
 ;; Preload some constants and floating point functions.
 (load "emacs-lisp/float-sup")