Can't insert an html entity immediately adjacent to a php tag.

Bug #610648 reported by nurikabe on 2010-07-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
Medium
Unassigned

Bug Description

For example, entering "&" immediately before "<?php" causes point to sometimes jump to the end of the "<?php" tag.

The behavior is not consistent. I also see instances where trying to enter an html entity immediately before a "<?php" tag:

&nbsp;<?php

results in:

&nbsp<?php;

Tags: php Edit Tag help
lborgman (lennart-borgman) wrote :

Thanks for the new bug report, nurikabe.

However could you please give an example where I more easily can reproduce it?

Changed in nxhtml:
importance: Undecided → Medium
status: New → Incomplete
nurikabe (nurikabe) wrote :

See the attached sample. If you try to insert, for example "&nbsp;" immediately adjacent to the opening <?php tag, you will see that the semicolon is transposed.

lborgman (lennart-borgman) wrote :

Ah, thanks, now I see the problem.

This is something I just have not had time to finish. You are right at the border of the php chunk when you press ";". You are not in the part that is php really so the ";" should not ideally be handled by php-mode here in my opinion.

I have been thinking of writing a special "mumamo border mode" to use when window point is in the border. I have this on my todo list, but I do not have time to fix it right now (unless it seems very easy, not sure yet).

(There is another way to fix it. Something makes c-parse-state behave a bit strange here, but I think that fixing this is not the real fix for your problem.)

Changed in nxhtml:
status: Incomplete → In Progress
nurikabe (nurikabe) on 2010-08-18
tags: added: php
lborgman (lennart-borgman) wrote :

Hi nurikabe,

I tried to fix this by adding mumamo-border-mode for the border parts. Can you please confirm that the new nXhtml beta 2.09 solves this problem?

nurikabe (nurikabe) wrote :

Looks like it's fixed now. Thanks!

lborgman (lennart-borgman) wrote :

Thanks nurikabe.

Changed in nxhtml:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments