From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#3973: cleanup view-mode usage in vc-resynch-window Date: Thu, 30 Jul 2009 20:22:50 -0700 (PDT) Message-ID: <200907310322.n6V3Mo26012548@godzilla.ics.uci.edu> References: <200907300744.n6U7iwdl028160@godzilla.ics.uci.edu> <200907302206.n6UM6pBR008840@godzilla.ics.uci.edu> Reply-To: Dan Nicolaescu , 3973@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249012024 25520 80.91.229.12 (31 Jul 2009 03:47:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 03:47:04 +0000 (UTC) Cc: 3973@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 31 05:46:57 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWj56-00038Z-UY for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 05:46:57 +0200 Original-Received: from localhost ([127.0.0.1]:60670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWj56-00056Z-4L for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Jul 2009 23:46:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWj51-000565-Qu for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 23:46:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWj4x-00054K-DR for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 23:46:51 -0400 Original-Received: from [199.232.76.173] (port=34053 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWj4x-00054H-6M for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 23:46:47 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45675) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWj4w-00062C-GQ for bug-gnu-emacs@gnu.org; Thu, 30 Jul 2009 23:46:46 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6V3kiA7004836; Thu, 30 Jul 2009 20:46:44 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6V3U57s003198; Thu, 30 Jul 2009 20:30:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 31 Jul 2009 03:30:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3973 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3973-submit@emacsbugs.donarmstrong.com id=B3973.12490106122607 (code B ref 3973); Fri, 31 Jul 2009 03:30:05 +0000 Original-Received: (at 3973) by emacsbugs.donarmstrong.com; 31 Jul 2009 03:23:32 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6V3NSSi002602 for <3973@emacsbugs.donarmstrong.com>; Thu, 30 Jul 2009 20:23:29 -0700 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by sallyv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n6V3Mo5Z016071; Thu, 30 Jul 2009 20:22:50 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n6V3Mo26012548; Thu, 30 Jul 2009 20:22:50 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Thu, 30 Jul 2009 21:54:38 -0400") Original-Lines: 20 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n6V3Mo5Z016071 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 30 Jul 2009 23:46:51 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29750 Archived-At: Stefan Monnier writes: > > I have removed that code locally for a while and didn't see any > > problem. But I don't explicitly use view-mode, so... > > Obiously the code only makes a difference when you use view-read-only, > so you'll need to set it to a non-nil value before doing any test. [I've never done anything with view-read-only before...] I set view-read-only to t, then played with a file under RCS. When the files is checked in view-mode is turned on, when checking it out it's turned off. If the code in question is eliminated, view-mode stays turned on after checking out. There's some code in `after-find-file' (that gets called from `revert-buffer') that looks like it does something very similar to the code in question here, but `after-find-file' is called with `nomodes' t, so that code does not trigger.