GNU bug report logs -
#19768
json.el: end-of-file errors untrappable
Previous Next
Reported by: era eriksson <era <at> iki.fi>
Date: Wed, 4 Feb 2015 14:00:02 UTC
Severity: normal
Found in version 24.3.1
Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Wed, Feb 4, 2015, at 17:34, Stefan Monnier wrote:
> > I'm not sure what the proper fix should be. Maybe these occurrences
> > could be changed to json-end-of-file or something?
>
> That sounds right. If we define json-end-of-file as an error which as
> `end-of-file' as parent, it should give us the best of both worlds.
https://github.com/tripleee/emacs/tree/bug19768 contains a simple patch
which implements this, but I am uncertain how to test it. Also, I am
having second thoughts about defining the new error symbol as a child of
'end-of-file when all the other error symbols neatly inherit from
'json-error. Anyway, feel free to review and/or pull and/or ignore. (-:
/* era */
--
If this were a real .signature, it would suck less. Well, maybe not.
This bug report was last modified 10 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.