From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80891 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.gnus.general Subject: Re: strange behaviour of gnus-summary-mail-forward. Date: Thu, 12 Jan 2012 16:08:48 +0100 Message-ID: <87vcohdklb.fsf@gilgamesch.quim.ucm.es> References: <87wradd18a.fsf@mat.ucm.es> <87hb01w27n.fsf_-_@gilgamesch.quim.ucm.es> <87k44xujno.fsf_-_@gilgamesch.quim.ucm.es> Reply-To: Uwe Brauer NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326381011 25098 80.91.229.12 (12 Jan 2012 15:10:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jan 2012 15:10:11 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29173@lists.math.uh.edu Thu Jan 12 16:10:07 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RlMI1-0004n2-9i for ding-account@gmane.org; Thu, 12 Jan 2012 16:10:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RlMHL-0003ln-4B; Thu, 12 Jan 2012 09:09:23 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RlMHI-0003lZ-Er for ding@lists.math.uh.edu; Thu, 12 Jan 2012 09:09:20 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RlMHG-0004QB-U7 for ding@lists.math.uh.edu; Thu, 12 Jan 2012 09:09:19 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RlMH4-0000W1-5q for ding@gnus.org; Thu, 12 Jan 2012 16:09:06 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RlMH4-00049U-4G for ding@gnus.org; Thu, 12 Jan 2012 16:09:06 +0100 Original-Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Jan 2012 16:09:06 +0100 Original-Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Jan 2012 16:09:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: gilgamesch.quim.ucm.es X-Hashcash: 1:20:120112:gmane.emacs.gnus.general::2GeD0nXfP7/14iL8:00000000000000000000000000000000000003q1e User-Agent: Gnus/5.110018 (No Gnus v0.18) XEmacs/21.5-b31 (linux) Cancel-Lock: sha1:TgQGdLIFWw7kDhjMvyO9vzYQciU= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80891 Archived-At: Oops error in the function I sent: this should work in general: (defun my-gnus-reply-mail-forward (&optional arg) "This function is to be used within a reply or forward buffer, marked messages will be inserted as forwarded messages." (interactive) (if (y-or-n-p (format "Did you mark the msg in the summary buffer? ")) (progn (save-excursion (let ((currentname (current-buffer))) (switch-to-buffer gnus-summary-buffer) (goto-char (point-max)) (search-backward "#") (gnus-summary-mail-forward arg) (mail-text) (copy-region-as-kill (point) (point-max)) (switch-to-buffer currentname) (goto-char (point-max)) (yank nil)))) (progn (message "You did NOT mark the msg, you fool!") (beep) (sleep-for 1) (beep) (sleep-for 1) (beep))))