* bug#46416: 27.1; syntax-propertize fails in mhtml-mode
@ 2021-02-10 1:40 Leo Liu
2021-02-14 1:25 ` Dmitry Gutov
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Leo Liu @ 2021-02-10 1:40 UTC (permalink / raw)
To: 46416
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
1. emacs -q -l test.el
2. Create a new buffer in mhtml-mode
3. Add the following two lines:
%%var1%%
"%%var2%%"
4. Inspect the syntax of the % char (C-u C-x =) on both lines
% in double quotes has word syntax which seems unexpected.
If we do something similar in Emacs 26 both % chars have punctuation
syntax.
[-- Attachment #2: test.el --]
[-- Type: application/emacs-lisp, Size: 725 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#46416: 27.1; syntax-propertize fails in mhtml-mode
2021-02-10 1:40 bug#46416: 27.1; syntax-propertize fails in mhtml-mode Leo Liu
@ 2021-02-14 1:25 ` Dmitry Gutov
2021-02-14 5:15 ` Leo Liu
2022-06-16 14:24 ` Lars Ingebrigtsen
2022-06-26 10:47 ` Leo Liu
2 siblings, 1 reply; 8+ messages in thread
From: Dmitry Gutov @ 2021-02-14 1:25 UTC (permalink / raw)
To: Leo Liu, 46416
On 10.02.2021 03:40, Leo Liu wrote:
> 1. emacs -q -l test.el
> 2. Create a new buffer in mhtml-mode
> 3. Add the following two lines:
>
> %%var1%%
> "%%var2%%"
>
> 4. Inspect the syntax of the % char (C-u C-x =) on both lines
>
> % in double quotes has word syntax which seems unexpected.
>
> If we do something similar in Emacs 26 both % chars have punctuation
> syntax.
I can't seem to be able to reproduce your scenario in Emacs 28 (in fact,
I get %var1 and %var2 highlighted as variables), but it might be related
to the
"\\([\"']\\)[^\"'<>]*"
rule in sgml-syntax-propertize-rules.
If you could double-check the expected and actual behaviors in the
current master, though, that would be great.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#46416: 27.1; syntax-propertize fails in mhtml-mode
2021-02-14 1:25 ` Dmitry Gutov
@ 2021-02-14 5:15 ` Leo Liu
0 siblings, 0 replies; 8+ messages in thread
From: Leo Liu @ 2021-02-14 5:15 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 46416
On 2021-02-14 03:25 +0200, Dmitry Gutov wrote:
> I can't seem to be able to reproduce your scenario in Emacs 28 (in
> fact, I get %var1 and %var2 highlighted as variables), but it might be
> related to the
>
> "\\([\"']\\)[^\"'<>]*"
>
> rule in sgml-syntax-propertize-rules.
Yes I can confirm it's this rule that seems to remove syntax-table
property that has been applied by preceding rules.
I can reproduce this bug by simplifying the said rule to
("\\([\"']\\)[^\"'<>]*" (1 "."))
> If you could double-check the expected and actual behaviors in the
> current master, though, that would be great.
Unfortunately I don't have emacs 28 at hand so cannot test immediately.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#46416: 27.1; syntax-propertize fails in mhtml-mode
2021-02-10 1:40 bug#46416: 27.1; syntax-propertize fails in mhtml-mode Leo Liu
2021-02-14 1:25 ` Dmitry Gutov
@ 2022-06-16 14:24 ` Lars Ingebrigtsen
2022-06-22 6:11 ` Leo Liu
2022-06-26 10:47 ` Leo Liu
2 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-16 14:24 UTC (permalink / raw)
To: Leo Liu; +Cc: 46416
Leo Liu <sdl.web@gmail.com> writes:
> 1. emacs -q -l test.el
> 2. Create a new buffer in mhtml-mode
> 3. Add the following two lines:
>
> %%var1%%
> "%%var2%%"
>
> 4. Inspect the syntax of the % char (C-u C-x =) on both lines
>
> % in double quotes has word syntax which seems unexpected.
I'm unable to reproduce this -- all the % signs have
general-category: Po (Punctuation, Other)
syntax, as far as I can tell (both in Emacs 27.1 and 29). So I seem to
be unable to reproduce this problem. Are you still seeing this in
recent Emacs versions, and if so, do you have a complete recipe to
reproduce it?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#46416: 27.1; syntax-propertize fails in mhtml-mode
2022-06-16 14:24 ` Lars Ingebrigtsen
@ 2022-06-22 6:11 ` Leo Liu
2022-06-23 8:43 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Leo Liu @ 2022-06-22 6:11 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 46416
> I'm unable to reproduce this -- all the % signs have
>
> general-category: Po (Punctuation, Other)
>
> syntax, as far as I can tell (both in Emacs 27.1 and 29). So I seem to
> be unable to reproduce this problem. Are you still seeing this in
> recent Emacs versions, and if so, do you have a complete recipe to
> reproduce it?
>
I tested the bug again in emacs 28.1 nothing seems to have changed
syntax: w which means: word
Leo
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#46416: 27.1; syntax-propertize fails in mhtml-mode
2022-06-22 6:11 ` Leo Liu
@ 2022-06-23 8:43 ` Lars Ingebrigtsen
0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-23 8:43 UTC (permalink / raw)
To: Leo Liu; +Cc: 46416
Leo Liu <sdl.web@gmail.com> writes:
>> I'm unable to reproduce this -- all the % signs have
>>
>> general-category: Po (Punctuation, Other)
>>
>> syntax, as far as I can tell (both in Emacs 27.1 and 29). So I seem to
>> be unable to reproduce this problem. Are you still seeing this in
>> recent Emacs versions, and if so, do you have a complete recipe to
>> reproduce it?
>>
>
> I tested the bug again in emacs 28.1 nothing seems to have changed
>
> syntax: w which means: word
Do you have a complete recipe, starting from "emacs -Q", to reproduce
this?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#46416: 27.1; syntax-propertize fails in mhtml-mode
2021-02-10 1:40 bug#46416: 27.1; syntax-propertize fails in mhtml-mode Leo Liu
2021-02-14 1:25 ` Dmitry Gutov
2022-06-16 14:24 ` Lars Ingebrigtsen
@ 2022-06-26 10:47 ` Leo Liu
2022-06-26 15:51 ` Lars Ingebrigtsen
2 siblings, 1 reply; 8+ messages in thread
From: Leo Liu @ 2022-06-26 10:47 UTC (permalink / raw)
To: 46416
On 2022-06-23 10:43 +0200, Lars Ingebrigtsen wrote:
> Do you have a complete recipe, starting from "emacs -Q", to reproduce
> this?
That's what I did following step by step in the bug report. However I
noticed you were posting from the subheading "Character code properties"
in the output of C-u C-x =. I was taking the output from the top under
key "syntax:". Is this causing the confusion?
Leo
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#46416: 27.1; syntax-propertize fails in mhtml-mode
2022-06-26 10:47 ` Leo Liu
@ 2022-06-26 15:51 ` Lars Ingebrigtsen
0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-26 15:51 UTC (permalink / raw)
To: Leo Liu; +Cc: 46416
Leo Liu <sdl.web@gmail.com> writes:
> That's what I did following step by step in the bug report. However I
> noticed you were posting from the subheading "Character code properties"
> in the output of C-u C-x =. I was taking the output from the top under
> key "syntax:". Is this causing the confusion?
Oh, you mean this?
syntax: w which means: word
Yes, I can reproduce that.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-06-26 15:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-10 1:40 bug#46416: 27.1; syntax-propertize fails in mhtml-mode Leo Liu
2021-02-14 1:25 ` Dmitry Gutov
2021-02-14 5:15 ` Leo Liu
2022-06-16 14:24 ` Lars Ingebrigtsen
2022-06-22 6:11 ` Leo Liu
2022-06-23 8:43 ` Lars Ingebrigtsen
2022-06-26 10:47 ` Leo Liu
2022-06-26 15:51 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.