* bug#1997: 23.0.60; write-region fails in pmail
@ 2009-01-23 6:18 ` Richard M Stallman
2009-01-23 7:58 ` Stefan Monnier
2009-01-23 15:25 ` bug#1997: marked as done (23.0.60; write-region fails in pmail) Emacs bug Tracking System
0 siblings, 2 replies; 3+ messages in thread
From: Richard M Stallman @ 2009-01-23 6:18 UTC (permalink / raw
To: emacs-pretest-bug
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]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#1997: 23.0.60; write-region fails in pmail
2009-01-23 6:18 ` bug#1997: 23.0.60; write-region fails in pmail Richard M Stallman
@ 2009-01-23 7:58 ` Stefan Monnier
2009-01-23 15:25 ` bug#1997: marked as done (23.0.60; write-region fails in pmail) Emacs bug Tracking System
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2009-01-23 7:58 UTC (permalink / raw
To: rms; +Cc: emacs-pretest-bug, 1997
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#1997: marked as done (23.0.60; write-region fails in pmail)
2009-01-23 6:18 ` bug#1997: 23.0.60; write-region fails in pmail Richard M Stallman
2009-01-23 7:58 ` Stefan Monnier
@ 2009-01-23 15:25 ` Emacs bug Tracking System
1 sibling, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-01-23 15:25 UTC (permalink / raw
To: Chong Yidong
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
Your message dated Fri, 23 Jan 2009 10:17:29 -0500
with message-id <87tz7q127q.fsf@cyd.mit.edu>
and subject line Re: bug#1997: 23.0.60; write-region fails in pmail
has caused the Emacs bug report #1997,
regarding 23.0.60; write-region fails in pmail
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)
--
1997: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1997
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
[-- Attachment #2: Type: message/rfc822, Size: 3510 bytes --]
From: Richard M Stallman <rms@gnu.org>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.60; write-region fails in pmail
Date: Fri, 23 Jan 2009 01:18:59 -0500
Message-ID: <E1LQFNb-0005yn-Vp@fencepost.gnu.org>
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]
[-- Attachment #3: Type: message/rfc822, Size: 1390 bytes --]
From: Chong Yidong <cyd@stupidchicken.com>
To: 1997-done@emacsbugs.donarmstrong.com
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>
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-23 15:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87tz7q127q.fsf@cyd.mit.edu>
2009-01-23 6:18 ` bug#1997: 23.0.60; write-region fails in pmail Richard M Stallman
2009-01-23 7:58 ` Stefan Monnier
2009-01-23 15:25 ` bug#1997: marked as done (23.0.60; write-region fails in pmail) Emacs bug Tracking System
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.