all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Lennart Borgman <lennart.borgman@gmail.com>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	 Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: url-retrieve-synchronously and coding
Date: Mon, 24 Jan 2011 18:29:06 +0100	[thread overview]
Message-ID: <AANLkTinSLV+OyGgGm=feSrZH=suEu7Q2B=HGYs3RW1Nu@mail.gmail.com> (raw)
In-Reply-To: <sa31v42tjz2.fsf@cigue.easter-eggs.fr>

On Mon, Jan 24, 2011 at 4:11 PM, Julien Danjou <julien@danjou.info> wrote:
> On Mon, Jan 24 2011, Lennart Borgman wrote:
>
>> It seems natural in a case like this where Content-Type is text/xml to
>> look for the specified charset in the xml content. I think
>> `url-insert' should do this. Here is a suggestion for how to do it
>> where I just have added a search for <?xml encoding=...>:
>
> Damn no, I don't think *url*-insert should parse XML, or you'll end up
> parsing a lot of file type. This is not what url is about.

url-insert already does character decoding, but only if the
information is in the mime headers.

Isn't it easier to understand and maintain if all decoding is done at
the same place? Maybe url-insert is not the right place to do any
decoding?


> What you need is another layer on top of mm (or enhance mm) with
> something like this:
>
> #+begin_src emacs-lisp
> (defvar mm-decoder-helper-functions
>  '(("text/xml" . 'mm-decoder-xml-helper)))

Yes, that looks like a good structure. But where exactly should this
be done? Where is multi-part messages char decoding handled?



  reply	other threads:[~2011-01-24 17:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-23 19:03 url-retrieve-synchronously and coding Lennart Borgman
2011-01-24  3:37 ` Stefan Monnier
2011-01-24 12:21   ` Lennart Borgman
2011-01-24 15:11     ` Julien Danjou
2011-01-24 17:29       ` Lennart Borgman [this message]
2011-01-24 19:59         ` Lennart Borgman
2011-01-25 10:47           ` Julien Danjou
2011-01-25 11:01             ` Lennart Borgman
2011-01-26 22:08               ` Lennart Borgman
2011-01-25 10:44         ` Julien Danjou
2011-01-24 16:44     ` 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='AANLkTinSLV+OyGgGm=feSrZH=suEu7Q2B=HGYs3RW1Nu@mail.gmail.com' \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.