ecb-home / ecb

ECB Main Repository
Other
54 stars 11 forks source link

Warning at start: 'ad-with-originals' is an obsolete macro (as of 27.1) #41

Open xtian-kc opened 3 years ago

xtian-kc commented 3 years ago

ECB is using the macro 'ad-with-originals', which has been deprecated as of Emacs 27.1 and leads to a warning at startup.

The issue has originally been filed against the Debian bug tracker, please see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975884

ghost commented 2 years ago

Any idea how to fix this?

xtian-kc commented 2 years ago

Am Sonntag, 1. Mai 2022, 04:36:06 CEST schrieb Jim:

Any idea how to fix this?

This thread

https://mail.gnu.org/archive/html/bug-gnu-emacs/2020-11/msg01867.html

seems to deal with the same issue. I've skimmed through the thread and it seems to me the root cause has been found there. But there does not seem to be a quick fix. Would need to rewrite some code in ecb in order to get rid of that warning.

Alas, I'm not a lisp coder myself, nor do I have noteworthy insight into ecb...

HTH

--

gschisti commented 1 year ago

I have temporarily fixed this by compiling all ecb sources into /usr/share/emacs/site-lisp/ecb.

The message comes from the byte compile command and is executed on every startup, which is unnecessary enough. The aim is to prevent compiling every time.

Compiling the sources alone didn't work, I don't know how to just force emacs to use only the .elc files. So I finally removed all the .el files in the ecb subdirectory. ECB still works, but the message has disappeared. The emacs window is now no longer split into two buffers when calling something like: 'emacs myfoofile'.

If I start emacs in ecb-mode like this: /usr/bin/emacs --eval '(ecb-activate)' this message does not come up anyway.