GNU bug report logs - #8595
24.0.50; cannot send bug report with emacs -nw

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sat, 30 Apr 2011 16:02:01 UTC

Severity: normal

Found in version 24.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8595 in the body.
You can then email your comments to 8595 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8595; Package emacs. (Sat, 30 Apr 2011 16:02:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 30 Apr 2011 16:02:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.0.50; cannot send bug report with emacs -nw
Date: Sat, 30 Apr 2011 09:01:33 -0700
When I hit C-c C-c to send the bug-report mail, instead of Emacs popping
up my mail client with a new message, and allowing me to paste the
bug-report contents into the mail, all that happens is that I see
"Sending...failed with exit value 1".
 
And I see buffer *unsent mail to bug-gnu-emacs <at> gnu.org* with my mail.
In that buffer, the From field says this:
dradams <at> DRADAMS-LAP1.i-did-not-set--mail-host-address--so-tickle-me
 
And the Message-ID field says this:
 
<krysjszhgw8.fsf <at> DRADAMS-LAP1.i-did-not-set--mail-host-address--so-tickle-me>
 
emacs -nw -Q should work the same way as emacs -Q for sending a bug
report.  On Windows it should pop up a new mail message using the user's
mail client (in my case Outlook) and let the user paste the bug-report
content from Emacs into to the new message.
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-04-25 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/imagesupport/include'
 





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8595; Package emacs. (Sat, 30 Apr 2011 16:28:03 GMT) Full text and rfc822 format available.

Message #8 received at 8595 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 8595 <at> debbugs.gnu.org
Subject: Re: bug#8595: 24.0.50; cannot send bug report with emacs -nw
Date: Sat, 30 Apr 2011 19:26:51 +0300
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Date: Sat, 30 Apr 2011 09:01:33 -0700
> 
> When I hit C-c C-c to send the bug-report mail, instead of Emacs popping
> up my mail client with a new message, and allowing me to paste the
> bug-report contents into the mail, all that happens is that I see
> "Sending...failed with exit value 1".

What is your value of send-mail-function in the session that fails
like that?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8595; Package emacs. (Sat, 30 Apr 2011 17:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 8595 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: 8595 <at> debbugs.gnu.org
Subject: RE: bug#8595: 24.0.50; cannot send bug report with emacs -nw
Date: Sat, 30 Apr 2011 10:51:04 -0700
> What is your value of send-mail-function in the session that fails
> like that?

send-mail-function is a variable defined in `sendmail.el'.
Its value is sendmail-send-it





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8595; Package emacs. (Sat, 30 Apr 2011 19:18:01 GMT) Full text and rfc822 format available.

Message #14 received at 8595 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 8595 <at> debbugs.gnu.org
Subject: Re: bug#8595: 24.0.50; cannot send bug report with emacs -nw
Date: Sat, 30 Apr 2011 22:16:53 +0300
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Cc: <8595 <at> debbugs.gnu.org>
> Date: Sat, 30 Apr 2011 10:51:04 -0700
> 
> > What is your value of send-mail-function in the session that fails
> > like that?
> 
> send-mail-function is a variable defined in `sendmail.el'.
> Its value is sendmail-send-it

That's the culprit, it should be mailclient-send-t.  I will try to
figure out why it doesn't happen in "emacs -nw".




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8595; Package emacs. (Sun, 01 May 2011 17:12:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andy Moreton <andrewjmoreton <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#8595: 24.0.50; cannot send bug report with emacs -nw
Date: Sun, 01 May 2011 18:11:10 +0100
On Sat 30 Apr 2011, Eli Zaretskii wrote:

>> From: "Drew Adams" <drew.adams <at> oracle.com>
>> Cc: <8595 <at> debbugs.gnu.org>
>> Date: Sat, 30 Apr 2011 10:51:04 -0700
>> 
>> > What is your value of send-mail-function in the session that fails
>> > like that?
>> 
>> send-mail-function is a variable defined in `sendmail.el'.
>> Its value is sendmail-send-it
>
> That's the culprit, it should be mailclient-send-t.  I will try to
> figure out why it doesn't happen in "emacs -nw".

Looking in sendmail.el:
--8<---------------cut here---------------start------------->8---
;; Prevent problems with `window-system' not having the correct value
;; when loaddefs.el is loaded. `custom-reevaluate-setting' needs the
;; standard value.
;;;###autoload
(put 'send-mail-function 'standard-value
     '((if (and window-system (memq system-type '(darwin windows-nt)))
	   'mailclient-send-it
	 'sendmail-send-it)))

;; Useful to set in site-init.el
;;;###autoload
(defcustom send-mail-function
  (if (and window-system (memq system-type '(darwin windows-nt)))
      'mailclient-send-it
    'sendmail-send-it)
--8<---------------cut here---------------end--------------->8---

So the question seems to be why is mailclient-send-it preferred only
when window-system is non-nil ?

    AndyM





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8595; Package emacs. (Sun, 01 May 2011 17:44:01 GMT) Full text and rfc822 format available.

Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andy Moreton <andrewjmoreton <at> gmail.com>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#8595: 24.0.50; cannot send bug report with emacs -nw
Date: Sun, 01 May 2011 20:43:40 +0300
> From: Andy Moreton <andrewjmoreton <at> gmail.com>
> Date: Sun, 01 May 2011 18:11:10 +0100
> 
> So the question seems to be why is mailclient-send-it preferred only
> when window-system is non-nil ?

Probably because text terminals cannot access the clipboard, whereas
mailclient-send-it calls clipboard-kill-ring-save.  But the MS-Windows
build still can access the clipboard even under -nw, so that condition
needs to be revised.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 07 May 2011 18:02:02 GMT) Full text and rfc822 format available.

Notification sent to "Drew Adams" <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Sat, 07 May 2011 18:02:03 GMT) Full text and rfc822 format available.

Message #25 received at 8595-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 8595-done <at> debbugs.gnu.org, andrewjmoreton <at> gmail.com
Subject: Re: bug#8595: 24.0.50; cannot send bug report with emacs -nw
Date: Sat, 07 May 2011 21:00:48 +0300
> Date: Sun, 01 May 2011 20:43:40 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: bug-gnu-emacs <at> gnu.org
> 
> > From: Andy Moreton <andrewjmoreton <at> gmail.com>
> > Date: Sun, 01 May 2011 18:11:10 +0100
> > 
> > So the question seems to be why is mailclient-send-it preferred only
> > when window-system is non-nil ?
> 
> Probably because text terminals cannot access the clipboard, whereas
> mailclient-send-it calls clipboard-kill-ring-save.  But the MS-Windows
> build still can access the clipboard even under -nw, so that condition
> needs to be revised.

Done (revno 104157 on the trunk).




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 05 Jun 2011 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 335 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.