unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: bug-gnu-emacs@gnu.org
Subject: bug#8203: sgml-delete-tag bug
Date: Tue, 08 Mar 2011 19:33:58 +0100	[thread overview]
Message-ID: <4D767696.40804@easy-emacs.de> (raw)
In-Reply-To: <AANLkTikt_WPprs047YVfn+y3sCsKi_fk0GKiQW+8ZOsb@mail.gmail.com>

Am 08.03.2011 12:51, schrieb Xah Lee:
> this seems to be a sure bug.
>
> In html-mode. If you have this:
>
> <p>some'</p>
>
> and your cursor is at the beginning of line, then press C-c C-d
> (sgml-delete-tag), it'll also delete the apostrophe.
>
> This is “GNU Emacs 23.2.1 (i386-mingw-nt6.0.6002) of 2010-05-08 on G41R2F1”
>
>
>
>

Hi,

can confirm this bug.
GNU Emacs 23.2.94.1 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of 2011-02-25

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?



Andreas






  reply	other threads:[~2011-03-08 18:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2884d8aa-2688-4611-ba53-44dca51c489f@d12g2000prj.googlegroups.com>
     [not found] ` <AANLkTikNQBdM2KgcWQ=sOM6pT2tyr=wQrNtPK+Ou998k@mail.gmail.com>
2011-03-08 11:51   ` bug#8203: sgml-delete-tag bug Xah Lee
2011-03-08 18:33     ` Andreas Röhler [this message]
2011-03-08 21:16       ` Stefan Monnier
2011-03-09 12:02         ` Andreas Röhler
2016-01-21  7:02       ` Marcin Borkowski
2016-06-05 14:44     ` Noam Postavsky
2019-05-09 12:10       ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D767696.40804@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).