From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jay Berkenbilt Newsgroups: gmane.emacs.bugs Subject: bug#38153: 26.3; nxml with ENTITY: single quote misinterpreted as string delimiter Date: Sat, 9 Nov 2019 10:12:02 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="197631"; mail-complaints-to="usenet@blaine.gmane.org" To: 38153@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 09 16:15:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iTSST-000pI8-P9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2019 16:15:26 +0100 Original-Received: from localhost ([::1]:37218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTSSS-0001D5-Kx for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Nov 2019 10:15:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45615) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTSQE-0008HU-7Z for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 10:13:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTSQC-0006Ay-15 for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 10:13:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41345) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTSQB-0006Ap-Sh for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 10:13:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iTSQA-0003eB-NB for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 10:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jay Berkenbilt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Nov 2019 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38153 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157331235113968 (code B ref -1); Sat, 09 Nov 2019 15:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2019 15:12:31 +0000 Original-Received: from localhost ([127.0.0.1]:50165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTSPe-0003dD-Sq for submit@debbugs.gnu.org; Sat, 09 Nov 2019 10:12:31 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTSPc-0003d5-R0 for submit@debbugs.gnu.org; Sat, 09 Nov 2019 10:12:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45549) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTSPa-0007lr-LM for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 10:12:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTSPY-0004So-Ex for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 10:12:26 -0500 Original-Received: from mailb2.tigertech.net ([208.80.4.154]:44875) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iTSPX-0004QZ-Uh for bug-gnu-emacs@gnu.org; Sat, 09 Nov 2019 10:12:24 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mailb2.tigertech.net (Postfix) with ESMTP id 479LGY19K5zFpm7 for ; Sat, 9 Nov 2019 07:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ql.org; s=2.tigertech; t=1573312341; bh=g7sWc2o4txpEQXvM/mK8yuk+hXgmTxpg296pHLFDoAg=; h=From:Date:Subject:To:From; b=b0YT/P1lO86By5mzrg0pcllUpzkon1jdejrkHKdBzI2KKQSMqDTb2m1douLMUdfOl FqMHvkZD3MSUk925vQ91irDVvvvXdrOY2Smi6CRL5MQKiCUaSMR/7St6IWhIoSmdiE +ctIE683VN2Uo+a5nAe3zZpWXYvBFw7usXapA7o0= X-Virus-Scanned: Debian amavisd-new at b2.tigertech.net Original-Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailb2.tigertech.net (Postfix) with ESMTPSA id 479LGX4Tn4zFplQ for ; Sat, 9 Nov 2019 07:12:20 -0800 (PST) Original-Received: by mail-lf1-f50.google.com with SMTP id j14so6671183lfb.8 for ; Sat, 09 Nov 2019 07:12:20 -0800 (PST) X-Gm-Message-State: APjAAAWdr95pDdturyt3gkGZKdyhz5e8r2uJpU++FWionRECwtObRR9/ Qe58PQOfRDupYbtDdsgzOyc4WIS3Pqji3JivuQ0= X-Google-Smtp-Source: APXvYqzUzW9WUNhSbkV7EJTRiYz35fBCdigCIm52XuUaRRpwfMPoa60vl+01E6VfCcJr1kcx15bzPMhhK8keV8FotJU= X-Received: by 2002:ac2:55a3:: with SMTP id y3mr10227096lfg.108.1573312338560; Sat, 09 Nov 2019 07:12:18 -0800 (PST) X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:171329 Archived-At: Create a file with the name "a.xml" and the following contents (between the rows of dashes): ------- ]> This is a quote, but it's not starting a string. ------- Observe that everything after the "'" is treated syntactically as a string. This shows with the fontification of the following text, but it also effects the behavior. For example, if you type after the word "quote" and then hit C-c C-f, the closing tag is inserted as expected. However, if you type after the word "not", C-c C-f erroneously attempts to close the tag. If you remove the line, the problem goes away. This behavior is observable with emacs -Q running in Ubuntu 19.10. It did not occur with Ubuntu 19.04. In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11) of 2019-09-23, modified by Debian built on lgw01-amd64-032 Windowing system distributor 'The X.Org Foundation', version 11.0.12005000 System Description: Ubuntu 19.10 Recent messages: Wrote /home/ejb/source/qpdf/qpdf/.git/rebase-merge/git-rebase-todo When done with a buffer, type C-x # Mark saved where search started Quit [2 times] Saving file /home/ejb/source/qpdf/qpdf/.git/rebase-merge/git-rebase-todo... Wrote /home/ejb/source/qpdf/qpdf/.git/rebase-merge/git-rebase-todo When done with a buffer, type C-x # Saving file /home/ejb/source/qpdf/qpdf/.git/COMMIT_EDITMSG... Wrote /home/ejb/source/qpdf/qpdf/.git/COMMIT_EDITMSG Mark set Quit Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-wvqver/emacs-26.3+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Change Log Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t tooltip-mode: t global-eldoc-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill Load-path shadows: /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-autoloads hides /usr/share/emacs/site-lisp/elpa/dpkg-dev-el-37.0/debian-autoloads /usr/share/emacs/site-lisp/elpa/debian-el-37/preseed hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/preseed /usr/share/emacs/site-lisp/elpa/debian-el-37/gnus-BTS hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/gnus-BTS /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-el hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-el /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-el-pkg hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-el-pkg /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-el-autoloads hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-el-autoloads /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-bug hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-bug /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-autoloads hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-autoloads /usr/share/emacs/site-lisp/elpa/debian-el-37/deb-view hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/deb-view /usr/share/emacs/site-lisp/elpa/debian-el-37/apt-utils hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/apt-utils /usr/share/emacs/site-lisp/elpa/debian-el-37/apt-sources hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/apt-sources /usr/share/emacs/site-lisp/elpa/dpkg-dev-el-37.0/readme-debian hides /usr/share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/readme-debian /usr/share/emacs/site-lisp/elpa/dpkg-dev-el-37.0/dpkg-dev-el hides /usr/share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/dpkg-dev-el /usr/share/emacs/site-lisp/elpa/dpkg-dev-el-37.0/dpkg-dev-el-pkg hides /usr/share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/dpkg-dev-el-pkg /usr/share/emacs/site-lisp/elpa/dpkg-dev-el-37.0/dpkg-dev-el-autoloads hides /usr/share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/dpkg-dev-el-autoloads /usr/share/emacs/site-lisp/elpa/dpkg-dev-el-37.0/debian-copyright hides /usr/share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/debian-copyright /usr/share/emacs/site-lisp/elpa/dpkg-dev-el-37.0/debian-control-mode hides /usr/share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/debian-control-mode /usr/share/emacs/site-lisp/elpa/dpkg-dev-el-37.0/debian-changelog-mode hides /usr/share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/debian-changelog-mode /usr/share/emacs/site-lisp/elpa/dpkg-dev-el-37.0/debian-bts-control hides /usr/share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/debian-bts-control /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-autoloads hides /usr/share/emacs/site-lisp/elpa-src/dpkg-dev-el-37.0/debian-autoloads /home/ejb/elisp/startup hides /usr/share/emacs/26.3/lisp/startup /usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/26.3/lisp/md4 /usr/share/emacs/site-lisp/flim/hex-util hides /usr/share/emacs/26.3/lisp/hex-util /home/ejb/elisp/q/project hides /usr/share/emacs/26.3/lisp/progmodes/project /usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/26.3/lisp/net/sasl /usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/26.3/lisp/net/sasl-ntlm /usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/share/emacs/26.3/lisp/net/sasl-digest /usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/share/emacs/26.3/lisp/net/sasl-cram /usr/share/emacs/site-lisp/flim/ntlm hides /usr/share/emacs/26.3/lisp/net/ntlm /usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/share/emacs/26.3/lisp/net/hmac-md5 /usr/share/emacs/site-lisp/flim/hmac-def hides /usr/share/emacs/26.3/lisp/net/hmac-def Features: (shadow sort mail-extr warnings emacsbug make-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds shell pcomplete grep fg-lisp-indent elec-pair eieio-opt speedbar sb-image ezimage dframe find-func files-x ibuf-ext ibuffer ibuffer-loaddefs two-column iso-transl cl-extra pp cl-print help-fns radix-tree dabbrev thai-util thai-word lao-util help-mode goto-addr view add-log flyspell rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode dom nxml-util nxml-enc xmltok ispell misearch multi-isearch markdown-mode thingatpt noutline outline smerge-mode vc-git diff-mode easy-mmode finder-inf dpkg-dev-el info debian-el package url-handlers url-parse auth-source cl-seq eieio eieio-core eieio-loaddefs url-vars vc-svn vc vc-dispatcher mailcap doc-view image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util mime-w3m qmime qmime-compose qmime-view filecache server compile ange-ftp comint ansi-color ring message sendmail rmc puny seq byte-opt bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader cc-styles cc-align cc-engine cc-vars cc-defs project cl-macs jka-compr cus-edit easymenu wid-edit cus-start cus-load edmacro kmacro advice cl gv cl-loaddefs cl-lib w3m-load time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 482720 128970) (symbols 48 46593 1) (miscs 40 774 1780) (strings 32 99324 14539) (string-bytes 1 2525152) (vectors 16 41095) (vector-slots 8 1626077 102230) (floats 8 126 428) (intervals 56 19379 112) (buffers 992 45))