(setq load-prefer-newer t)

· back

My GNU Emacs configuration works from two machines I regularly use. Configuration is an Org file living within my Notes corpus. Then on save it's tangled into el file and init.el loads it. I keep custom packages in separate repository that configuration adds to load-path.

On <2026-08-22 Sat> I bumped into situation, when on one of machines, after fresh Emacs startup a symbol from lozenge.el package is not defined.

– prompt

defalias doesn't load via require and use-package why doesn't loading lozenge.el at emacs startup define an alias ◊git-status? I did (require 'lozenge), evaluated (use-package) block, added :demand t to it, still (◊git-status "~/.velppa/hotter.myaddr.dev") was failing with

eval: Symbol’s function definition is void: ◊git-status

I had to go to lozenge.el and do (eval-buffer) there.

Root cause was stale lozenge.elc file that didn't have alias defined. Solved by removing all elc files, and for the future setting this in Pavel's Emacs Configuration v3:

(setq load-prefer-newer t)