unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53988: 28.0.91; abbrev-table-p throws error: Bad data in guts of obarray
@ 2022-02-14  0:25 Daniel Mendler
  2022-02-14  3:09 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Mendler @ 2022-02-14  0:25 UTC (permalink / raw)
  To: 53988

Evaluate `(abbrev-table-p translation-table-vector)'. The function will
throw `(error "Bad data in guts of obarray")'. I expect
the predicate to not throw an error.

In GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5,
cairo version 1.16.0)
 of 2022-02-09 built on projects
Repository revision: 82e74e4559b8becd44f3e7ac0134e2baddd69921
Repository branch: emacs-28
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)





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

* bug#53988: 28.0.91; abbrev-table-p throws error: Bad data in guts of obarray
  2022-02-14  0:25 bug#53988: 28.0.91; abbrev-table-p throws error: Bad data in guts of obarray Daniel Mendler
@ 2022-02-14  3:09 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-02-14 11:01   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-14  3:09 UTC (permalink / raw)
  To: Daniel Mendler; +Cc: 53988

> Evaluate `(abbrev-table-p translation-table-vector)'. The function will
> throw `(error "Bad data in guts of obarray")'.  I expect
> the predicate to not throw an error.

Agreed.  The better way to do that would be to introduce a proper
`obarray` type instead of abusing arrays for that.


        Stefan






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

* bug#53988: 28.0.91; abbrev-table-p throws error: Bad data in guts of obarray
  2022-02-14  3:09 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-02-14 11:01   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-14 11:01 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Daniel Mendler, 53988

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Evaluate `(abbrev-table-p translation-table-vector)'. The function will
>> throw `(error "Bad data in guts of obarray")'.  I expect
>> the predicate to not throw an error.
>
> Agreed.  The better way to do that would be to introduce a proper
> `obarray` type instead of abusing arrays for that.

Indeed.  But I fixed this in the worse way by signalling
wrong-type-argument and then ignoring that in abbrev-table-p in Emacs
29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2022-02-14 11:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14  0:25 bug#53988: 28.0.91; abbrev-table-p throws error: Bad data in guts of obarray Daniel Mendler
2022-02-14  3:09 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-14 11:01   ` Lars Ingebrigtsen

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