Gnus development mailing list
 help / color / mirror / Atom feed
* pgnus 0.94 Signaling: (void-variable buffer-file-coding-system)
@ 1999-07-09 20:49 Roman Milner
  1999-07-11  4:20 ` Shenghuo ZHU
  0 siblings, 1 reply; 3+ messages in thread
From: Roman Milner @ 1999-07-09 20:49 UTC (permalink / raw)



On XEmacs 21.3 sans mule - when I try to save a text/html mime part:

Signaling: (void-variable buffer-file-coding-system)
  mm-save-part-to-file((#<buffer " *mm*<2>"> ("text/html" (name
. "footer.html")) nil (lambda nil (let ... ... ...)) ("inline"
(filename . "footer.html")) "footer.html" nil nil) "~/footer.html")
  mm-save-part((#<buffer " *mm*<2>"> ("text/html" (name
. "footer.html")) nil (lambda nil (let ... ... ...)) ("inline"
(filename . "footer.html")) "footer.html" nil nil))
  #<compiled-function nil "...(13)" [gnus-article-check-buffer
get-text-property gnus-data data mm-save-part] 3
("/usr/src/elisp/sgnus/gnus-art.elc" . 74855) nil>()
  call-interactively(gnus-mime-save-part)
  gnus-mime-button-menu(#<buttondown-event button3>)
  call-interactively(gnus-mime-button-menu)


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

* Re: pgnus 0.94 Signaling: (void-variable buffer-file-coding-system)
  1999-07-09 20:49 pgnus 0.94 Signaling: (void-variable buffer-file-coding-system) Roman Milner
@ 1999-07-11  4:20 ` Shenghuo ZHU
  1999-07-11  9:03   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Shenghuo ZHU @ 1999-07-11  4:20 UTC (permalink / raw)


>>>>> "Roman" == Roman Milner <roman@speeder.com> writes:

Roman> On XEmacs 21.3 sans mule - when I try to save a text/html mime part:

Roman> Signaling: (void-variable buffer-file-coding-system)
Roman>   mm-save-part-to-file((#<buffer " *mm*<2>"> ("text/html" (name
Roman> . "footer.html")) nil (lambda nil (let ... ... ...)) ("inline"
Roman> (filename . "footer.html")) "footer.html" nil nil) "~/footer.html")
Roman>   mm-save-part((#<buffer " *mm*<2>"> ("text/html" (name
Roman> . "footer.html")) nil (lambda nil (let ... ... ...)) ("inline"
Roman> (filename . "footer.html")) "footer.html" nil nil))
Roman>   #<compiled-function nil "...(13)" [gnus-article-check-buffer
Roman> get-text-property gnus-data data mm-save-part] 3
Roman> ("/usr/src/elisp/sgnus/gnus-art.elc" . 74855) nil>()
Roman>   call-interactively(gnus-mime-save-part)
Roman>   gnus-mime-button-menu(#<buttondown-event button3>)
Roman>   call-interactively(gnus-mime-button-menu)

,--------  Line 569 of mm-decode.el
|     (let ((coding-system-for-write
| 	   (if (equal "text" (mm-handle-media-supertype handle))
| 	       buffer-file-coding-system
| 	     'binary))
`--------

I guess using nil instead of buffer-file-coding-system should fix the
bug, because in XEmacs w/ mule, buffer-file-coding-system is used for
writing if coding-system-for-write is nil, and in XEmacs w/o mule, it
will not cause unbounded error.


-- 
Shenghuo ZHU


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

* Re: pgnus 0.94 Signaling: (void-variable buffer-file-coding-system)
  1999-07-11  4:20 ` Shenghuo ZHU
@ 1999-07-11  9:03   ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-07-11  9:03 UTC (permalink / raw)


Shenghuo ZHU <zsh@cs.rochester.edu> writes:

> |     (let ((coding-system-for-write
> | 	   (if (equal "text" (mm-handle-media-supertype handle))
> | 	       buffer-file-coding-system
> | 	     'binary))
> `--------
> 
> I guess using nil instead of buffer-file-coding-system should fix the
> bug, because in XEmacs w/ mule, buffer-file-coding-system is used for
> writing if coding-system-for-write is nil, and in XEmacs w/o mule, it
> will not cause unbounded error.

Perhaps coding-system-for-write should be 'binary in all cases, since
we are in `mm-with-unibyte-buffer' anyway...  I've made this fix to
0.96. 

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

end of thread, other threads:[~1999-07-11  9:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-09 20:49 pgnus 0.94 Signaling: (void-variable buffer-file-coding-system) Roman Milner
1999-07-11  4:20 ` Shenghuo ZHU
1999-07-11  9:03   ` Lars Magne Ingebrigtsen

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).