From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27178: 26.0.50; libxml-parse-*-region functions ignore discard-comments argument Date: Sat, 14 Apr 2018 15:11:44 +0200 Message-ID: <87lgdqj5kf.fsf@mouse.gnus.org> References: <877f0jx2oh.fsf@users.sourceforge.net> <87bmemn2em.fsf@mouse.gnus.org> <83r2ni470z.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523711409 2480 195.159.176.226 (14 Apr 2018 13:10:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Apr 2018 13:10:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 27178@debbugs.gnu.org, eefacm@gmail.com, npostavs@users.sourceforge.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 14 15:10:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7KwN-0000Wx-Ao for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Apr 2018 15:10:03 +0200 Original-Received: from localhost ([::1]:34085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7KyU-0000MF-24 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Apr 2018 09:12:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f7KyJ-0000L7-Ar for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2018 09:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f7KyI-0001WI-B4 for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2018 09:12:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f7KyI-0001W4-7U for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2018 09:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f7KyH-0000SH-Sh for bug-gnu-emacs@gnu.org; Sat, 14 Apr 2018 09:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Apr 2018 13:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27178 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 27178-submit@debbugs.gnu.org id=B27178.15237115161737 (code B ref 27178); Sat, 14 Apr 2018 13:12:01 +0000 Original-Received: (at 27178) by debbugs.gnu.org; 14 Apr 2018 13:11:56 +0000 Original-Received: from localhost ([127.0.0.1]:51394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7KyC-0000Rw-Ji for submit@debbugs.gnu.org; Sat, 14 Apr 2018 09:11:56 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:53260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f7KyB-0000Rp-3J for 27178@debbugs.gnu.org; Sat, 14 Apr 2018 09:11:55 -0400 Original-Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f7Ky6-0006gv-Tt; Sat, 14 Apr 2018 15:11:53 +0200 Original-Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f7Ky1-0004ha-9d; Sat, 14 Apr 2018 15:11:45 +0200 In-Reply-To: <83r2ni470z.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 14 Apr 2018 09:49:16 +0300") 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: 208.118.235.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:145333 Archived-At: Eli Zaretskii writes: > Why not update the docs, as Noam suggested last June? Well, it would be nice if we could just get this to work, and it just occurred to me that supporting this option shouldn't be that difficult: We can just pre-treat the XML before parsing it. That is, if discard-comments is mentioned, we can just go through the buffer and delete all the comments before we point libxml towards it. On the other hand, we could deprecate that option (since it's rather nonsensical the way it is now), and just provide a Lisp convenience function to delete the comments if you don't want comments? I think that sounds cleaner and much easier to implement. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no