unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65464: Emacs 29.1 - VHDL mode missing updates…
@ 2023-08-22 16:15 Tracy’s Gmail
  2023-08-23 10:47 ` Stefan Kangas
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Tracy’s Gmail @ 2023-08-22 16:15 UTC (permalink / raw)
  To: 65464

Emacs 29.1 seems to have an old version of vhdl-model.el.  It says that it’s 3.38.5 but it’s missing multiple updates that were in 3.38.3. It is also showing a date of 2015-03-12 which is very old.  

Thanks.
Tracy

Sent from my iPhone




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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-22 16:15 bug#65464: Emacs 29.1 - VHDL mode missing updates… Tracy’s Gmail
@ 2023-08-23 10:47 ` Stefan Kangas
  2023-08-29 13:23   ` Reto Zimmermann
  2023-09-02  9:20 ` Mattias Engdegård
  2023-09-11 16:21 ` Mattias Engdegård
  2 siblings, 1 reply; 21+ messages in thread
From: Stefan Kangas @ 2023-08-23 10:47 UTC (permalink / raw)
  To: justafrogg; +Cc: Reto Zimmermann, 65464

Tracy’s Gmail <justafrogg@gmail.com> writes:

> Emacs 29.1 seems to have an old version of vhdl-model.el.  It says that it’s 3.38.5 but it’s missing multiple updates that were in 3.38.3. It is also showing a date of 2015-03-12 which is very old.
>
> Thanks.
> Tracy

Reto, do you have any comments here?





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-23 10:47 ` Stefan Kangas
@ 2023-08-29 13:23   ` Reto Zimmermann
  2023-08-29 16:46     ` Stefan Kangas
  0 siblings, 1 reply; 21+ messages in thread
From: Reto Zimmermann @ 2023-08-29 13:23 UTC (permalink / raw)
  To: Stefan Kangas, justafrogg; +Cc: 65464

The vhdl-mode.el versions in the Emacs and my own distribution are not 
in sync.

My latest version 3.39.2 with all older and recent updates is at

https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html

Reto


On 2023-08-23 12:47, Stefan Kangas wrote:
> Tracy’s Gmail <justafrogg@gmail.com> writes:
>
>> Emacs 29.1 seems to have an old version of vhdl-model.el.  It says that it’s 3.38.5 but it’s missing multiple updates that were in 3.38.3. It is also showing a date of 2015-03-12 which is very old.
>>
>> Thanks.
>> Tracy
> Reto, do you have any comments here?






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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-29 13:23   ` Reto Zimmermann
@ 2023-08-29 16:46     ` Stefan Kangas
  2023-08-29 16:56       ` Tracy’s Gmail
  2023-08-30 12:23       ` Reto Zimmermann
  0 siblings, 2 replies; 21+ messages in thread
From: Stefan Kangas @ 2023-08-29 16:46 UTC (permalink / raw)
  To: Reto Zimmermann; +Cc: justafrogg, 65464

Reto Zimmermann <reto@gnu.org> writes:

> My latest version 3.39.2 with all older and recent updates is at
>
> https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html

Would you be willing to merge the changes from the Emacs master branch
into your version, and perhpaps even release a new version based on
the result?  Then we could just simply copy your new version into
emacs.git.

One important thing that has changed in emacs.git version is that
lexical-binding was enabled.





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-29 16:46     ` Stefan Kangas
@ 2023-08-29 16:56       ` Tracy’s Gmail
  2023-08-29 18:25         ` Stefan Kangas
  2023-08-30 12:23       ` Reto Zimmermann
  1 sibling, 1 reply; 21+ messages in thread
From: Tracy’s Gmail @ 2023-08-29 16:56 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Reto Zimmermann, 65464

To all concerned,

I’m not proficient in Lisp so merging the code would be better suited to someone else.  

I use vhdl-mode every day so I was able to identify issue.  

Thanks!
Tracy Garner


Sent from my iPhone

On Aug 29, 2023, at 10:46 AM, Stefan Kangas <stefankangas@gmail.com> wrote:

Reto Zimmermann <reto@gnu.org> writes:

> My latest version 3.39.2 with all older and recent updates is at
> 
> https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html

Would you be willing to merge the changes from the Emacs master branch
into your version, and perhpaps even release a new version based on
the result?  Then we could just simply copy your new version into
emacs.git.

One important thing that has changed in emacs.git version is that
lexical-binding was enabled.





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-29 16:56       ` Tracy’s Gmail
@ 2023-08-29 18:25         ` Stefan Kangas
  0 siblings, 0 replies; 21+ messages in thread
