From unknown Sun Aug 17 22:05:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1997: 23.0.60; write-region fails in pmail Reply-To: rms@gnu.org, 1997@debbugs.gnu.org Resent-From: Richard M Stallman Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 23 Jan 2009 06:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 1997 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123269164015471 (code B ref -1); Fri, 23 Jan 2009 06:30:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jan 2009 06:20:40 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0N6KWNG015465 for ; Thu, 22 Jan 2009 22:20:33 -0800 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LQFNb-0005yn-Vp; Fri, 23 Jan 2009 01:19:00 -0500 Content-Type: text/plain; charset=ISO-8859-15 From: Richard M Stallman To: emacs-pretest-bug@gnu.org Message-Id: Date: Fri, 23 Jan 2009 01:18:59 -0500 I use this function to write HTML code from certain messages: (defun lynx () (interactive) (unless (re-search-backward "^From wget@gnu.org" nil t) (goto-char (point-min))) (save-excursion (search-forward "/bin/sh") (forward-line 3) (let ((start (point))) (search-forward "!EOF!") (beginning-of-line) (write-region start (point) "~/foo.html")))) Instead of writing from the view buffer as it used to, it now writes from the mbox buffer. It writes the WHOLE mbox. I presume this is due to the changes to use an existing hook and its warts, instead of a feature designed to be simple to use for this job. I verified that pmail-write-region-annotate was called with arguments 369 87214. Any attempt to write part of the view buffer into a file has the same problem. In GNU Emacs 23.0.60.17 (mipsel-unknown-linux-gnu, GTK+ Version 2.12.11) of 2009-01-22 on lemote-yeeloong configured using `configure 'CFLAGS=-O0 -g -Wno-pointer-sign' 'mipsel-unknown-linux-gnu' 'build_alias=mipsel-unknown-linux-gnu' 'host_alias=mipsel-unknown-linux-gnu' 'target_alias=mipsel-unknown-linux-gnu'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Mail Minor modes in effect: gpm-mouse-mode: t tooltip-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: ESC x p m a i l RET C-x k RET ESC x ESC p RET C-x 1 C-d C-d x C-x C-s ESC x l y n x RET ESC x l y C-g C-x = ESC x l y n x RET C-x C-f . m a i l ESC DEL e m a c s RET C-s f u n SPC l y n x C-a C-@ C-u C-n C-u C-n C-n C-n C-n ESC w C-x 4 m C-u C-n C-u C-y C-u C-p C-e ESC x r e p o r t SPC e m a c s SPC b u g RET Recent messages: 0 new messages read Expunging deleted messages...done Saving file /home/rms/PMAIL... Wrote /home/rms/PMAIL Wrote /home/rms/foo.html Quit Char: T (84, #o124, #x54) point=1 of 87233 (0%) column=0 Wrote /home/rms/foo.html Mark saved where search started Mark set [2 times] From unknown Sun Aug 17 22:05:01 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1997: 23.0.60; write-region fails in pmail Reply-To: "Stefan Monnier" , 1997@debbugs.gnu.org Resent-From: "Stefan Monnier" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 23 Jan 2009 08:05:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1997 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1997-submit@emacsbugs.donarmstrong.com id=B1997.12326975216244 (code B ref 1997); Fri, 23 Jan 2009 08:05:06 +0000 Received: (at 1997) by emacsbugs.donarmstrong.com; 23 Jan 2009 07:58:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.g-wis.com (mail.g-wis.com [204.250.154.18]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0N7wc0G006238 for <1997@emacsbugs.donarmstrong.com>; Thu, 22 Jan 2009 23:58:39 -0800 thread-index: Acl9MGMx6F1oRYPnQUO1qWVkzVG9HA== X-Received-From-Address: 69.38.23.210 X-Envelope-From: monnier@iro.umontreal.ca X-Envelope-To: emacs-pretest-bug@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca, 1997@debbugs.gnu.org Received: from ceviche.home ([69.38.23.210]) by mail.g-wis.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 22 Jan 2009 23:58:32 -0800 Received: by ceviche.home (Postfix, from userid 20848) id C3139B400C; Fri, 23 Jan 2009 02:58:26 -0500 (EST) From: "Stefan Monnier" To: Content-Transfer-Encoding: 7bit Cc: <1997@debbugs.gnu.org>, Message-ID: Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 References: Date: Fri, 23 Jan 2009 02:58:26 -0500 In-Reply-To: (Richard M. Stallman'smessage of "Fri, 23 Jan 2009 01:18:59 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 23 Jan 2009 07:58:32.0602 (UTC) FILETIME=[62C91FA0:01C97D30] > I presume this is due to the changes to use an existing hook and its > warts, instead of a feature designed to be simple to use for this job. No, it's just due to people wasting time trying to reinvent the wheel rather than read the sample code in tar-mode.el. Stefan From unknown Sun Aug 17 22:05:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: rms@gnu.org Subject: bug#1997 closed by Chong Yidong (Re: bug#1997: 23.0.60; write-region fails in pmail) Message-ID: References: <87tz7q127q.fsf@cyd.mit.edu> X-Emacs-PR-Message: they-closed 1997 X-Emacs-PR-Package: emacs Reply-To: 1997@debbugs.gnu.org Date: Fri, 23 Jan 2009 15:25:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1232724306-20690-1" This is a multi-part message in MIME format... ------------=_1232724306-20690-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1997: 23.0.60; write-region fails in pmail It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 1997: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1997 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1232724306-20690-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1997-done) by emacsbugs.donarmstrong.com; 23 Jan 2009 15:17:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0NFH38g019241 for <1997-done@emacsbugs.donarmstrong.com>; Fri, 23 Jan 2009 07:17:04 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 6340B57E1FC; Fri, 23 Jan 2009 10:17:29 -0500 (EST) From: Chong Yidong To: 1997-done@debbugs.gnu.org Subject: Re: bug#1997: 23.0.60; write-region fails in pmail Date: Fri, 23 Jan 2009 10:17:29 -0500 Message-ID: <87tz7q127q.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > No, it's just due to people wasting time trying to reinvent the wheel > rather than read the sample code in tar-mode.el. My mistake: I forgot to switch rmail-write-region-annotate back to its "canonical" form after I finished debugging why it wasn't working. In other words, the axle was broken, and I fixed it---but I forgot to put the normal wheels back on. ------------=_1232724306-20690-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jan 2009 06:20:40 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0N6KWNG015465 for ; Thu, 22 Jan 2009 22:20:33 -0800 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LQFNb-0005yn-Vp; Fri, 23 Jan 2009 01:19:00 -0500 Content-Type: text/plain; charset=ISO-8859-15 From: Richard M Stallman To: emacs-pretest-bug@gnu.org Subject: 23.0.60; write-region fails in pmail Reply-to: rms@gnu.org Message-Id: Date: Fri, 23 Jan 2009 01:18:59 -0500 I use this function to write HTML code from certain messages: (defun lynx () (interactive) (unless (re-search-backward "^From wget@gnu.org" nil t) (goto-char (point-min))) (save-excursion (search-forward "/bin/sh") (forward-line 3) (let ((start (point))) (search-forward "!EOF!") (beginning-of-line) (write-region start (point) "~/foo.html")))) Instead of writing from the view buffer as it used to, it now writes from the mbox buffer. It writes the WHOLE mbox. I presume this is due to the changes to use an existing hook and its warts, instead of a feature designed to be simple to use for this job. I verified that pmail-write-region-annotate was called with arguments 369 87214. Any attempt to write part of the view buffer into a file has the same problem. In GNU Emacs 23.0.60.17 (mipsel-unknown-linux-gnu, GTK+ Version 2.12.11) of 2009-01-22 on lemote-yeeloong configured using `configure 'CFLAGS=-O0 -g -Wno-pointer-sign' 'mipsel-unknown-linux-gnu' 'build_alias=mipsel-unknown-linux-gnu' 'host_alias=mipsel-unknown-linux-gnu' 'target_alias=mipsel-unknown-linux-gnu'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Mail Minor modes in effect: gpm-mouse-mode: t tooltip-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: ESC x p m a i l RET C-x k RET ESC x ESC p RET C-x 1 C-d C-d x C-x C-s ESC x l y n x RET ESC x l y C-g C-x = ESC x l y n x RET C-x C-f . m a i l ESC DEL e m a c s RET C-s f u n SPC l y n x C-a C-@ C-u C-n C-u C-n C-n C-n C-n ESC w C-x 4 m C-u C-n C-u C-y C-u C-p C-e ESC x r e p o r t SPC e m a c s SPC b u g RET Recent messages: 0 new messages read Expunging deleted messages...done Saving file /home/rms/PMAIL... Wrote /home/rms/PMAIL Wrote /home/rms/foo.html Quit Char: T (84, #o124, #x54) point=1 of 87233 (0%) column=0 Wrote /home/rms/foo.html Mark saved where search started Mark set [2 times] ------------=_1232724306-20690-1--