From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: michael@cadilhac.name (=?iso-8859-1?Q?Micha=EBl?= Cadilhac) Newsgroups: gmane.emacs.devel Subject: report-emacs-bug and *mail* buffer. Date: Wed, 07 Mar 2007 15:36:10 +0100 Organization: Epita/LRDE Message-ID: <87mz2pt92d.fsf@lrde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0166765353==" X-Trace: sea.gmane.org 1173278244 31931 80.91.229.12 (7 Mar 2007 14:37:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Mar 2007 14:37:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 07 15:37:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HOxGS-0002h1-35 for ged-emacs-devel@m.gmane.org; Wed, 07 Mar 2007 15:37:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOxGX-0008GS-VA for ged-emacs-devel@m.gmane.org; Wed, 07 Mar 2007 09:37:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOxFe-0007yV-C1 for emacs-devel@gnu.org; Wed, 07 Mar 2007 09:36:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HOxFc-0007yG-8y for emacs-devel@gnu.org; Wed, 07 Mar 2007 09:36:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOxFc-0007yD-0l for emacs-devel@gnu.org; Wed, 07 Mar 2007 09:36:20 -0500 Original-Received: from smtp3-g19.free.fr ([212.27.42.29]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HOxFV-0003f6-0l for emacs-devel@gnu.org; Wed, 07 Mar 2007 09:36:13 -0500 Original-Received: from localhost (ivr94-6-82-230-255-91.fbx.proxad.net [82.230.255.91]) by smtp3-g19.free.fr (Postfix) with ESMTP id 2DE557D5F for ; Wed, 7 Mar 2007 15:36:12 +0100 (CET) X-Website: http://michael.cadilhac.name Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAYFBMVEUWCwUyFQk6JBNLGglQK BVRMiRkHQtwMBZuOCRyRi1iQiZyUUCFNxuIPCKRTC2mVTSpZTqVVS2SW0OYZkixb0qraE/KeU7EcT +4h2bPhVfQkm7hlnDkvZjYqIjrwJnzwqB5+4wZAAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWc AAAAwAAAAMADO7oxXAAADvUlEQVRIx32Wi5ajIAyGRcCAchErVqu27/+W+wfbs724i3Mcz5n/S0JI wlTbyXrs+zrFEL1zPuIdY7xO6+PBf6u27f4DrFPO3jvoQYRYFoj9CXyu+7ZPEWrXUNM0zpEfgjuY9 RTY1hyg5qUNgMb44Dwiiz5OZ8DCwVCjpdLaGNOVtw+M+Lz+AlNwRAhGSamh1abrtFKmG0DkmL8BhE +GdCNlreChBaO7DpjpIvbv/fr4AnqErhoYF6KI4aPrLIeFQLGj6RO4JWLjtdZ1WQXhvegGG0EKyO/ vwH7xJBk4tLrW5UPxN3zAufHDO3Axh4MCMPLisKQyRuJo/Btw60gpWcu6OogjsmIeiRIKgUlj3oCp a1QtRP1ywT9VfXCiZMEg4X+BfYADAHhhdc+NV1UBBT9SIedvgFFwDFslkO7S8e+KtQcohJCyefdgt DoC4pe+FB8VL3bDeiGB/AVurZJCvY5AtdaSKpYLJArxCXCOlMUpiRpF0Sbb8nZYBnGBPoGZuOCGAd lTqgXRlrrDuUgpDh+VNPYN0IRALnkIFsVTiBanbBQbesYl1Num584iojnnHIPVJRSJvFnrrFHPmD6 yBKJVbZ+nKScjIVfatlSaJ9BBiIbcW1rnOSF4F/OYGiFLQaCXyAUsLTggnAN9VOuMaBtuX1QmHwok RD4CIHzXChG5z37oWkRhxx5tCmdKNUSp7/tUYlQwQ/6z424JPtr+mlwwwbbGQj5CXwBjyPj4NQRmJ J7GZez7mPpk02W+jvgMnFrUaozhE7jPF9va+QZinMaxn0dGMSy5ExuHmdZ8APf7felTv9zGccGal3 le2JdHt0lJaGklvjwA6JcVACwXpugd+gAJQvuIL2C7r9eJgQscXQH0I+sxkrBjjE0ukW9gui7rMo9 DAoGnTzyZceA8lYh+AMxWeFiu/ZhSLCeAUex4hhPr6XsPPAqu0xRxNVAaS0J58pODvhCN/AFWziLP rMtYjsxD6y0dDpDeH2Cf+sxEyPmSYuIJbOi1zCmQc/DkbQg2FQ/O2RfgDP0Aj8eU+VpDmlpLvBkqe kTJpe5+r6xtz9A7VnCxlthfAJkz4JGRJfzVcEiHHK36BOgE2PYRPpIna0K5wAzGCLcWN6A6A3CRRu SJWo+NoybQfag9TA/CxymwTdnDWkh4cPOweckTRCkhzgH8K+ChxkKG2L4oQBlPp8B2G/sc02CDKTp xXExlOJ3q79vcpyGYlmelFOXRxyj/hwe+XnBhw6osY17wJfB/IB/3o2a14Hl8jNfqDx44iLN4w0aG AAAAAElFTkSuQmCC User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67501 Archived-At: --===============0166765353== Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= 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. --=-=-= Content-Type: text/x-patch; charset=iso-8859-1 Content-Disposition: inline; filename=emacsbug.patch Content-Transfer-Encoding: quoted-printable Index: lisp/mail/emacsbug.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =2D-- 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) =2D-- 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =2D-- lisp/simple.el 7 Mar 2007 13:32:59 -0000 *************** *** 4668,4679 **** (defun sendmail-user-agent-compose (&optional to subject other-headers co= ntinue 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)))) =2D-- 4668,4674 ---- (defun sendmail-user-agent-compose (&optional to subject other-headers co= ntinue 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =2D-- lisp/ChangeLog 7 Mar 2007 13:33:29 -0000 *************** *** 0 **** =2D-- 1,8 ---- + 2007-03-07 Micha=EBl Cadilhac +=20 + * simple.el (sendmail-user-agent-compose): Don't consider + `switch-function' as `mail' selects its own buffer. +=20 + * mail/emacsbug.el (report-emacs-bug): Suggest to use a new + mail buffer to `compose-mail'. +=20 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable TIA. =2D-=20 | Micha=EBl `Micha' Cadilhac | Libertude, = | | http://michael.cadilhac.name | =C9galitude, = | | JID/MSN: | Fraternitude. = | `---- michael.cadilhac@gmail.com | -- =C0 peu pr=E8s S.R. = - --' --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFF7s3bUJhDmOfFA3URAgVdAKDWCFyFxNcj1G/alyaORyNqIm+fpgCeMJyF CNFEEqpjXijteYzLfYlyRrE= =Gbc2 -----END PGP SIGNATURE----- --==-=-=-- --===============0166765353== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0166765353==--