From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.devel Subject: Re: emacs-unicode-2: global-auto-revert-mode doesn't work properly Date: Tue, 24 Oct 2006 16:40:52 +0800 Organization: the Church of Emacs Message-ID: <87ejsyqf6z.fsf@www.williamxu.com> References: <87u06xov1q.fsf@www.williamxu.com> <87hd2ua7gi.fsf@williamxwl.com> <87k67jzvh3.fsf@www.williamxu.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161680564 30083 80.91.229.2 (24 Oct 2006 09:02:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 09:02:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 24 11:02:44 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 1GcIBH-0005tV-P0 for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 11:02:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcIBG-0004Gz-Ts for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 05:02:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GcHzD-0000Tt-Hj for emacs-devel@gnu.org; Tue, 24 Oct 2006 04:50:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GcHzB-0000S7-3S for emacs-devel@gnu.org; Tue, 24 Oct 2006 04:50:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcHz8-0000RE-NC for emacs-devel@gnu.org; Tue, 24 Oct 2006 04:50:11 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GcHz8-00036Q-Kl for emacs-devel@gnu.org; Tue, 24 Oct 2006 04:50:10 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1GcHz0-0003LZ-CB for emacs-devel@gnu.org; Tue, 24 Oct 2006 10:50:02 +0200 Original-Received: from 219.142.180.120 ([219.142.180.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Oct 2006 10:50:02 +0200 Original-Received: from william.xwl by 219.142.180.120 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Oct 2006 10:50:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 219.142.180.120 User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:g3WmmwkEYMv2PQ4nvJQYwUpsaBs= 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:61099 Archived-At: Kenichi Handa writes: [...] > insert_1 can be called with the arg PREPARE zero, but as > insert_from_buffer and insert_from_buffer_1 don't have such > an arg, prepare_to_modify_buffer is called unconditionally, > which leads to the call of > ask-user-about-supersession-threat, which makes > global-auto-revert-mode don't work. > > I've fixed that by binding buffer-file-name to nil > temporarily. Hmm, that did fix it, in latest checkout. Thanks ! -- William Marijuana will be legal some day, because the many law students who now smoke pot will someday become congressmen and legalize it in order to protect themselves. -- Lenny Bruce