Gnus development mailing list
 help / color / mirror / Atom feed
* Fwd: XEmacs, Gnus and mm-coding-system priorities.
@ 2004-12-06  1:42 Katsumi Yamaoka
  0 siblings, 0 replies; only message in thread
From: Katsumi Yamaoka @ 2004-12-06  1:42 UTC (permalink / raw)
  Cc: Aidan Kehoe

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]

Hi,

I forward Aidan Kehoe's message which I received last week.  I
couldn't see it in the ding list strangely.  Anyway, I need to
fulfill my duty, later.

(To burst it, type `C-d', select the forwarded message and type
`B c' to copy it to the ding group.)


[-- Attachment #2: Type: message/rfc822, Size: 7696 bytes --]

[-- Attachment #2.1.1: message body and .signature --]
[-- Type: text/plain, Size: 2528 bytes --]


Hi!

I’ve written a patch for Gnus that handles MIME character set selection more
intelligently under XEmacs. With this change, and with Stephen Turnbull’s
latin-unity available—as is usual under XEmacs with Mule—you can set
mm-coding-system-priorities to an ordered list, and Gnus will choose the
first coding system that can encode the message, as the MIME character set
to send. This is the case even with multiple character sets in a message, a
case that’s badly handled at the moment.

Katsumi Yamaoka; In b9yeki8faw8.fsf@jpl.org on gnu.emacs.gnus, you say that
mm-coding-system-priorities should be honoured by the latest Gnus even in
XEmacs. I’m unclear as to how this is possible, given that
mm-use-find-coding-systems-region must always be nil under XEmacs
(find-coding-systems-region doesn’t exist in it) and the only place the
variable is referenced is after checking if it’s “t”. Cf. line 594 of
mm-util.el. 

Reiner Steib, in message v9oehcoozg.fsf%40marauder.physik.uni-ulm.de ,
suggests that I separate out the bulk of my changes into a separate
function, which I’ve done in the attached patch. I’ve tested the patch on 
GNU Emacs 21.3.1 with the CVS trunk version of Gnus, and no change was
observed, as expected. I’ve also tested the patch with the CVS trunk version
of Gnus, and XEmacs 21.4.13, but CVS Gnus is unable to connect to a NNTP
server for me with that combination. 21.5.18 crashes for me when I try to do
the same thing. 

With the stable Gnus that Debian installed with 21.4, 5.10.2, the patch
works fine for me. Ditto for the version a recent XEmacs sumo tarball had,
5.10.6.

As well as the patch, I’ve attached a file that tests what it does. Since it
only does anything on XEmacs, you’ll need a copy of XEmacs to run it. Both
files are available uncompressed over the web at
http://parhasard.net/mm-xemacs-coding-systems.diff and
http://parhasard.net/mm-xemacs-coding-test.el , respectively.  

Reiner also tells me that I need to send a copyright assignment to the FSF
to get this added to mainline Gnus; where do I get the forms for this? Can I
download PDFs and print them out?

Best regards,  

	- Aidan
-- 
“As democracy is perfected, the office of president represents, more and
more closely, the inner soul of the people. On some great and glorious day
the plain folks of the land will reach their heart’s desire at last and the
White House will be adorned by a downright moron.” – H.L. Mencken 


[-- Attachment #2.1.2: Diff to have XEmacs pay attention to mm-coding-system-priorities --]
[-- Type: application/octet-stream, Size: 1913 bytes --]

[-- Attachment #2.1.3: Test Emacs lisp to check the previous app. --]
[-- Type: application/octet-stream, Size: 1015 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-06  1:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-06  1:42 Fwd: XEmacs, Gnus and mm-coding-system priorities Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).