From: Stefan Kangas @ 2023-08-29 18:25 UTC (permalink / raw)
  To: Tracy’s Gmail; +Cc: Reto Zimmermann, 65464

Tracy’s Gmail <justafrogg@gmail.com> writes:

> I’m not proficient in Lisp so merging the code would be better suited to someone else.

Thanks, let's see what Reto says.





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-29 16:46     ` Stefan Kangas
  2023-08-29 16:56       ` Tracy’s Gmail
@ 2023-08-30 12:23       ` Reto Zimmermann
  2023-08-30 13:38         ` Eli Zaretskii
  1 sibling, 1 reply; 21+ messages in thread
From: Reto Zimmermann @ 2023-08-30 12:23 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: justafrogg, 65464

On 2023-08-29 18:46, Stefan Kangas wrote:
> Reto Zimmermann <reto@gnu.org> writes:
> 
>> My latest version 3.39.2 with all older and recent updates is at
>>
>> https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html
> 
> Would you be willing to merge the changes from the Emacs master branch
> into your version, and perhpaps even release a new version based on
> the result?  Then we could just simply copy your new version into
> emacs.git.
> 
> One important thing that has changed in emacs.git version is that
> lexical-binding was enabled.

Too many changes have been applied on Emacs side without my knowledge. 
Some time ago I went through all of them and merged many into my code, 
but some changes I could not approve of because they broke/changed 
functionality and therefore didn't apply them.  So, there are still 
quite some differences that I'm not able to resolve myself.





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-30 12:23       ` Reto Zimmermann
@ 2023-08-30 13:38         ` Eli Zaretskii
  2023-08-31 11:32           ` Reto Zimmermann
  0 siblings, 1 reply; 21+ messages in thread
From: Eli Zaretskii @ 2023-08-30 13:38 UTC (permalink / raw)
  To: Reto Zimmermann; +Cc: justafrogg, 65464, stefankangas

> Cc: justafrogg@gmail.com, 65464@debbugs.gnu.org
> Date: Wed, 30 Aug 2023 14:23:44 +0200
> From: Reto Zimmermann <reto@gnu.org>
> 
> On 2023-08-29 18:46, Stefan Kangas wrote:
> > Reto Zimmermann <reto@gnu.org> writes:
> > 
> >> My latest version 3.39.2 with all older and recent updates is at
> >>
> >> https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html
> > 
> > Would you be willing to merge the changes from the Emacs master branch
> > into your version, and perhpaps even release a new version based on
> > the result?  Then we could just simply copy your new version into
> > emacs.git.
> > 
> > One important thing that has changed in emacs.git version is that
> > lexical-binding was enabled.
> 
> Too many changes have been applied on Emacs side without my knowledge. 
> Some time ago I went through all of them and merged many into my code, 
> but some changes I could not approve of because they broke/changed 
> functionality and therefore didn't apply them.  So, there are still 
> quite some differences that I'm not able to resolve myself.

Maybe we should discuss those changes you don't approve, and see
whether we indeed must have them in Emacs, or maybe find a different
way of solving whatever problems they intended to solve, way that you
would agree with.

In general, if you keep developing and maintaining the package, I
think we should try very hard not to diverge what we have in Emacs.





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-30 13:38         ` Eli Zaretskii
@ 2023-08-31 11:32           ` Reto Zimmermann
  2023-08-31 13:00             ` Eli Zaretskii
  0 siblings, 1 reply; 21+ messages in thread
From: Reto Zimmermann @ 2023-08-31 11:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: justafrogg, 65464, stefankangas

On 2023-08-30 15:38, Eli Zaretskii wrote:
>> Cc: justafrogg@gmail.com, 65464@debbugs.gnu.org
>> Date: Wed, 30 Aug 2023 14:23:44 +0200
>> From: Reto Zimmermann <reto@gnu.org>
>>
>> On 2023-08-29 18:46, Stefan Kangas wrote:
>>> Reto Zimmermann <reto@gnu.org> writes:
>>>
>>>> My latest version 3.39.2 with all older and recent updates is at
>>>>
>>>> https://iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html
>>>
>>> Would you be willing to merge the changes from the Emacs master branch
>>> into your version, and perhpaps even release a new version based on
>>> the result?  Then we could just simply copy your new version into
>>> emacs.git.
>>>
>>> One important thing that has changed in emacs.git version is that
>>> lexical-binding was enabled.
>>
>> Too many changes have been applied on Emacs side without my knowledge.
>> Some time ago I went through all of them and merged many into my code,
>> but some changes I could not approve of because they broke/changed
>> functionality and therefore didn't apply them.  So, there are still
>> quite some differences that I'm not able to resolve myself.
> 
> Maybe we should discuss those changes you don't approve, and see
> whether we indeed must have them in Emacs, or maybe find a different
> way of solving whatever problems they intended to solve, way that you
> would agree with.
> 
> In general, if you keep developing and maintaining the package, I
> think we should try very hard not to diverge what we have in Emacs.

