From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: PCL-CVS: `A' removes cvs-mode from buffer *cvs* Date: Sat, 25 Aug 2007 14:13:49 +0200 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188044075 17206 80.91.229.12 (25 Aug 2007 12:14:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Aug 2007 12:14:35 +0000 (UTC) Cc: Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 25 14:14:32 2007 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 1IOuX9-0007g5-O9 for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2007 14:14:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOuX9-0007Wx-6L for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2007 08:14:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOuX5-0007VN-5W for emacs-devel@gnu.org; Sat, 25 Aug 2007 08:14:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOuX2-0007Sy-Jj for emacs-devel@gnu.org; Sat, 25 Aug 2007 08:14:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOuX2-0007Sv-Df for emacs-devel@gnu.org; Sat, 25 Aug 2007 08:14:24 -0400 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IOuWz-0003t2-4F for emacs-devel@gnu.org; Sat, 25 Aug 2007 08:14:22 -0400 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.1/8.14.1) with ESMTP id l7PCEFEJ028688; Sat, 25 Aug 2007 14:14:15 +0200 (MEST) Original-Received: from localhost (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 631CA12C5D; Sat, 25 Aug 2007 14:14:15 +0200 (CEST) X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l; 3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2; n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3 In-Reply-To: (Stefan Monnier's message of "Tue, 21 Aug 2007 11:32:04 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) X-DCC-CTc-dcc2-Metrics: poseidon 1031; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-Detected-Kernel: Genre and OS details not recognized. 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:77124 Archived-At: On Tue, Aug 21 2007, Stefan Monnier wrote: >> in Emacs 22.1 on Windows, I noticed that (sometimes?) `A' >> (cvs-mode-add-change-log-entry-other-window) removes the cvs-mode key >> bindings from the buffer *cvs*. The buffer *cvs* then is read-only >> and not in cvs-mode anymore (fundamental-mode?). > >> I couldn't reproduce the problem on GNU/Linux up to now. Has anyone >> else observed this? If it happens next time on Windows: what kind of >> further information could be useful to find the problem? > > I've seen reports of such problems in the past, but have never been able > to track it down. It seems difficult to reproduce. It's interesting that > you link it to Windows, tho: I had not noted any such correlation yet. Now, for the first time, I saw it on GNU/Linux as well. Maybe because I didn't use `A' very often before. The buffer (*cvs*[emacs/lisp]<2>) is in change-log-mode. Here are the related (?) messages: | Wrote [...]/cvs-EMACS_22_BASE/emacs/lisp/ChangeLog | (No files need saving) | Running cvs update ... | add-change-log-entry-other-window: Buffer is read-only: #> | Saving file [...]/cvs-EMACS_22_BASE/emacs/lisp/ChangeLog... | Wrote [...]/cvs-EMACS_22_BASE/emacs/lisp/ChangeLog | error in process sentinel: cvs-sentinel: Symbol's value as variable is void: cvs-cookies | error in process sentinel: Symbol's value as variable is void: cvs-cookies | Mark set [3 times] | insert-for-yank: Buffer is read-only: #> | Mark set | insert-for-yank: Buffer is read-only: #> | Mark set | insert-for-yank: Buffer is read-only: #> | ((lambda nil (add-hook (quote change-major-mode-hook) (quote debug) nil t)) (lambda nil (rename-buffer (generate-new-buffer-name ...)) (local-set-key (kbd "RET") (lambda ... ... ...)) (local-set-key (kbd "~") (lambda ... ... ...)) (local-set-key (kbd "*") (lambda nil ... ...)))) The last one was after evaluating your suggestion (see below). The other hooks are not relevant to the problem, because I don't use them on the Windows machine. Is there anything else I can investigate now? > Maybe you can try to track it down by adding to your .emacs something like: > > (add-hook 'cvs-mode-hook > (lambda () > (add-hook 'change-major-mode-hook 'debug nil t))) > > hopefully it will not trigger in normal use. I added it, but only on Windows, so it didn't catch. Sorry. (Now added on GNU/Linux as well.) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/