From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: bug#1898 is in your domain Date: Wed, 04 Feb 2009 15:14:23 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233728066 28378 80.91.229.12 (4 Feb 2009 06:14:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2009 06:14:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 04 07:15:41 2009 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 1LUb2y-0008Nx-Pf for ged-emacs-devel@m.gmane.org; Wed, 04 Feb 2009 07:15:41 +0100 Original-Received: from localhost ([127.0.0.1]:38879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUb1f-0005Ea-L4 for ged-emacs-devel@m.gmane.org; Wed, 04 Feb 2009 01:14:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUb1Y-0005Dh-2u for emacs-devel@gnu.org; Wed, 04 Feb 2009 01:14:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUb1X-0005DT-56 for emacs-devel@gnu.org; Wed, 04 Feb 2009 01:14:11 -0500 Original-Received: from [199.232.76.173] (port=52144 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUb1W-0005DP-MY for emacs-devel@gnu.org; Wed, 04 Feb 2009 01:14:10 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:55393) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUb1U-0002Mx-5e; Wed, 04 Feb 2009 01:14:08 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n146E4JS013891; Wed, 4 Feb 2009 15:14:04 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n146E4WM023558; Wed, 4 Feb 2009 15:14:04 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n146E2Sn013367; Wed, 4 Feb 2009 15:14:02 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LUb1j-0006aw-I7; Wed, 04 Feb 2009 15:14:23 +0900 In-reply-to: (message from Richard Stallman on Sat, 31 Jan 2009 01:44:35 -0500) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:108715 Archived-At: In article , Richard Stallman writes: > Would you please investigate this bug, which is bug report bug#1898? > You are the expert on this code. Ok. --- Kenichi Handa handa@m17n.org > Content-Type: text/plain; charset=ISO-8859-15 > From: Richard M Stallman > To: emacs-pretest-bug@gnu.org > Subject: 23.0.60; choosing coding system > bcc: rms-outgoing@gnu.org > Reply-to: rms@gnu.org > --text follows this line-- > When I visit the file losing.mbox in Pmail using C-u M-x pmail RET > losing.mbox RET, then run M-x lynx (see code below), it asks me to > specify the coding system. When I type RET to choose the default, > raw-text, it gives me this error: > select-safe-coding-system: Cancelled because the buffer was modified > This only fails the first time. If you type M-x lynx again, it works. > However, if you type the . command which makes Pmail display the > message, the next M-x lynx will fail again. I did not report this > before, because the problem was very inconvenient to reproduce in > Rmail. Reproducing it with Pmail is much easier because you can re-arm > the bug with the . command. > I tried to investigate a previous case of this, and found that the > buffer was indeed marked as modified during the function that read the > coding system name. That was inside coding.c, which I do not > understand, so I did not try to track it down. > (The buffer text is not in fact changed. I have no easy way > to see if any text properties were changed. But maybe this > does not matter.) > (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")))) > Here's the mailbox, uuencoded. [...]