Subject: Re: bug#8203: sgml-delete-tag bug

From: Andreas Röhler <[email-masked]>
Date: Wed, 09 Mar 2011 13:02:43 +0100

Am 08.03.2011 22:16, schrieb Stefan Monnier:
>> Error is in backward-prefix-chars, ie. in syntax.c AFAIS.
>
>> line 2855
>
>>    while (!char_quoted (pos, pos_byte)
>> 	 /* Previous statement updates syntax table.  */
>> 	&&  ((c = FETCH_CHAR_AS_MULTIBYTE (pos_byte), SYNTAX (c) == Squote)
>> 	     || SYNTAX_PREFIX (c)))
>>                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>> may that `or' SYNTAX_PREFIX above?
>
> Why would you think so?  I'd rather say that the error is that ' in
> html-mode buffers should not have prefix syntax.
>
>
>          Stefan
>

Indeed, thanks

couldn't get the syntax properly, as my report function in use failed.

with point at opening lesser-angle at closing tag
(syntax-after (1- (point)))

returns (1048578)

while word chars before return

(2)

checked with

(defun syntax-bfpt ()
   (interactive)
   (let ((stax (syntax-after (1- (point)))))
     (when (interactive-p)
       (message (format "%s" stax)))
     stax))

Andreas

--
https://code.launchpad.net/~a-roehler/python-mode/python-mode-components
https://code.launchpad.net/s-x-emacs-werkstatt/