unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* latest emacs version does not have compat-declare-version defined
@ 2022-09-22 10:34 Eric S Fraga
  2022-09-22 13:02 ` Eric S Fraga
  2022-09-22 17:19 ` Philip Kaludercic
  0 siblings, 2 replies; 4+ messages in thread
From: Eric S Fraga @ 2022-09-22 10:34 UTC (permalink / raw)
  To: emacs-devel

Hello all,

I have just updated my Emacs from git.  Built and installed.  However,
when I try to use it, any package that requires the compat package fails
with

invalid-function compat-declare-version

I have finally managed to get Emacs to start by removing reference to
any packages that I was using that required 'compat.  Not ideal but at
least I'm able to read my email and get some work done...

I've updated all ELPA/MELPA packages as well, by the way.

Any pointers welcome.

Thank you,
eric

-- 
Eric S Fraga via gnus (Emacs 29.0.50 2022-09-22) on Debian 11.4




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: latest emacs version does not have compat-declare-version defined
  2022-09-22 10:34 latest emacs version does not have compat-declare-version defined Eric S Fraga
@ 2022-09-22 13:02 ` Eric S Fraga
  2022-09-22 17:19 ` Philip Kaludercic
  1 sibling, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2022-09-22 13:02 UTC (permalink / raw)
  To: emacs-devel

Please ignore.  The problem is in the compat package and it is a known
problem to do with macros (and with a proposed solution that has not yet
percolated through to elpa)...  I had looked on Emacs bugs but not the
compat package issues.  My bad!

Thank you,
eric

-- 
Eric S Fraga via gnus (Emacs 29.0.50 2022-09-22) on Debian 11.4




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: latest emacs version does not have compat-declare-version defined
  2022-09-22 10:34 latest emacs version does not have compat-declare-version defined Eric S Fraga
  2022-09-22 13:02 ` Eric S Fraga
@ 2022-09-22 17:19 ` Philip Kaludercic
  2022-09-23 10:38   ` Fraga, Eric
  1 sibling, 1 reply; 4+ messages in thread
From: Philip Kaludercic @ 2022-09-22 17:19 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-devel

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Hello all,
>
> I have just updated my Emacs from git.  Built and installed.  However,
> when I try to use it, any package that requires the compat package fails
> with
>
> invalid-function compat-declare-version
>
> I have finally managed to get Emacs to start by removing reference to
> any packages that I was using that required 'compat.  Not ideal but at
> least I'm able to read my email and get some work done...

An alternative would have been to recompile all packages.

> I've updated all ELPA/MELPA packages as well, by the way.
>
> Any pointers welcome.
>
> Thank you,
> eric

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Please ignore.  The problem is in the compat package and it is a known
> problem to do with macros (and with a proposed solution that has not yet
> percolated through to elpa)...  I had looked on Emacs bugs but not the
> compat package issues.  My bad!

This was an unfortunate bug that I am still uncertain as to what the
cause was.  My understanding is that the invalid function
`compat-declare-version' (a macro) was added to a file (compat-macs.el)
with other macros.  If you update the package, and the new files are
byte-compiled, they attempt to require 'compat-macs.  But as this
feature has already been loaded, nothing happens.  Therefore the new
definitions are missing.

I might be mistaken, but if not the issue lies in the order which
package.el (or other package managers) decide to (re-)compile files in a
package.  What might be needed is some kind of dependency analysis to
determine in what order files have to be re-compiled.

The proposed solution you mention is to always load -- not require --
"compat-macs.el" during compilation.  Not pretty, but I hope it works.

> Thank you,
> eric



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: latest emacs version does not have compat-declare-version defined
  2022-09-22 17:19 ` Philip Kaludercic
@ 2022-09-23 10:38   ` Fraga, Eric
  0 siblings, 0 replies; 4+ messages in thread
From: Fraga, Eric @ 2022-09-23 10:38 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: emacs-devel@gnu.org

On Thursday, 22 Sep 2022 at 17:19, Philip Kaludercic wrote:
> The proposed solution you mention is to always load -- not require --
> "compat-macs.el" during compilation.  Not pretty, but I hope it works.

I modified all the compat-xx.el files to load, recompiled the directory,
and everything is working fine (so far).

Thank you,
eric

-- 
Eric S Fraga via gnus (Emacs 29.0.50 2022-09-22) on Debian 11.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-23 10:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 10:34 latest emacs version does not have compat-declare-version defined Eric S Fraga
2022-09-22 13:02 ` Eric S Fraga
2022-09-22 17:19 ` Philip Kaludercic
2022-09-23 10:38   ` Fraga, Eric

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).