From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 09 10:12:31 2019 Received: (at submit) by debbugs.gnu.org; 9 Nov 2019 15:12:31 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 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 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 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 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) 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) MIME-Version: 1.0 From: Jay Berkenbilt Date: Sat, 9 Nov 2019 10:12:02 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: 26.3; nxml with ENTITY: single quote misinterpreted as string delimiter To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 208.80.4.154 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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)) From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 01:01:03 2019 Received: (at 38153) by debbugs.gnu.org; 14 Nov 2019 06:01:03 +0000 Received: from localhost ([127.0.0.1]:60706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV8Bi-0003Yv-C7 for submit@debbugs.gnu.org; Thu, 14 Nov 2019 01:01:02 -0500 Received: from quimby.gnus.org ([95.216.78.240]:49810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV8Be-0003Pv-Bf for 38153@debbugs.gnu.org; Thu, 14 Nov 2019 01:00:58 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iV8BV-0000rJ-5R; Thu, 14 Nov 2019 07:00:51 +0100 From: Lars Ingebrigtsen To: Jay Berkenbilt Subject: Re: bug#38153: 26.3; nxml with ENTITY: single quote misinterpreted as string delimiter References: Date: Thu, 14 Nov 2019 07:00:48 +0100 In-Reply-To: (Jay Berkenbilt's message of "Sat, 9 Nov 2019 10:12:02 -0500") Message-ID: <87y2wjov3j.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jay Berkenbilt writes: > Create a file with the name "a.xml" and the following contents (between > the rows of dashes): > > ------- > > > ]> > [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: ingebrigtsen.no] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38153 Cc: 38153@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jay Berkenbilt writes: > 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. I'm not able to reproduce this bug in Emacs 27, but I am able to reproduce it in Emacs 26.3, so I think this has been fixed already. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 14 01:01:09 2019 Received: (at control) by debbugs.gnu.org; 14 Nov 2019 06:01:09 +0000 Received: from localhost ([127.0.0.1]:60709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV8Bo-0003cF-RR for submit@debbugs.gnu.org; Thu, 14 Nov 2019 01:01:09 -0500 Received: from quimby.gnus.org ([95.216.78.240]:49824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV8Bj-0003V3-Gg for control@debbugs.gnu.org; Thu, 14 Nov 2019 01:01:06 -0500 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iV8Bb-0000rQ-UX for control@debbugs.gnu.org; Thu, 14 Nov 2019 07:00:57 +0100 Date: Thu, 14 Nov 2019 07:00:55 +0100 Message-Id: <87woc3ov3c.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #38153 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 38153 fixed close 38153 27.1 quit Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 38153 fixed close 38153 27.1 quit From unknown Mon Jun 23 07:49:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 12 Dec 2019 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator