GNU bug report logs - #61666
HTML tag selection/matching doesn't work with default Emacs mhtml-mode

Previous Next

Package: hyperbole;

Reported by: John Cummings <john <at> rootabega.net>

Date: Tue, 21 Feb 2023 02:18:02 UTC

Severity: normal

Done: Robert Weiner <rsw <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61666 in the body.
You can then email your comments to 61666 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-hyperbole <at> gnu.org:
bug#61666; Package hyperbole. (Tue, 21 Feb 2023 02:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Cummings <john <at> rootabega.net>:
New bug report received and forwarded. Copy sent to bug-hyperbole <at> gnu.org. (Tue, 21 Feb 2023 02:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Cummings <john <at> rootabega.net>
To: "bug-hyperbole <at> gnu.org" <bug-hyperbole <at> gnu.org>
Subject: HTML tag selection/matching doesn't work with default Emacs mhtml-mode
Date: Tue, 21 Feb 2023 02:16:42 +0000
I was able to recreate this problem on
Emacs 28.2 (debian bookworm)
Hyperbole version either 8.0.0 or 8.0.1pre0.20230217.74322
Emacs major mode: mhtml-mode

Expected behaviors:
Using the Hyperbole action key (M-RET), hui-select-goto-matching-delimiter (C-c .), or hui-select-thing (C-c RET), with an HTML tag pair, will perform the corresponding actions on the entire tag pair.

Actual behaviors:
The tag pair is not recognized; instead each tag in the pair is just treated like a plain sexp delimited by its angle brackets.

Cause:
It looks like a simple cause - mhtml-mode is not in hui-select-markup-modes by default. But mhtml-mode is the default major mode for .html files, going at least as far back as some Emacs 26 versions, at least in Debian/Ubuntu builds. Adding it to this list made things work as expected.





Information forwarded to bug-hyperbole <at> gnu.org:
bug#61666; Package hyperbole. (Tue, 21 Feb 2023 05:51:01 GMT) Full text and rfc822 format available.

Message #8 received at 61666 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rswgnu <at> gmail.com>
To: John Cummings <john <at> rootabega.net>
Cc: 61666 <at> debbugs.gnu.org
Subject: Re: bug#61666: HTML tag selection/matching doesn't work with default
 Emacs mhtml-mode
Date: Tue, 21 Feb 2023 00:50:16 -0500
Thanks, John.  We’ll get this resolved soon.

-- Bob

> On Feb 20, 2023, at 9:18 PM, John Cummings <john <at> rootabega.net> wrote:
> 
> I was able to recreate this problem on
> Emacs 28.2 (debian bookworm)
> Hyperbole version either 8.0.0 or 8.0.1pre0.20230217.74322
> Emacs major mode: mhtml-mode
> 
> Expected behaviors:
> Using the Hyperbole action key (M-RET), hui-select-goto-matching-delimiter (C-c .), or hui-select-thing (C-c RET), with an HTML tag pair, will perform the corresponding actions on the entire tag pair.
> 
> Actual behaviors:
> The tag pair is not recognized; instead each tag in the pair is just treated like a plain sexp delimited by its angle brackets.
> 
> Cause:
> It looks like a simple cause - mhtml-mode is not in hui-select-markup-modes by default. But mhtml-mode is the default major mode for .html files, going at least as far back as some Emacs 26 versions, at least in Debian/Ubuntu builds. Adding it to this list made things work as expected.
> 
> 
> 
> 
> _______________________________________________
> Bug-hyperbole mailing list
> Bug-hyperbole <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-hyperbole




Information forwarded to bug-hyperbole <at> gnu.org:
bug#61666; Package hyperbole. (Wed, 01 Mar 2023 03:57:01 GMT) Full text and rfc822 format available.

Message #11 received at 61666 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rsw <at> gnu.org>
To: Robert Weiner <rsw <at> gnu.org>
Cc: John Cummings <john <at> rootabega.net>, 61666 <at> debbugs.gnu.org
Subject: Re: bug#61666: HTML tag selection/matching doesn't work with
 default Emacs mhtml-mode
Date: Tue, 28 Feb 2023 22:56:20 -0500
Hi John:

This issue has been resolved in the latest pre-release of Hyperbole
available from the elpa-devel package archive.  Thanks for reporting
it.  -- rsw

Robert Weiner <rsw <at> gnu.org> writes:

> Thanks, John.  We’ll get this resolved soon.
>
> -- Bob
>
>> On Feb 20, 2023, at 9:18 PM, John Cummings <john <at> rootabega.net> wrote:
>> 
>> I was able to recreate this problem on
>> Emacs 28.2 (debian bookworm)
>> Hyperbole version either 8.0.0 or 8.0.1pre0.20230217.74322
>> Emacs major mode: mhtml-mode
>> 
>> Expected behaviors:
>> Using the Hyperbole action key (M-RET), hui-select-goto-matching-delimiter (C-c .), or hui-select-thing (C-c RET), with an HTML tag pair, will perform the corresponding actions on the entire tag pair.
>> 
>> Actual behaviors:
>> The tag pair is not recognized; instead each tag in the pair is just treated like a plain sexp delimited by its angle brackets.
>> 
>> Cause:
>> It looks like a simple cause - mhtml-mode is not in hui-select-markup-modes by default. But mhtml-mode is the default major mode for .html files, going at least as far back as some Emacs 26 versions, at least in Debian/Ubuntu builds. Adding it to this list made things work as expected.
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Bug-hyperbole mailing list
>> Bug-hyperbole <at> gnu.org
>> https://lists.gnu.org/mailman/listinfo/bug-hyperbole




bug closed, send any further explanations to 61666 <at> debbugs.gnu.org and John Cummings <john <at> rootabega.net> Request was from Robert Weiner <rsw <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 01 Mar 2023 04:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 29 Mar 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 40 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.