From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 01 01:18:36 2016 Received: (at submit) by debbugs.gnu.org; 1 Jun 2016 05:18:37 +0000 Received: from localhost ([127.0.0.1]:48931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7yY8-0002UY-Lo for submit@debbugs.gnu.org; Wed, 01 Jun 2016 01:18:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7yY6-0002UK-Ta for submit@debbugs.gnu.org; Wed, 01 Jun 2016 01:18:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7yY0-0000VQ-Bz for submit@debbugs.gnu.org; Wed, 01 Jun 2016 01:18:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7yY0-0000VD-87 for submit@debbugs.gnu.org; Wed, 01 Jun 2016 01:18:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7yXx-0004kl-Ub for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2016 01:18:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7yXu-0000UR-MI for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2016 01:18:25 -0400 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:35115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7yXu-0000UL-G2 for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2016 01:18:22 -0400 Received: by mail-it0-x235.google.com with SMTP id z189so70760964itg.0 for ; Tue, 31 May 2016 22:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:subject:message-id:date:to :mime-version; bh=7EHlTAyvkCbvzMVwrvkzRkTA65rBHSZsn4Pr6a4GYyA=; b=Bm7ZsAwzttAlLQfEuC/hpED9IcFYclYULwvKJZJfNWZPmiz6+uSpNWD2/YtQj1jAgF 2dQ/wVbJJ54rGqn2FLJO37al53YljCSNzmiBxG7+8CtGsdS55N1saJiepaZa9rAPqxVU U7QuYKJy2w7bBOpWM//5CXblA7bgW0TVNgan6PCgqQcdhRcOWEmG1kZjpOl3wR3asikm lBopPKD8IL/AItG1o1kONYskIApZIEyKPRZaNZZZN3qlPZmIY3ul9IIsYn2iIiXDKDAB OvJC+Ow/+iFqmF0FJ2BR3hjMNToOWkRycJBtWpNrkzrEqgvWm59PRxXYJZoujZRsOws5 wnxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=7EHlTAyvkCbvzMVwrvkzRkTA65rBHSZsn4Pr6a4GYyA=; b=kWHsyAt746jKSHbdy5gO9pVAV2Bc8zVE90bnpuzM6i2UfyqwrFXLxOFY3O2nqTCFFO SJoaAjjmtfOkwU9DR+aJbOKSMkoJjnF8EdF9xF1hwlWBe1543cd3Gpasi5fEtHnCLDvW MGrx3ck249Fa8rzBAjbRreVkvD2luXPJPfmGPDp7QLd8QYxbcjN3caOtTuBIy80gHvC+ SZ0d1VpCXvuqNJqIOdBlyW1tfyS5L5auGfXU7JJuYW8udBIapgdCMOUL0sPOzK8EUteq IVcTS0ueGnWan9j8mdWCwqFYrAc6EHqv9mRRB62Pp+AmC9bTrIVS0dGFOtLamppisPQw +Lew== X-Gm-Message-State: ALyK8tIV7y65e/cd5GvaWv4LoOUiBJN81ZQSa6rABeGYewGM0O4CH2tgalDoy23gr0o+hQ== X-Received: by 10.36.1.144 with SMTP id 138mr2665559itk.35.1464758301653; Tue, 31 May 2016 22:18:21 -0700 (PDT) Received: from [10.0.2.34] (174-23-122-197.slkc.qwest.net. [174.23.122.197]) by smtp.gmail.com with ESMTPSA id s205sm11279919itd.16.2016.05.31.22.18.20 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 May 2016 22:18:21 -0700 (PDT) From: Ivan Andrus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: 25.0.94; nxml mode doesn't indent correctly if prolog gets deleted Message-Id: Date: Tue, 31 May 2016 23:18:19 -0600 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) =46rom emacs -Q evaluate the following and notice that they are = different. (with-temp-buffer (insert "\n \n \n") (xml-mode) (indent-region (point-min) (point-max)) (buffer-substring-no-properties (point-min) (point-max))) (with-temp-buffer (insert "\n\n \n") (xml-mode) (indent-region (point-min) (point-max)) (buffer-substring-no-properties (point-min) (point-max))) As best as I could determine it has to do with the prolog being parsed, then deleted, but not being reparsed. Thus it thinks is part of the prolog. Unfortunately, the code is rather more than I have time to understand at the moment. -Ivan In GNU Emacs 25.0.94.4 (x86_64-apple-darwin15.4.0, NS appkit-1404.46 = Version 10.11.4 (Build 15E65)) of 2016-05-30 built on iandrus-osx Repository revision: 6bdfb36bbff6dbe3ee2c3a15df9051c6656996ad Windowing system distributor 'Apple', version 10.3.1404 Configured using: 'configure --with-ns --with-modules PKG_CONFIG_PATH=3D/opt/X11/lib/pkgconfig' Configured features: JPEG RSVG IMAGEMAGICK DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-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 line-number-mode: t transient-mark-mode: t Recent messages: " Using vacuous schema Indenting region...done " " C-c C-c is undefined Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode cl-loaddefs pcase cl-lib mail-prsvr mail-utils nxml-uchnm 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 easymenu nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 dbusbind kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 209690 10284) (symbols 48 21797 0) (miscs 40 45 201) (strings 32 19574 5815) (string-bytes 1 563342) (vectors 16 34982) (vector-slots 8 677819 3811) (floats 8 178 121) (intervals 56 230 6) (buffers 976 12)) From debbugs-submit-bounces@debbugs.gnu.org Sat May 18 14:59:02 2019 Received: (at control) by debbugs.gnu.org; 18 May 2019 18:59:02 +0000 Received: from localhost ([127.0.0.1]:32984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hS4Xu-0001dm-Cn for submit@debbugs.gnu.org; Sat, 18 May 2019 14:59:02 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:34480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hS4Xs-0001dE-UL; Sat, 18 May 2019 14:59:01 -0400 Received: by mail-io1-f67.google.com with SMTP id g84so8074496ioa.1; Sat, 18 May 2019 11:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=IbsZHduRHrMARgUQnC5hHCZXRYi9M/DzbaRzJ6hgc5Y=; b=qe30kZm5Jwl/2+2gOwWtWeoj4KA7UjVw26foeymkkkNFCy3plXuQGTIuaFRQbk+eMD zGvzsuLxvCobyuHeBJH/QGhmohaVsn6P7Q0VLrp6yf3wgVzV2MIYMDvCZS1jQWSBuDUr f9p+hZgbDPZ+y2uDxKo9d5GO6vI7MYL+CwWAy0VcQ3MBggD3qJB20S2KpReeAIhAiBR5 32UPVfkJxAVOkZ7AcC0XM7x2XIbO60C5Ju7betGXH4Sj80tUIsz9z7VdoTaLFHr4wmYO KIe1tFSJteu7LQHxY6elDpoKNkErQial1cktyVuf4/IBt2Z9okwESD1jufXcqXciyCNE L1vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=IbsZHduRHrMARgUQnC5hHCZXRYi9M/DzbaRzJ6hgc5Y=; b=eCeywlCsGY5yQa6H07aPHWjMWC/h4TFJIKTh/L+xSJM5sqnY3PoaxIMABOvorN5mxh w471ugbki0om78FNzU3Kf0wgWsvXV4+Ws6mzmByzWzisSlQxpnTuvx8GfaDSP3c+eVPV Ok2IhajoRLEAK9iI6nmOe+bthmVcVDVdfVtPE+iKa8l6tggzlBuhIkjiDDAujGvJJ6Rm hcUrHrOgmykC3kSLspzt1BwUfM8Gt/082Opz0Zow6hSEJzfHcRmC3grdzswekrO19uao LticywLM5YNDMapIXCzgiMKuTlH8hyVIx0tzu61HUp3rGhuSf/Nd09fMaBoODBu1h0YB BrNQ== X-Gm-Message-State: APjAAAWLNxVQvMmR/YtviueFrJCg3WPViIt2sIarewVrA15vhZ7jw5T9 hU2EYHtsAKb0EKk/OnSai/PxIqG2 X-Google-Smtp-Source: APXvYqxxQB8Wk36CbMbEF+OciUriKIm7Pg3YLuyTszr4VayldaaWSXD/J1Rc7OuhJLE3vSJF08uwTQ== X-Received: by 2002:a5d:8357:: with SMTP id q23mr36248760ior.10.1558205934966; Sat, 18 May 2019 11:58:54 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id r22sm3937000ioh.54.2019.05.18.11.58.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 May 2019 11:58:54 -0700 (PDT) From: Noam Postavsky To: Vincent Lefevre Subject: Re: bug#18871: 24.4; nxml-mode: DTD edition breaks the file structure References: <878uk0qn46.fsf@ypig.lip.ens-lyon.fr> Date: Sat, 18 May 2019 14:58:53 -0400 In-Reply-To: <878uk0qn46.fsf@ypig.lip.ens-lyon.fr> (Vincent Lefevre's message of "Tue, 28 Oct 2014 15:34:33 +0100") Message-ID: <87o93zd1xu.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 18871@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 (-) --=-=-= Content-Type: text/plain tags 18871 + patch merge 18871 23668 quit Vincent Lefevre writes: > Consider the following XML file: > > ------------------------------------------------------------------ > > > > ]> > > > > > ------------------------------------------------------------------ > > 1. Open it with "emacs -Q". > 2. Go to line 2 and type C-SPC. > 3. Go to line 6 and type C-w to delete the DTD. > > The highlighting gets completely wrong. And if I delete the closing > tag (with C-k) and type C-c C-f, I get the error: > > No matching start-tag > > In more complex files, slightly editing the DTD gives the same behavior. Should be fixed by this patch. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Keep-nxml-prolog-end-up-to-date-Bug-18871.patch Content-Description: patch >From 5f6abb03b3b0d10dd39ece8c151a8a7857b85895 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sat, 18 May 2019 14:54:36 -0400 Subject: [PATCH] Keep nxml-prolog-end up to date (Bug#18871) The change on 2016-01-16 "lisp/nxml: Use syntax-tables for comments" removed the update of nxml-prolog-end, although it already failed to work correctly after 2013-10-07 "* lisp/nxml/nxml-mode.el: Use lexical-binding and syntax-propertize." * lisp/nxml/nxml-rap.el: New function. * lisp/nxml/nxml-mode.el (nxml-mode): Add it to after-change-functions. --- lisp/nxml/nxml-mode.el | 1 + lisp/nxml/nxml-rap.el | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 7c39c5023c..b816bba819 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -534,6 +534,7 @@ nxml-mode (setq-local syntax-ppss-table sgml-tag-syntax-table) (setq-local syntax-propertize-function #'nxml-syntax-propertize) (add-hook 'change-major-mode-hook #'nxml-cleanup nil t) + (add-hook 'after-change-functions #'nxml-maybe-rescan-prolog nil t) ;; Emacs 23 handles the encoding attribute on the xml declaration ;; transparently to nxml-mode, so there is no longer a need for the below diff --git a/lisp/nxml/nxml-rap.el b/lisp/nxml/nxml-rap.el index 21dbaded25..2be3981047 100644 --- a/lisp/nxml/nxml-rap.el +++ b/lisp/nxml/nxml-rap.el @@ -108,6 +108,12 @@ nxml-scan-prolog (setq nxml-prolog-regions (xmltok-forward-prolog)) (setq nxml-prolog-end (point)))) +(defun nxml-maybe-rescan-prolog (start _end _length) + "Reparse the prolog if START lies within it. +`nxml-mode' adds this function on `after-change-functions'." + (when (<= beg nxml-prolog-end) + (save-excursion + (nxml-scan-prolog)))) ;;; Random access parsing -- 2.11.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 27 15:22:55 2019 Received: (at control) by debbugs.gnu.org; 27 May 2019 19:22:55 +0000 Received: from localhost ([127.0.0.1]:54094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVLCx-000336-J5 for submit@debbugs.gnu.org; Mon, 27 May 2019 15:22:55 -0400 Received: from mail-io1-f46.google.com ([209.85.166.46]:36702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVLCv-00032o-Ak; Mon, 27 May 2019 15:22:54 -0400 Received: by mail-io1-f46.google.com with SMTP id h6so5389578ioh.3; Mon, 27 May 2019 12:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=aieSfpqxs5zvzt9KX7V3x9nDNaR+/CiNUS4PGCOn9+c=; b=pbC4yDOMYFUOlXFBZ7+iCcEPcwRdxPkLzn287Pl4L2GNXxY8YyEBgA658q+q918nhv cWCNXw6nCvZUcDjSBB9eNZBGZbQ2jBGEhfvuqVoA/k8ievwCVr1ZaT3eGE76v0p4UGr+ CIsjPjMUFo9HDNw/7+PBsiOBvjRIB1ZsW6HUN76fGku2jmJghCx9uvqp3B+gCCe860WP unG0v93WUXM0FCyxud5fVytUSVQZvTKvk7WwdAsyreDmL8oTk0okppQWlfENeJyvzNXj 7mprBD2LaM847w8zD1T9639paY+x5iPmxkZ/mF6hTeHVGYKXKm3Mg+C9DRWYBg0QsiUx XhBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=aieSfpqxs5zvzt9KX7V3x9nDNaR+/CiNUS4PGCOn9+c=; b=qdSlaIhdGd3UfP0u4+R291PDOb/XB3tu0EMkatcY4fVsxR3920ZBhcHZiXZX9XLmNk duyX+apzK00kVDGz1DHWJMhC6kQwvKV8hQqb8H1w7aIr1mV/D6qeBLHu3cFg329zPruw oDp/nnAsh6yOA8pd1Xve0+65GLlBCjuuixBMxb2CvhV7epX3hxS/6Yrku6sq6GHhC4J7 x1Zvc5d0FaWQRUsexhd0zR2oC536dfaz/hayJaVfPGOQZjFAYUts4kZKTHoYyBW9t9aA LoeCFqeqylOcSQ8pQCrBGx40xIN8KoWHU1an/X5WLNG8Y32EMcsnpiSinMZx5eE61hID HvkA== X-Gm-Message-State: APjAAAVz+UteHNW4V5G2wZD1AoqAv2g+Kj+LNlW41AJwiYIVHYDRBn2z /1CXpWFyInAi5le5tugH5OCx4uEI X-Google-Smtp-Source: APXvYqyyQ3HORASml5j7HtdUjznqBRnKaCEGeUghSbmcaP2faFIq49rAZVNnBifMXA966w3rdfoBrg== X-Received: by 2002:a5e:8207:: with SMTP id l7mr10198744iom.232.1558984967486; Mon, 27 May 2019 12:22:47 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id m189sm183016itm.21.2019.05.27.12.22.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 May 2019 12:22:46 -0700 (PDT) From: npostavs@gmail.com To: Eli Zaretskii Subject: Re: bug#32823: 26.1; nxml-mode: "no matching start-tag" with long entity definition list References: <83zhw6ammh.fsf@gnu.org> <87va6u250k.fsf@bunkus.org> <83tvmeajsg.fsf@gnu.org> <87tvme238m.fsf@bunkus.org> <838t3q9ibf.fsf@gnu.org> Date: Mon, 27 May 2019 15:22:45 -0400 In-Reply-To: <838t3q9ibf.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 25 Sep 2018 09:56:04 +0300") Message-ID: <85muj7d7ne.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: Moritz Bunkus , Stefan Monnier , 32823@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 (-) merge 18871 32823 quit Eli Zaretskii writes: >> Maybe you're doing something slightly different than I am. I've created a >> short screencast showing both nxml-finish-element not working and working >> after the entity definitions have been removed: >> >> https://www.bunkus.org/misc/nxml-mode-bug-32823-01.webm >> >> Maybe that'll help. > > It did, thanks. Turns out I was trying "C-c C-f" on the wrong > refentry line (there are too many of them). > > Anyway, it sounds like the problem is with using syntax-ppss: its 8th > element is nil in the "good" invocation and non-nil in the "bad" one. I believe this bug is a dup of #18871, the root of the problem is that the bounds of the prolog (DTD definition) aren't updated after editing. Should be fixed by the patch in https://debbugs.gnu.org/18871#30 From debbugs-submit-bounces@debbugs.gnu.org Mon May 27 16:36:00 2019 Received: (at control) by debbugs.gnu.org; 27 May 2019 20:36:00 +0000 Received: from localhost ([127.0.0.1]:54274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVMLf-0000qQ-Tr for submit@debbugs.gnu.org; Mon, 27 May 2019 16:36:00 -0400 Received: from mail-it1-f172.google.com ([209.85.166.172]:56135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVMLd-0000q6-HN; Mon, 27 May 2019 16:35:58 -0400 Received: by mail-it1-f172.google.com with SMTP id g24so926229iti.5; Mon, 27 May 2019 13:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=fTj3ThvVPOpgEpkSkUB+mv8QjV7pHZSO8eo4Z4T0xN0=; b=Nb7bZ+Ven8pcTf//aOXkgDTs4oGTWvs0EQ08OJUiDzSzOVXp1V6lOVXMmfxrY43lkJ qb3m6J7AfjIeR5yQkEIg104YYs6nqZQ3uDIY9QnShZW6356MRlmLncULbzPlLRZSwkj5 WRJ+zflCc/J+vFmBevutEiI2ETbkzi7HmPSz+6tIy9W3G+I7oMG5yI2nNRUk5AC3eSNc 1+9j2stsdxTU2G5Dm87WV2DAYOKGlprJ7Zgor6UM4VWe4zNGF4XhOsYKvRf94t6uO30q elqq9dKf+501N+fHYUrlkwDTtL60zFUur++yk8z7+hnV/iTR6JL82mj6Xsu68j6xvF3j HShA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=fTj3ThvVPOpgEpkSkUB+mv8QjV7pHZSO8eo4Z4T0xN0=; b=BfKRsxm+C+47vfJCTFaVDj21KMyeLe9htdxLlxULMwO2wXEnGYVA7mXJQa/glUO/9n 6YmH677PJGSKKc9uLxQPYZ1bGV9XeqqjcOgPwkuLgD4RiY3EdZ0Y7jRHp9rZFB5DKUGj JCkOSQlPIu0tlTPSYYKfJNeadD3lZQLJ5ssx79cTa5BECGFayhQYd2T6hi19uPMREczn Nsxe0cZsb7sR1Q5AVBGf8+AIrye4uiwn+WA5xVUHI71bPZFlnEyBTJSSqA2wsspzZR2g pL9AsKxIxcWcWm/1NApYaJZvFbnoXvBjQhL9ozLfKvysFDvoZtE85qbsocQIo5SSPNAs iW+g== X-Gm-Message-State: APjAAAXK5W6uM1go33O7nkw/DRbI1w4wEVDD6QKwU6rPdGRq71rwEt5c ROhiYglaoDgvVwkvRgH4WgBoHBTa X-Google-Smtp-Source: APXvYqwqlwtCRmeDS7KwRWaxCEsY3pHc/WY7VtHIe3oRf67cx1cEy6wUEbj01Wqbokk9o2LOf3xz2A== X-Received: by 2002:a05:660c:352:: with SMTP id b18mr637250itl.20.1558989351560; Mon, 27 May 2019 13:35:51 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id l25sm3997744ioj.8.2019.05.27.13.35.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 May 2019 13:35:51 -0700 (PDT) From: npostavs@gmail.com To: Moritz Bunkus Subject: Re: bug#32823: 26.1; nxml-mode: "no matching start-tag" with long entity definition list References: <83zhw6ammh.fsf@gnu.org> <87va6u250k.fsf@bunkus.org> <83tvmeajsg.fsf@gnu.org> <87tvme238m.fsf@bunkus.org> <838t3q9ibf.fsf@gnu.org> <85muj7d7ne.fsf@gmail.com> <87lfyrk6p4.fsf@bunkus.org> Date: Mon, 27 May 2019 16:35:49 -0400 In-Reply-To: <87lfyrk6p4.fsf@bunkus.org> (Moritz Bunkus's message of "Mon, 27 May 2019 22:01:27 +0200") Message-ID: <85k1ebd49m.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: Eli Zaretskii , 32823@debbugs.gnu.org, npostavs@gmail.com, Stefan Monnier 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 (-) # undo mistaken merge unmerge 32823 quit Moritz Bunkus writes: > Like I said, the problem occurs right after loading, to. No modifications > need to be made in order to trigger it. To my uninformed eyes my issue > doesn't look like to be related to the issue mine was merged to. Ah, you're right, it's not like #18871. But I think it's the same as one of the edge cases Vincent brought up during Bug#33887, and the second patch in https://debbugs.gnu.org/33887#73 should fix it: https://debbugs.gnu.org/cgi/bugreport.cgi?filename=0001-Don-t-sgml-syntax-propertize-inside-XML-prolog.patch;msg=73;att=3;bug=33887 From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 04 08:59:52 2019 Received: (at control) by debbugs.gnu.org; 4 Jun 2019 12:59:52 +0000 Received: from localhost ([127.0.0.1]:44226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hY92e-00034g-JV for submit@debbugs.gnu.org; Tue, 04 Jun 2019 08:59:52 -0400 Received: from mail-it1-f181.google.com ([209.85.166.181]:36201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hY92c-00034Q-S9; Tue, 04 Jun 2019 08:59:51 -0400 Received: by mail-it1-f181.google.com with SMTP id r135so1050064ith.1; Tue, 04 Jun 2019 05:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=H+5s1TTT1g7DvgzrLQFvgcCXSeAvkiJITuy4cDuqLps=; b=lzDVKVRZVPFDdlcsLNF/MpSiU5fA2eWCGTPdt6p5BZM+ZglLMRN92WtAECOy2wlat9 CcYv+kHaT5ysFeyHhNXJC6YiPuO5yquYohGaWpcavFOoZRjIMu+D9w+p9UOR3H6Hc5Ij d5NtTjeOBVFutwl5DvP9GJL4z7VRTxN/zvNnsQlReMBdRtH1hJuJgtgIOC3paGjS8UqM 53sV+ycSy0acJ5VpbK7rNhapUH7gPbKXigpv7TsxshWuiEJkVwLnUbdACvEXVMAoDoZU mnQti7URTcEBVZQhoN2nX6eqiPMIQM10rhUrut1eCvIMJ0Fz8lTIZR2xqvVmse75kAt7 C5VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=H+5s1TTT1g7DvgzrLQFvgcCXSeAvkiJITuy4cDuqLps=; b=KedtmZIDKPN6TJGQ/dc1aIBOO+BpcG85HXyXqH6siuKUqe+oG9SBh1BKSzllii3HtF TFoJv/mGqpKLnVmoHiab+zdRLlSME7MDIJKGqE/iCxnQ36kqKZxM4a4lyAyMsJj4zAp9 Db3/IW3VhAnm2ajTcI48RrVndusHPKKj6rFUd+TaFdm/8jqhK0LVObvItdEg65vpiGuc 7Vdi0oK0dfL4pcoOEk1kzkgPAF383+Ci3a1jQRdYZ/R13iH0vVznnMtWzfrQyirMIb/p kdifk1UxUE2hVfUFs64TKRO6IECGP9vyh55ojeXdRPpKaWhyNWrYGcLgWbmPNDoFrBeh hfoQ== X-Gm-Message-State: APjAAAW01wPRE/UyveHyEEeNQpMp6TZ1ijcwbIt1nCt2HMaBIBf3oWup IUMG5Gj/wY1UF1c1LaDrYWBkqIY8 X-Google-Smtp-Source: APXvYqxNPgvvHJDd8EAW/VMzFgB5a6vceWOJSUHVgz6pGF4BRgAa1NIVTKLcHnnCCkrnNSVFipBjWQ== X-Received: by 2002:a05:660c:7c5:: with SMTP id e5mr5971778itl.155.1559653185048; Tue, 04 Jun 2019 05:59:45 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id 199sm7696990itk.21.2019.06.04.05.59.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jun 2019 05:59:44 -0700 (PDT) From: Noam Postavsky To: Vincent Lefevre Subject: Re: bug#18871: 24.4; nxml-mode: DTD edition breaks the file structure References: <878uk0qn46.fsf@ypig.lip.ens-lyon.fr> <87o93zd1xu.fsf@gmail.com> <20190518231117.GA10282@zira.vinc17.org> <87k1encpqy.fsf@gmail.com> Date: Tue, 04 Jun 2019 08:59:43 -0400 In-Reply-To: <87k1encpqy.fsf@gmail.com> (Noam Postavsky's message of "Sat, 18 May 2019 19:22:13 -0400") Message-ID: <87a7ex4ibk.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control Cc: 18871@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.7 (-) tags 18871 fixed close 18871 27.1 quit > Subject: [PATCH] Keep nxml-prolog-end up to date (Bug#18871) Pushed to master. 3f2bfe9a19 2019-06-04T08:42:50-04:00 "Keep nxml-prolog-end up to date (Bug#18871)" https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3f2bfe9a1955df3832a78bdfbb03314875601730 From unknown Mon Jun 23 20:19:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 03 Jul 2019 11:24:05 +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