From unknown Sat Aug 16 15:51:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1997 <1997@debbugs.gnu.org> To: bug#1997 <1997@debbugs.gnu.org> Subject: Status: 23.0.60; write-region fails in pmail Reply-To: bug#1997 <1997@debbugs.gnu.org> Date: Sat, 16 Aug 2025 22:51:42 +0000 retitle 1997 23.0.60; write-region fails in pmail reassign 1997 emacs submitter 1997 rms@gnu.org severity 1997 normal thanks From rms@gnu.org Thu Jan 22 22:20:40 2009 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] From monnier@iro.umontreal.ca Thu Jan 22 23:58:41 2009 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>, Subject: Re: bug#1997: 23.0.60; write-region fails in pmail 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 cyd@stupidchicken.com Fri Jan 23 07:17:05 2009 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. From unknown Sat Aug 16 15:51:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sat, 21 Feb 2009 15:24:05 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator