From: michael@cadilhac.name (Michaël Cadilhac)
To: emacs-devel@gnu.org
Subject: report-emacs-bug and *mail* buffer.
Date: Wed, 07 Mar 2007 15:36:10 +0100 [thread overview]
Message-ID: <87mz2pt92d.fsf@lrde.org> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 689 bytes --]
Hi!
I use both Gnus and report-emacs-bug, and I have a little problem :
Test case:
Create a new mail with Gnus with `m'. The buffer is called `*mail*'.
Now use M-x report-emacs-bug : your Gnus mail is converted to
mail-mode and asked for deletion. Even if you say no to deletion, the
buffer is converted to mail-mode, but if you really want to make a bug
report, you can't until you've close your Gnus *mail*.
I propose the following patch that forces, in the default config, to
use a new buffer each time r-e-bug is called. This is the simplest
change I could came up with ; others include searching for a bug-report
buffer and ask for its deletion, but the modifications are bigger.
[-- Attachment #1.1.2: emacsbug.patch --]
[-- Type: text/x-patch, Size: 2879 bytes --]
Index: lisp/mail/emacsbug.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/mail/emacsbug.el,v
retrieving revision 1.72
diff -B -w -c -r1.72 emacsbug.el
*** lisp/mail/emacsbug.el 21 Jan 2007 02:59:07 -0000 1.72
--- lisp/mail/emacsbug.el 7 Mar 2007 13:32:56 -0000
***************
*** 89,95 ****
(with-current-buffer (get-buffer-create "*Messages*")
(point-max-marker)))
(compose-mail reporting-address
! topic)
;; The rest of this does not execute
;; if the user was asked to confirm and said no.
(rfc822-goto-eoh)
--- 89,95 ----
(with-current-buffer (get-buffer-create "*Messages*")
(point-max-marker)))
(compose-mail reporting-address
! topic nil 'new)
;; The rest of this does not execute
;; if the user was asked to confirm and said no.
(rfc822-goto-eoh)
Index: lisp/simple.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/simple.el,v
retrieving revision 1.848
diff -B -w -c -r1.848 simple.el
*** lisp/simple.el 6 Mar 2007 02:18:05 -0000 1.848
--- lisp/simple.el 7 Mar 2007 13:32:59 -0000
***************
*** 4668,4679 ****
(defun sendmail-user-agent-compose (&optional to subject other-headers continue
switch-function yank-action
send-actions)
! (if switch-function
! (let ((special-display-buffer-names nil)
! (special-display-regexps nil)
! (same-window-buffer-names nil)
! (same-window-regexps nil))
! (funcall switch-function "*mail*")))
(let ((cc (cdr (assoc-string "cc" other-headers t)))
(in-reply-to (cdr (assoc-string "in-reply-to" other-headers t)))
(body (cdr (assoc-string "body" other-headers t))))
--- 4668,4674 ----
(defun sendmail-user-agent-compose (&optional to subject other-headers continue
switch-function yank-action
send-actions)
! ;; `switch-function' is ignored as `mail' will choose its own buffer.
(let ((cc (cdr (assoc-string "cc" other-headers t)))
(in-reply-to (cdr (assoc-string "in-reply-to" other-headers t)))
(body (cdr (assoc-string "body" other-headers t))))
Index: lisp/ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.10783
diff -C0 -r1.10783 ChangeLog
*** lisp/ChangeLog 7 Mar 2007 12:50:23 -0000 1.10783
--- lisp/ChangeLog 7 Mar 2007 13:33:29 -0000
***************
*** 0 ****
--- 1,8 ----
+ 2007-03-07 Michaël Cadilhac <michael@cadilhac.name>
+
+ * simple.el (sendmail-user-agent-compose): Don't consider
+ `switch-function' as `mail' selects its own buffer.
+
+ * mail/emacsbug.el (report-emacs-bug): Suggest to use a new
+ mail buffer to `compose-mail'.
+
[-- Attachment #1.1.3: Type: text/plain, Size: 335 bytes --]
TIA.
--
| Michaël `Micha' Cadilhac | Libertude, |
| http://michael.cadilhac.name | Égalitude, |
| JID/MSN: | Fraternitude. |
`---- michael.cadilhac@gmail.com | -- À peu près S.R. - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2007-03-07 14:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-07 14:36 Michaël Cadilhac [this message]
[not found] ` <E1HQFbl-0001tK-20@fencepost.gnu.org>
[not found] ` <87fy8bsxtp.fsf@lrde.org>
2007-03-12 1:27 ` report-emacs-bug and *mail* buffer Richard Stallman
2007-03-12 4:24 ` Katsumi Yamaoka
2007-03-12 6:40 ` Miles Bader
2007-03-12 19:18 ` Richard Stallman
2007-03-13 0:59 ` Katsumi Yamaoka
2007-03-14 3:25 ` Richard Stallman
2007-03-14 9:12 ` Katsumi Yamaoka
2007-03-14 11:48 ` Katsumi Yamaoka
2007-03-12 1:27 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mz2pt92d.fsf@lrde.org \
--to=michael@cadilhac.name \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.