Agree.  I will be busy the next few weeks, but after that I will look 
into it and start a discussion to resolve the differences.

In the meantime I have a question: when byte-compiling vhdl-mode.el with 
Emacs 29.1 a 'defvar-1' ends up in vhdl-mode.elc, which causes an error 
in older Emacs versions:

File mode specification error: (void-function defvar-1)

Someone reported the error for Emacs 28.2, but I can't reproduce.  I can 
reproduce on Emacs 15.1.  Is this a known problem?





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-31 11:32           ` Reto Zimmermann
@ 2023-08-31 13:00             ` Eli Zaretskii
  2023-08-31 14:59               ` Stefan Kangas
  2023-08-31 18:46               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 21+ messages in thread
From: Eli Zaretskii @ 2023-08-31 13:00 UTC (permalink / raw)
  To: Reto Zimmermann, Stefan Monnier; +Cc: justafrogg, 65464, stefankangas

> Date: Thu, 31 Aug 2023 13:32:12 +0200
> Cc: stefankangas@gmail.com, justafrogg@gmail.com, 65464@debbugs.gnu.org
> From: Reto Zimmermann <reto@gnu.org>
> 
> > Maybe we should discuss those changes you don't approve, and see
> > whether we indeed must have them in Emacs, or maybe find a different
> > way of solving whatever problems they intended to solve, way that you
> > would agree with.
> > 
> > In general, if you keep developing and maintaining the package, I
> > think we should try very hard not to diverge what we have in Emacs.
> 
> Agree.  I will be busy the next few weeks, but after that I will look 
> into it and start a discussion to resolve the differences.

Thanks.

> In the meantime I have a question: when byte-compiling vhdl-mode.el with 
> Emacs 29.1 a 'defvar-1' ends up in vhdl-mode.elc, which causes an error 
> in older Emacs versions:
> 
> File mode specification error: (void-function defvar-1)
> 
> Someone reported the error for Emacs 28.2, but I can't reproduce.  I can 
> reproduce on Emacs 15.1.  Is this a known problem?

Stefan Monnier added that in commit 80ba4c17075, which was about
bug#55156.  Stefan, can you answer this question?  Did we make our
bytecode in Emacs 29 backward-incompatible?





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-31 13:00             ` Eli Zaretskii
@ 2023-08-31 14:59               ` Stefan Kangas
  2023-08-31 18:46               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 21+ messages in thread
From: Stefan Kangas @ 2023-08-31 14:59 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Reto Zimmermann, justafrogg, 65464, Stefan Monnier

Eli Zaretskii <eliz@gnu.org> writes:

> Stefan Monnier added that in commit 80ba4c17075, which was about
> bug#55156.  Stefan, can you answer this question?  Did we make our
> bytecode in Emacs 29 backward-incompatible?

See also Bug#57929.





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-31 13:00             ` Eli Zaretskii
  2023-08-31 14:59               ` Stefan Kangas
@ 2023-08-31 18:46               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-09-10  7:47                 ` Eli Zaretskii
  1 sibling, 1 reply; 21+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-31 18:46 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Reto Zimmermann, justafrogg, 65464, stefankangas

> Stefan Monnier added that in commit 80ba4c17075, which was about
> bug#55156.  Stefan, can you answer this question?

