Gnus development mailing list
 help / color / mirror / Atom feed
* Xemacs (Mule) and GNU Emacs, problem with drafts and encoding.
@ 2015-05-27 12:51 Uwe Brauer
  2015-05-28  1:29 ` Katsumi Yamaoka
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2015-05-27 12:51 UTC (permalink / raw)
  To: ding; +Cc: XEmacs Beta Discussion



Hello 

I use gnus with both Emacsen. However the drafts which are saved are not
compatible with each other.


According to the documentation"

,----
| 
| `message-draft-coding-system' is a variable declared in Lisp.
|   -- loaded from "message"
| 
| Value: escape-quoted
| 
| Documentation:
| *Coding system to compose mail.
| If you'd like to make it possible to share draft files between XEmacs
| and Emacs, you may use `iso-2022-7bit' for this value at your own risk.
| Note that the coding-system `iso-2022-7bit' isn't suitable to all data.
`----

I tried  that but this coding setting but alas it does not make the
drafts compatible. 

Why does Xemacs not support the utf-8 coding for drafts, although in
general it does support this format?

regards

Uwe Brauer 




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

* Re: Xemacs (Mule) and GNU Emacs, problem with drafts and encoding.
  2015-05-27 12:51 Xemacs (Mule) and GNU Emacs, problem with drafts and encoding Uwe Brauer
@ 2015-05-28  1:29 ` Katsumi Yamaoka
  2015-05-28  9:26   ` Uwe Brauer
  0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2015-05-28  1:29 UTC (permalink / raw)
  To: ding

On Wed, 27 May 2015 14:51:12 +0200, Uwe Brauer wrote:
> I tried  that but this coding setting but alas it does not make the
> drafts compatible.

Supposing you meant escape-quoted, it is the only real universal
coding system in XEmacs 21.5 and 21.4 (with Mule) AFAIK, but is
not available in Emacs.  I think the iso-2022-7bit choice is not
so bad since the etc/HELLO file uses it in both Emacsen.

> Why does Xemacs not support the utf-8 coding for drafts, although in
> general it does support this format?

XEmacs 21.5 supports utf-8 natively but 21.4 requires the Mule-UCS
XEmacs package, that is a bit buggy, AFAIK.



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

* Re: Xemacs (Mule) and GNU Emacs, problem with drafts and encoding.
  2015-05-28  1:29 ` Katsumi Yamaoka
@ 2015-05-28  9:26   ` Uwe Brauer
  2015-05-29  2:46     ` Katsumi Yamaoka
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2015-05-28  9:26 UTC (permalink / raw)
  To: ding

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

>> "Katsumi" == Katsumi Yamaoka <yamaoka@jpl.org> writes:

   > On Wed, 27 May 2015 14:51:12 +0200, Uwe Brauer wrote:
   >> I tried  that but this coding setting but alas it does not make the
   >> drafts compatible.

   > Supposing you meant escape-quoted, it is the only real universal
   > coding system in XEmacs 21.5 and 21.4 (with Mule) AFAIK, but is
   > not available in Emacs.  I think the iso-2022-7bit choice is not
   > so bad since the etc/HELLO file uses it in both Emacsen.

Hm when I use the setting 
(setq message-draft-coding-system 'iso-2022-7bit)
and try to enter the draft folder I obtain an error I attach below

   >> Why does Xemacs not support the utf-8 coding for drafts, although in
   >> general it does support this format?

   > XEmacs 21.5 supports utf-8 natively but 21.4 requires the Mule-UCS
   > XEmacs package, that is a bit buggy, AFAIK.

I am on 21.5.33 Mule, so utf8 should be supported, however

(setq message-draft-coding-system 'utf8) 

Also gives me an error I attach 



[-- Attachment #2: utf8 coding bug --]
[-- Type: text/plain, Size: 1916 bytes --]

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-name-nondirectory(nil)
  insert-file-contents("~/News/drafts/drafts/818")
  byte-code("..." [file coding-system-for-read auto-mode-alist file-name-coding-system nnmail-pathname-coding-system nnmail-file-coding-system mm-auto-mode-alist insert-file-contents t] 3)
  nnmail-find-file("~/News/drafts/drafts/818")
  nndraft-request-article(818 "drafts" "" #<buffer " *nntpd*">)
  nndraft-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "drafts" "" t)
  gnus-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "nndraft:drafts" t)
  gnus-cache-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "nndraft:drafts" t)
  gnus-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "nndraft:drafts" t)
  gnus-fetch-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926))
  gnus-select-newsgroup("nndraft:drafts" nil nil)
  gnus-summary-read-group-1("nndraft:drafts" nil t nil nil nil)
  gnus-summary-read-group("nndraft:drafts" nil t nil nil nil nil)
  gnus-group-read-group(nil t)
  gnus-group-select-group(nil)
  gnus-topic-select-group(nil)
  call-interactively(gnus-topic-select-group)

