emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCL-CVS: `A' removes cvs-mode from buffer *cvs*


From: Reiner Steib
Subject: Re: PCL-CVS: `A' removes cvs-mode from buffer *cvs*
Date: Sat, 25 Aug 2007 14:13:49 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

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: #<buffer 
*cvs*[emacs/lisp]<2>>
| 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: #<buffer *cvs*[emacs/lisp]<2>>
| Mark set
| insert-for-yank: Buffer is read-only: #<buffer *cvs*[emacs/lisp]<2>>
| Mark set
| insert-for-yank: Buffer is read-only: #<buffer *cvs*[emacs/lisp]<2>>
| ((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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]