Gnus development mailing list
 help / color / mirror / Atom feed
* XEmacs, Gnus and mm-coding-system priorities.
@ 2004-12-03 16:55 Aidan Kehoe
  2004-12-06  2:30 ` Katsumi Yamaoka
  2004-12-07  1:03 ` XEmacs, Gnus and mm-coding-system priorities Katsumi Yamaoka
  0 siblings, 2 replies; 25+ messages in thread
From: Aidan Kehoe @ 2004-12-03 16:55 UTC (permalink / raw)
  Cc: Katsumi Yamaoka

[-- Attachment #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: Diff to have XEmacs pay attention to mm-coding-system-priorities --]
[-- Type: application/octet-stream, Size: 1913 bytes --]

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

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2005-01-02  7:49 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-03 16:55 XEmacs, Gnus and mm-coding-system priorities Aidan Kehoe
2004-12-06  2:30 ` Katsumi Yamaoka
2004-12-06 13:35   ` Aidan Kehoe
2004-12-06 15:19   ` Katsumi Yamaoka
2004-12-06 22:30   ` Katsumi Yamaoka
2004-12-07  1:03     ` Katsumi Yamaoka
2004-12-07  0:10   ` Aidan Kehoe
2004-12-07  1:04     ` Katsumi Yamaoka
2004-12-07 12:32       ` Katsumi Yamaoka
2004-12-17 12:21         ` Aidan Kehoe
2004-12-17 12:46           ` Katsumi Yamaoka
2004-12-17 16:09             ` Katsumi Yamaoka
2004-12-31  9:01         ` XEmacs hangs in rfc2047-encode-string (Was: XEmacs, Gnus and mm-coding-system priorities.) Steinar Bang
2004-12-31 11:47           ` XEmacs hangs in rfc2047-encode-string Reiner Steib
2004-12-31 14:41             ` Steinar Bang
2004-12-31 19:10               ` Andrey Slusar
2005-01-01  9:04                 ` Steinar Bang
2005-01-01 18:03                   ` Andrey Slusar
2005-01-01 19:25                     ` Steinar Bang
2005-01-01 22:05                       ` Andrey Slusar
2005-01-02  7:49                         ` Steinar Bang
2004-12-31 12:53           ` Steinar Bang
2004-12-31 13:42           ` Arnaud Giersch
2004-12-31 14:45             ` Steinar Bang
2004-12-07  1:03 ` 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).