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 16:51:03 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233733869 8322 80.91.229.12 (4 Feb 2009 07:51:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2009 07:51:09 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 04 08:52:23 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 1LUcYW-00045I-6u for ged-emacs-devel@m.gmane.org; Wed, 04 Feb 2009 08:52:20 +0100 Original-Received: from localhost ([127.0.0.1]:59136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUcXD-0003Lb-Dy for ged-emacs-devel@m.gmane.org; Wed, 04 Feb 2009 02:50:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUcX7-0003Ka-0J for emacs-devel@gnu.org; Wed, 04 Feb 2009 02:50:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUcX5-0003ID-BJ for emacs-devel@gnu.org; Wed, 04 Feb 2009 02:50:52 -0500 Original-Received: from [199.232.76.173] (port=48874 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUcX5-0003I1-6V for emacs-devel@gnu.org; Wed, 04 Feb 2009 02:50:51 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:54278) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUcX0-0001sQ-AX; Wed, 04 Feb 2009 02:50:46 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n147ogAg009318; Wed, 4 Feb 2009 16:50:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n147ogc1008144; Wed, 4 Feb 2009 16:50:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n147ogRl016025; Wed, 4 Feb 2009 16:50:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LUcXH-0006sZ-T3; Wed, 04 Feb 2009 16:51:03 +0900 In-reply-to: (message from Kenichi Handa on Wed, 04 Feb 2009 15:14:23 +0900) 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:108720 Archived-At: In article , Kenichi Handa writes: > 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. The problem was that font-lock incremented buffer-modified-tick when the buffer was scrolled to show problematic characters. I've just installed this fix. * international/mule-cmds.el (select-safe-coding-system): Use buffer-chars-modified-tick instead of buffer-modified-tick. --- 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. > [...]