Gnus development mailing list
 help / color / mirror / Atom feed
* smtpmail.el: set-buffer-file-coding-system takes too many args
@ 2007-01-03 15:30 David Z Maze
  2007-01-06 14:50 ` Reiner Steib
  0 siblings, 1 reply; 13+ messages in thread
From: David Z Maze @ 2007-01-03 15:30 UTC (permalink / raw)


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

I ran 'cvs update' after a long drought and suddenly couldn't send any
mail!  I tracked this down to a change in smtpmail.el that sets the
coding system on outgoing mail buffers; it calls
set-buffer-file-coding-system with four arguments, but my Emacs ("GNU
Emacs 21.4.1 (sparc-sun-solaris2.10, X toolkit) of 2005-05-31 on
maytag.mit.edu") only takes three.

To make things work I needed the following:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 979 bytes --]

--- smtpmail.el 27 Nov 2006 00:39:24 -0000      7.5
+++ smtpmail.el 3 Jan 2007 15:25:57 -0000
@@ -248,7 +248,7 @@
          ;; buffer, otherwise any write-region invocations (e.g., in
          ;; mail-do-fcc below) will annoy with asking for a suitable
          ;; encoding.
-         (set-buffer-file-coding-system smtpmail-code-conv-from nil t)
+         (set-buffer-file-coding-system smtpmail-code-conv-from nil)
          (insert-buffer-substring mailbuf)
          (goto-char (point-max))
          ;; require one newline at the end.
@@ -394,7 +394,7 @@
                (make-directory smtpmail-queue-dir t))
              (with-current-buffer buffer-data
                (erase-buffer)
-               (set-buffer-file-coding-system smtpmail-code-conv-from nil t)
+               (set-buffer-file-coding-system smtpmail-code-conv-from nil)
                (insert-buffer-substring tembuf)
                (write-file file-data)
                (set-buffer buffer-elisp)

[-- Attachment #3: Type: text/plain, Size: 173 bytes --]


Is the last arg necessary on some other Emacs?  Is there some Gnus
compatability shim that'll work here?  Does its status in "contrib"
affect things any?

Thanks,

  --dzm

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

end of thread, other threads:[~2007-03-31 21:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-03 15:30 smtpmail.el: set-buffer-file-coding-system takes too many args David Z Maze
2007-01-06 14:50 ` Reiner Steib
2007-01-06 17:59   ` Simon Josefsson
2007-01-06 20:11     ` Reiner Steib
2007-01-07 10:12       ` Simon Josefsson
2007-01-07 12:07         ` Reiner Steib
2007-01-08  8:54           ` Simon Josefsson
2007-01-07 12:09         ` Reiner Steib
2007-03-24 12:30           ` Reiner Steib
2007-03-24 17:07             ` Eli Zaretskii
2007-03-24 19:18               ` Reiner Steib
2007-03-25  2:14                 ` Miles Bader
2007-03-31 21:18                   ` Reiner Steib

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