Yes, he did :-)


        Stefan






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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-22 16:15 bug#65464: Emacs 29.1 - VHDL mode missing updates… Tracy’s Gmail
  2023-08-23 10:47 ` Stefan Kangas
@ 2023-09-02  9:20 ` Mattias Engdegård
  2023-09-11 16:21 ` Mattias Engdegård
  2 siblings, 0 replies; 21+ messages in thread
From: Mattias Engdegård @ 2023-09-02  9:20 UTC (permalink / raw)
  To: 65464
  Cc: Reto Zimmermann, Eli Zaretskii, justafrogg, Stefan Kangas,
	Stefan Monnier

Reto, while you're at it you may also want to take a look at vhdl-last-word:

(defun vhdl-last-word (point)
  "If keyword at POINT is at eoi, then return (current-column) at that point.
Otherwise, return nil."
  (save-excursion
    (and (goto-char point)
	 (save-excursion (or (eq (progn (forward-sexp) (point))
				 (vhdl-point 'eoi))
			     (looking-at "\\s-*\\(--\\)?")))
	 (current-column))))

Since the calls to goto-char and looking-at never return nil, this function will always return the column of its argument. (The regexp matches the empty string so looking-at will succeed anywhere.)

And because vhdl-last-word is only used for its boolean value and never returns nil, calls to this function could effectively be replaced by t, but that was probably not the intention.






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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-31 18:46               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-09-10  7:47                 ` Eli Zaretskii
  2023-09-11  2:40                   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 21+ messages in thread
From: Eli Zaretskii @ 2023-09-10  7:47 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: reto, justafrogg, 65464, stefankangas

Ping!

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Reto Zimmermann <reto@gnu.org>,  justafrogg@gmail.com,
>   65464@debbugs.gnu.org,  stefankangas@gmail.com
> Date: Thu, 31 Aug 2023 14:46:48 -0400
> 
> > Stefan Monnier added that in commit 80ba4c17075, which was about
> > bug#55156.  Stefan, can you answer this question?
> 
> Yes, he did :-)
> 
> 
>         Stefan
> 
> 





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-09-10  7:47                 ` Eli Zaretskii
@ 2023-09-11  2:40                   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-09-11 11:40                     ` Eli Zaretskii
  0 siblings, 1 reply; 21+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-09-11  2:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: reto, justafrogg, 65464, stefankangas

> Ping!

Not sure what's pending here.  Stefan (the other) gave a good
reply, AFAICT.


        Stefan


>> From: Stefan Monnier <monnier@iro.umontreal.ca>
>> Cc: Reto Zimmermann <reto@gnu.org>,  justafrogg@gmail.com,
>>   65464@debbugs.gnu.org,  stefankangas@gmail.com
>> Date: Thu, 31 Aug 2023 14:46:48 -0400
>> 
>> > Stefan Monnier added that in commit 80ba4c17075, which was about
>> > bug#55156.  Stefan, can you answer this question?
>> 
>> Yes, he did :-)
>> 
>> 
>>         Stefan
>> 
>> 






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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-09-11  2:40                   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-09-11 11:40                     ` Eli Zaretskii
  0 siblings, 0 replies; 21+ messages in thread
From: Eli Zaretskii @ 2023-09-11 11:40 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: reto, justafrogg, 65464, stefankangas

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: reto@gnu.org,  justafrogg@gmail.com,  65464@debbugs.gnu.org,
>   stefankangas@gmail.com
> Date: Sun, 10 Sep 2023 22:40:38 -0400
> 
> > Ping!
> 
> Not sure what's pending here.  Stefan (the other) gave a good
> reply, AFAICT.

AFAICT, he just pointed to another bug report.

Does this mean the answer to Reto's question is "yes, it's a known
problem for which we have no solution"?





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-08-22 16:15 bug#65464: Emacs 29.1 - VHDL mode missing updates… Tracy’s Gmail
  2023-08-23 10:47 ` Stefan Kangas
  2023-09-02  9:20 ` Mattias Engdegård
@ 2023-09-11 16:21 ` Mattias Engdegård
  2023-09-11 22:17   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2 siblings, 1 reply; 21+ messages in thread
From: Mattias Engdegård @ 2023-09-11 16:21 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Reto Zimmermann, 65464, Stefan Monnier, Stefan Kangas

> Does this mean the answer to Reto's question is "yes, it's a known problem for which we have no solution"?

That's right, assuming the question was about packages that were byte-compiled on newer Emacs versions than they are used on. Changes to Emacs are usually backward-compatible with respect to .elc files, but there is never guarantee that they are forward-compatible.

This is not just a matter of changes to the byte-code compiler and interpreter but more often about changes to macros.

