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: emacs-unicode-2: global-auto-revert-mode doesn't work properly Date: Wed, 14 Jun 2006 21:27:58 +0900 Message-ID: References: <87u06xov1q.fsf@www.williamxu.com> <87hd2ua7gi.fsf@williamxwl.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1150288133 8577 80.91.229.2 (14 Jun 2006 12:28:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jun 2006 12:28:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 14 14:28:48 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FqUUD-0004zE-FP for ged-emacs-devel@m.gmane.org; Wed, 14 Jun 2006 14:28:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqUUC-0000U1-NN for ged-emacs-devel@m.gmane.org; Wed, 14 Jun 2006 08:28:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FqUTs-0000Pn-6M for emacs-devel@gnu.org; Wed, 14 Jun 2006 08:28:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FqUTp-0000Ls-Tf for emacs-devel@gnu.org; Wed, 14 Jun 2006 08:28:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqUTp-0000LV-JO for emacs-devel@gnu.org; Wed, 14 Jun 2006 08:28:17 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FqUcz-0001ii-P9 for emacs-devel@gnu.org; Wed, 14 Jun 2006 08:37:46 -0400 Original-Received: from smtp4.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k5ECSCWe007000; Wed, 14 Jun 2006 21:28:12 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id k5ECSAUK022362; Wed, 14 Jun 2006 21:28:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FqUTW-0004Ji-00; Wed, 14 Jun 2006 21:27:58 +0900 Original-To: William Xu In-reply-to: <87hd2ua7gi.fsf@williamxwl.com> (message from William Xu on Fri, 09 Jun 2006 19:34:21 +0800) 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:55886 Archived-At: In article <87hd2ua7gi.fsf@williamxwl.com>, William Xu writes: > Kenichi Handa writes: >> In article <87u06xov1q.fsf@www.williamxu.com>, William Xu writes: >> >>> I've set global-auto-revert-mode to t, and there are two emacs opening >>> the same file, say `foo'. When one of them *inserts*(deletion doesn't >>> have this problem, strangely..) something and saves foo, then in the >>> other emacs's foo buffer, it prompts (which shouldn't happend as >>> global-auto-revert-mode is turned on), >> >>> foo changed on disk; really edit the buffer? (y, n, r or C-h) >> >>> Typing either n or r seems no effects, it'll keep prompting. Typing y >>> removes the prompt, though. >> >> I think emacs-unicode-2 doesn't change anything about that >> feature. Don't you see the same problem in CVS HEAD? > Nope... actually i used to be using emacs-snapshot, things just work > fine. I turned to emacs-unicode for gbk support recently, and met that > problem. Ah, I found that this bug happens when you insert non-ASCII characters, and I found the reason why that causes the problem only in emacs-unicode-2 (difference in REPLACE handling in Finsert_file_contents; HEAD uses insert_1 but emacs-unicode-2 uses insert_from_buffer). I'm now working on fixing it. Please wait for a while. --- Kenichi Handa handa@m17n.org