From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Changing the default for `send-mail-function' Date: Mon, 27 Jun 2011 00:05:29 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87pqm0moff.fsf@stupidchicken.com> <4E07A2BB.7090809@gmail.com> <4E07AA38.2000301@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309125962 18430 80.91.229.12 (26 Jun 2011 22:06:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Jun 2011 22:06:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 27 00:05:58 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QaxSn-0001kr-SH for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2011 00:05:58 +0200 Original-Received: from localhost ([::1]:48009 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaxSm-00077Q-Pu for ged-emacs-devel@m.gmane.org; Sun, 26 Jun 2011 18:05:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaxSZ-00077L-59 for emacs-devel@gnu.org; Sun, 26 Jun 2011 18:05:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaxSY-0000HC-0s for emacs-devel@gnu.org; Sun, 26 Jun 2011 18:05:43 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaxSX-0000H6-IM for emacs-devel@gnu.org; Sun, 26 Jun 2011 18:05:41 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QaxSW-0001d1-Iv for emacs-devel@gnu.org; Mon, 27 Jun 2011 00:05:40 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2011 00:05:40 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2011 00:05:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 50 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAIVBMVEXsyi7z2DiSMAT57Hjq rjv23i736HH4733VdBn46nP79KTJ6go0AAACW0lEQVQ4jWXUQWvbMBQAYBEWk7+w2/A60HmCGvc0 XNWoOXmlHjlnQZt79ahLTkU4QfgqcHnXLXhBv3JPkpMm6zu+L09P0pNDyLQsSzKLNSG5tNY29tdD zZKGFCXBmMTxhzLqrZWXPLd10zSYdCUqjuMyurRDUnM7AqbLAvPxJnq0f5oG12scuN+XCwefAjyO UI4V3MNwBguNLX7HU4S/mDpCQSkVuRAlgn2s10eY5Nf8cyc25TcEH2Nzba+edPtcvgE6rIV4h72+ ngG22HEhbjxwKVdSyh8eFttdK7SH5iQQ5rtOUHfO4gymd/OhW2oPyRlkD7ZbCgQSnS+lre0yUeD2 InYKhNoBwd1YZJJz2HfZ0gNgCTvChRVdlnlgmK0PMGul+LhUAZImYSfALzKEYhrBS5MyxpIAlHOq lMbYVoYxYGmACc25il1eUcAshJIaYc5dUnO5em8QUgNuE2TSrveKtg9428OtYX0FFbgaBGv5lR/D 7hYLAGTl1iKTbRjOINqn7wg4DmlcxSzAoOP5HtIUegRgSU2IX36l1IVtwaelrMAgaM650Ju7btg6 cFRhf4In1ArndLfeR2AggKxSfNSaPrvnaEUEh7WwTXjtGMJuIqjGHhJeod3jJVYg31Rsv+CgIO3D rtIj3OcbDxCAsQMsfjowae92DMYdMAAXYwW4e2evFXnrASRW4eWz8eMs71fXAQASBHaAIs8oD2Bq HKI5fs5cBehxFrgOq5NxqYXSLZ48dc+BpafNZzfqOTImBfOS+lbhHyOE64GjcFDJ45WMEAJP/z/0 MN79P6jhu4BzfhQHAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Parenthetical Girls's _Safe As Houses (2)_: "The Fragile Class" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:uxycMfOv/cIKGbcOtlGTLIoigwk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141020 Archived-At: Christoph Scholtes writes: > On 6/26/2011 3:29 PM, Lars Magne Ingebrigtsen wrote: >> (setq debug-on-quit t) > > Debugger entered--Lisp error: (quit) > accept-process-output(# 0 50) > network-stream-get-response(# 1 "^[0-9]+ .*\n") Pretty much what I expected, and somewhat bewildering. It's waiting for "^[0-9]+ .*\n" in the buffer, and you said that the buffer contained: 220 mx.google.com ESMTP a9sm4719085icy.18 Was there a newline after that line? This is the loop that's looking for the end of the greeting: (with-current-buffer (process-buffer stream) (save-excursion (goto-char start) (while (and (memq (process-status stream) '(open run)) (not (re-search-forward end-of-command nil t))) (accept-process-output stream 0 50) (goto-char start)) I wonder whether you're hitting the never-chased-down obscure error where `accept-process-output' changes the current buffer, which I've had reports about once in a while from some users, but have never understood. Does the following hack make smtpmail.el work for you? === modified file 'lisp/net/network-stream.el' *** lisp/net/network-stream.el 2011-06-26 21:05:06 +0000 --- lisp/net/network-stream.el 2011-06-26 22:04:17 +0000 *************** *** 305,310 **** --- 305,311 ---- (while (and (memq (process-status stream) '(open run)) (not (re-search-forward end-of-command nil t))) (accept-process-output stream 0 50) + (set-buffer (process-buffer stream)) (goto-char start)) ;; Return the data we got back, or nil if the process died. (unless (= start (point)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/