In other words, if someone is unable to run vhdl-mode.elc from Emacs 29 on Emacs 28, then we're very sorry but do not consider it a defect that needs to be remedied.






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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-09-11 16:21 ` Mattias Engdegård
@ 2023-09-11 22:17   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-09-12  6:59     ` Mattias Engdegård
  2023-09-12 11:31     ` Eli Zaretskii
  0 siblings, 2 replies; 21+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-09-11 22:17 UTC (permalink / raw)
  To: Mattias Engdegård
  Cc: Reto Zimmermann, Eli Zaretskii, 65464, Stefan Kangas

> In other words, if someone is unable to run vhdl-mode.elc from Emacs 29 on
> Emacs 28, then we're very sorry but do not consider it a defect that needs
> to be remedied.

Actually, I do think we should try and detect the problem (and ideally
emit a message/error and maybe even fallback to loading the
non-compiled file).

We do have the necessary info in the `.elc` file (the byte 4th byte
(0-based numbering) of a `.elc` file holds the major version number of
the Emacs on which it was compiled (with some caveat for non-released
Emacs versions, such as 30.0.NN emitting `.elc` files that say "version
29")).

We just need to make use of that info.


        Stefan






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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-09-11 22:17   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-09-12  6:59     ` Mattias Engdegård
  2023-09-12 11:31     ` Eli Zaretskii
  1 sibling, 0 replies; 21+ messages in thread
From: Mattias Engdegård @ 2023-09-12  6:59 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Reto Zimmermann, Eli Zaretskii, 65464, Stefan Kangas

12 sep. 2023 kl. 00.17 skrev Stefan Monnier <monnier@iro.umontreal.ca>:

> Actually, I do think we should try and detect the problem (and ideally
> emit a message/error and maybe even fallback to loading the
> non-compiled file).

Very much agree. In fact I think we should do so in both directions.
And allow compiled bytecode for different versions to exist side-by-side by using different file names, which would be a step towards solving the problem once and for all.






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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-09-11 22:17   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-09-12  6:59     ` Mattias Engdegård
@ 2023-09-12 11:31     ` Eli Zaretskii
  2023-09-12 14:08       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 21+ messages in thread
From: Eli Zaretskii @ 2023-09-12 11:31 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: reto, mattias.engdegard, 65464, stefankangas

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>,  Reto Zimmermann <reto@gnu.org>,
>   65464@debbugs.gnu.org,  Stefan Kangas <stefankangas@gmail.com>
> Date: Mon, 11 Sep 2023 18:17:18 -0400
> 
> > In other words, if someone is unable to run vhdl-mode.elc from Emacs 29 on
> > Emacs 28, then we're very sorry but do not consider it a defect that needs
> > to be remedied.
> 
> Actually, I do think we should try and detect the problem (and ideally
> emit a message/error and maybe even fallback to loading the
> non-compiled file).
> 
> We do have the necessary info in the `.elc` file (the byte 4th byte
> (0-based numbering) of a `.elc` file holds the major version number of
> the Emacs on which it was compiled (with some caveat for non-released
> Emacs versions, such as 30.0.NN emitting `.elc` files that say "version
> 29")).
> 
> We just need to make use of that info.

Make use how?  In most cases the byte-code is compatible both backward
and forward, so displaying a warning would be an annoyance that 99% of
time is unjustified.





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

* bug#65464: Emacs 29.1 - VHDL mode missing updates…
  2023-09-12 11:31     ` Eli Zaretskii
@ 2023-09-12 14:08       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 21+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-09-12 14:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: reto, mattias.engdegard, 65464, stefankangas

>> We just need to make use of that info.
> Make use how?  In most cases the byte-code is compatible both backward
> and forward, so displaying a warning would be an annoyance that 99% of
> time is unjustified.

Actually, forward compatibility is often broken between major versions.


        Stefan






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

end of thread, other threads:[~2023-09-12 14:08 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-22 16:15 bug#65464: Emacs 29.1 - VHDL mode missing updates… Tracy’s Gmail
2023-08-23 10:47 ` Stefan Kangas
2023-08-29 13:23   ` Reto Zimmermann
2023-08-29 16:46     ` Stefan Kangas
2023-08-29 16:56       ` Tracy’s Gmail
2023-08-29 18:25         ` Stefan Kangas
2023-08-30 12:23       ` Reto Zimmermann
2023-08-30 13:38         ` Eli Zaretskii
2023-08-31 11:32           ` Reto Zimmermann
2023-08-31 13:00             ` Eli Zaretskii
2023-08-31 14:59               ` Stefan Kangas
2023-08-31 18:46               ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-10  7:47                 ` Eli Zaretskii
2023-09-11  2:40                   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-11 11:40                     ` Eli Zaretskii
2023-09-02  9:20 ` Mattias Engdegård
2023-09-11 16:21 ` Mattias Engdegård
2023-09-11 22:17   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-12  6:59     ` Mattias Engdegård
2023-09-12 11:31     ` Eli Zaretskii
2023-09-12 14:08       ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

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).