GNU bug report logs -
#62276
29.0.60; image-minor-mode broken by c-ts-mode
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sun, 19 Mar 2023 17:54:02 UTC
Severity: normal
Found in version 29.0.60
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Tue, 21 Mar 2023 20:46:30 +0200
with message-id <86fs9yj62h.fsf <at> mail.linkov.net>
and subject line Re: bug#62276: 29.0.60; image-minor-mode broken by c-ts-mode
has caused the debbugs.gnu.org bug report #62276,
regarding 29.0.60; image-minor-mode broken by c-ts-mode
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
62276: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62276
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
0. emacs-29 -Q
1. C-x C-f etc/images/attach.xpm RET
2. C-c C-c toggles from image to C code
3. C-c C-c toggles back from C code to image
4. C-x k RET
Everything works correctly so far.
4. M-: (require 'c-ts-mode) RET
5. C-x C-f etc/images/attach.xpm RET
It's not displayed as an image and C-c C-c does nothing.
[Message part 3 (message/rfc822, inline)]
>> >> 4. M-: (require 'c-ts-mode) RET
>> >> 5. C-x C-f etc/images/attach.xpm RET
>> >>
>> >> It's not displayed as an image and C-c C-c does nothing.
>> >
>> > Thanks, should be fixed now on the emacs-29 branch.
>>
>> Are there other modes that require such ad-hoc hacks?
>
> The ad-hocery was required because files.el itself uses an ugly (and
> undocumented) hack to allow visiting XPM/XBM as either a C file or an
> image file.
>
>> Is there a problem with this pair?
>>
>> ("\\.svgz?\\'" . image-mode)
>> ("\\.svgz?\\'" . xml-mode)
>
> I don't know. Is there?
>
>> There is only html-ts-mode, not xml-ts-mode?
>
> Yes, at least for now. I don't think there's a grammar library for
> XML.
>
> Can we close this bug now?
It seems no more fixes are required, so now closing.
This bug report was last modified 2 years and 140 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.