all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juliusz Chroboczek <Juliusz.Chroboczek@pps.jussieu.fr>
Cc: emacs-devel@gnu.org
Subject: Re: xml-parse-region broken?
Date: Fri, 01 Sep 2006 15:50:44 +0200	[thread overview]
Message-ID: <7ik64nzoej.fsf@lanthane.pps.jussieu.fr> (raw)
In-Reply-To: <jwv1wqw8gci.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 31 Aug 2006 22:35:35 -0400")

>>>> (require 'xml)
>>>> (with-temp-buffer
>>>> (insert "<a>\n</a>\n")
>>>> (xml-parse-region 1 (point-max)))

>>>> With 21.4.1, this gives ((a nil)).  With 22.0.50.1 (Debian version
>>>> 1:20060824-1), it gives ((a nil "\n")).
> I understood this part, but I don't know in what sense is the new
> behavior broken.  The text bracketed by <a> ... </a> is indeed "\n",
> isn't it?

Hmm... yes, you're right.  As the comments in xml.el say

> ;; Whitespace is preserved.  Fixme: There should be a tree-walker that
> ;; can remove it.

Fine, then, I'm coding for the new interface now.  What's the
canonical way to detect at runtime which interface is implemented?

Thanks,

                                        Juliusz

  reply	other threads:[~2006-09-01 13:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-01  0:16 xml-parse-region broken? Juliusz Chroboczek
2006-09-01  2:17 ` Stefan Monnier
2006-09-01  2:23   ` Juliusz Chroboczek
2006-09-01  2:35     ` Stefan Monnier
2006-09-01 13:50       ` Juliusz Chroboczek [this message]
2006-09-01 17:12         ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=7ik64nzoej.fsf@lanthane.pps.jussieu.fr \
    --to=juliusz.chroboczek@pps.jussieu.fr \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.