all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: How to create a derived encoding?
Date: Tue, 12 Oct 2004 23:02:38 +0200	[thread overview]
Message-ID: <x5y8ibfy4x.fsf@lola.goethe.zz> (raw)
In-Reply-To: <jwvzn2rj4eo.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 12 Oct 2004 12:23:10 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>> 1 - assume the raw TeX output with its funny quoted bytes is in the
>>> current temp buffer.   The buffer is in unibyte mode.
>
>> No good.  We are talking about process output that is accumulating in
>> a buffer.  We can't just let everything trickle in in raw mode since
>> the buffer may be interactive and so we need to have more or less
>> accurate stuff at each point of time.
>
> That's OK.  This assumption is not important.  You can do the
> decoding in the process filter, or anywhere else.
>
>>> 3 - call decode-coding-region with the appropriate coding system.
>>> 4 - set the buffer to multibyte.
>
>> The buffer comes into being incrementally.
>
> There can be several buffers.  Remember in point 1 I said "temp buffer".
> And I'm sue it can be all done within a multibyte buffer if necessary.
>
>>> If the step number 2 is too slow, you can most likely implement a
>>> CCL program that does it faster.
>
>> Well, that was what I was asking about.  And how to let this CCL
>> program run prefixed to the normal process output decoding program.
>
> You can run a CCL program independently from any coding system.

Well, I can hardly run it manually _before_ the process decoding
stuff.  And if I run it in the filter function, it has to deal with
partial characters at the end of the string.  And the utf-8 decoding
after it also has to deal with partial characters at the end of the
string, which is normally done by the process filter.

And of course the most challenging bit is that I have no clue
whatsoever about CCL programs.  Not to mention that I hope that XEmacs
Mule will work just the same, but that's a different distraction.  If
it doesn't, I'll whine on the respective lists until it does.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2004-10-12 21:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-12  0:10 How to create a derived encoding? David Kastrup
2004-10-12 15:09 ` Stefan Monnier
2004-10-12 15:27   ` David Kastrup
2004-10-12 16:23     ` Stefan Monnier
2004-10-12 21:02       ` David Kastrup [this message]
2004-10-14 11:12         ` Oliver Scholz

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=x5y8ibfy4x.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --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.