Re: [PATCH] Silencing the compiler with latest Emacs master
Arash Esbati <[email protected]> Wed, 13 Jul 2022 10:24:39 +0200
| Newsgroups | gmane.emacs.bbdb.user |
|---|---|
| Message-ID | <[email protected]> |
Roland Winkler <[email protected]> writes: > On Wed, Jul 06 2022, Arash Esbati wrote: > > It seems you are updating your emacs from trunk more often than me. I'm trying to reduce the frequency, it ends up in work for me :-) >> Further, the compiler complains about: >> >> bbdb.el:1736:29: Warning: =E2=80=98sc-load-hook=E2=80=99 is an obsolet= e variable (as of 26.1); >> use =E2=80=98with-eval-after-load=E2=80=99 instead. >> >> I'm also attaching a small change using `eval-after-load' which should >> fix this and also supports older Emacs'en. > > Funny! Emacs 27 and 28 compile this code without complaints. > But I'll be glad when these load hooks disappear. I also can't tell why the compiler started complaining 6 years after making that hook obsolete. Best, Arash