[-- Attachment #3: iso-2022 bug --]
[-- Type: text/plain, Size: 3671 bytes --]

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-name-nondirectory(nil)
  insert-file-contents("~/News/drafts/drafts/818")
  byte-code("..." [file coding-system-for-read auto-mode-alist file-name-coding-system nnmail-pathname-coding-system nnmail-file-coding-system mm-auto-mode-alist insert-file-contents t] 3)
  nnmail-find-file("~/News/drafts/drafts/818")
  nndraft-request-article(818 "drafts" "" #<buffer " *nntpd*">)
  nndraft-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "drafts" "" t)
  gnus-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "nndraft:drafts" t)
  gnus-fetch-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926))
  gnus-select-newsgroup("nndraft:drafts" nil nil)
  gnus-summary-read-group-1("nndraft:drafts" nil t nil nil nil)
  gnus-summary-read-group("nndraft:drafts" nil t nil nil nil nil)
  gnus-group-read-group(nil t)
  gnus-group-select-group(nil)
  gnus-topic-select-group(nil)
  call-interactively(gnus-topic-select-group)
  recursive-edit()
  byte-code("..." [buffer-read-only noninteractive debugger-buffer middlestart debugger-args debugger-batch-max-lines pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message buffer-string kill-emacs debug backtrace-debug 3 t debugger-reenable "" nil recursive-edit standard-output] 3)
  debug(error (wrong-type-argument stringp nil))
  file-name-nondirectory(nil)
  insert-file-contents("~/News/drafts/drafts/818")
  byte-code("..." [file coding-system-for-read auto-mode-alist file-name-coding-system nnmail-pathname-coding-system nnmail-file-coding-system mm-auto-mode-alist insert-file-contents t] 3)
  nnmail-find-file("~/News/drafts/drafts/818")
  nndraft-request-article(818 "drafts" "" #<buffer " *nntpd*">)
  nndraft-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "drafts" "" t)
  gnus-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "nndraft:drafts" t)
  gnus-cache-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "nndraft:drafts" t)
  gnus-retrieve-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926) "nndraft:drafts" t)
  gnus-fetch-headers((604 719 725 726 728 730 731 732 733 735 741 743 747 751 754 783 785 787 795 796 816 817 818 819 822 827 829 831 836 838 841 842 846 848 851 852 855 874 885 894 896 903 908 917 920 923 926))
  gnus-select-newsgroup("nndraft:drafts" nil nil)
  gnus-summary-read-group-1("nndraft:drafts" nil t nil nil nil)
  gnus-summary-read-group("nndraft:drafts" nil t nil nil nil nil)
  gnus-group-read-group(nil t)
  gnus-group-select-group(nil)
  gnus-topic-select-group(nil)
  call-interactively(gnus-topic-select-group)

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

* Re: Xemacs (Mule) and GNU Emacs, problem with drafts and encoding.
  2015-05-28  9:26   ` Uwe Brauer
@ 2015-05-29  2:46     ` Katsumi Yamaoka
  0 siblings, 0 replies; 4+ messages in thread
From: Katsumi Yamaoka @ 2015-05-29  2:46 UTC (permalink / raw)
  To: ding

On Thu, 28 May 2015 11:26:45 +0200, Uwe Brauer wrote:
[...]
> Hm when I use the setting
> (setq message-draft-coding-system 'iso-2022-7bit)
> and try to enter the draft folder I obtain an error I attach
> below
[...]
> I am on 21.5.33 Mule, so utf8 should be supported, however
> (setq message-draft-coding-system 'utf8)
> Also gives me an error I attach

> Debugger entered--Lisp error: (wrong-type-argument stringp
> nil)
>   file-name-nondirectory(nil)
>   insert-file-contents("~/News/drafts/drafts/818")

It's strange.  Could you load code-files.el,  not code-files.elc,
and fetch the error again? [1]
code-files.el defines insert-file-contents, that calls
file-name-nondirectory, however I don't see why it gets nil as
an argument.  I suspect it might not be related to the value of
message-draft-coding-system.

I got no error whatever the coding system is.

[1] To locate code-files.e, use `M-x locate-library'.



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

end of thread, other threads:[~2015-05-29  2:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-27 12:51 Xemacs (Mule) and GNU Emacs, problem with drafts and encoding Uwe Brauer
2015-05-28  1:29 ` Katsumi Yamaoka
2015-05-28  9:26   ` Uwe Brauer
2015-05-29  2:46     ` 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).