[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19768: json.el: end-of-file errors untrappable
From: |
era eriksson |
Subject: |
bug#19768: json.el: end-of-file errors untrappable |
Date: |
Thu, 05 Feb 2015 13:51:30 +0200 |
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.