From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: PCL-CVS: `A' removes cvs-mode from buffer *cvs*
Date: Wed, 29 Aug 2007 21:10:39 +0200 [thread overview]
Message-ID: <v9ps166tsg.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <v9y7fzmi8s.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Sat, 25 Aug 2007 23:12:03 +0200")
On Sat, Aug 25 2007, Reiner Steib wrote:
[ (add-hook 'cvs-mode-hook
(lambda ()
(add-hook 'change-major-mode-hook 'debug nil t))) ]
> I added it to my init files.
... and today it triggered (on Windows; Emacs 22.1). Here's the
backtrace (byte code stripped, lines wrapped):
--8<---------------cut here---------------start------------->8---
Debugger entered: nil
run-hooks(change-major-mode-hook)
kill-all-local-variables()
text-mode()
change-log-mode()
add-change-log-entry(nil nil t)
add-change-log-entry-other-window()
#[nil "[BYTE-CODE DELETED]" [fi --cl-dolist-temp--
cl-struct-cvs-fileinfo-tags d default-directory buffer-file-name
cvs-mode-marked nil 0 error "cvs-fileinfo->dir accessing a
non-cvs-fileinfo" 4 file-name-as-directory expand-file-name
"cvs-fileinfo->file accessing a non-cvs-fileinfo" 5
kill-local-variable change-log-default-name
add-change-log-entry-other-window] 4]()
#[nil "[BYTE-CODE DELETED]" [-cvs-mode!-fun commandp
call-interactively] 2]()
cvs-mode!(#[nil "[BYTE-CODE DELETED]" [fi --cl-dolist-temp--
cl-struct-cvs-fileinfo-tags d default-directory buffer-file-name
cvs-mode-marked nil 0 error "cvs-fileinfo->dir accessing a
non-cvs-fileinfo" 4 file-name-as-directory expand-file-name
"cvs-fileinfo->file accessing a non-cvs-fileinfo" 5
kill-local-variable change-log-default-name
add-change-log-entry-other-window] 4])
cvs-mode-add-change-log-entry-other-window()
call-interactively(cvs-mode-add-change-log-entry-other-window)
--8<---------------cut here---------------end--------------->8---
*Messages* didn't show anything interesting:
--8<---------------cut here---------------start------------->8---
Running cvs update ...
CVS process has completed in *cvs*
Loading debug...done
Entering debugger...
--8<---------------cut here---------------end--------------->8---
The *cvs* buffer looked as follows. On the line "m.sh", I hit `A':
--8<---------------cut here---------------start------------->8---
Repository : d:/Repository
Module : foo/tools
Working dir: d:/work/foo/tools/
In directory .:
committed * Up-To-Date 1.81 ChangeLog
Modified c.sh
* Modified m.sh
Unknown u.sh.TEST
--------------------- End ---------------------
-- last cmd: cvs -f update -d -P --
--8<---------------cut here---------------end--------------->8---
Additionally, I noticed that the content of the ChangeLog file had
been erased (!!!) and content belonging to the *cvs* buffer has been
put in the ChangeLog buffer:
--8<---------------cut here---------------start------------->8---
2007-08-29 Reiner Steib <reiner.steib@...>
* m.sh (Module, Usage):
Repository : d:/Repository
Module : foo/tools
Working dir: d:/work/foo/tools/
In directory .:
* Modified ChangeLog
Modified c.sh
* Modified m.sh
Unknown u.sh.TEST
--------------------- End ---------------------
-- last cmd: cvs -f update -d -P --
--8<---------------cut here---------------end--------------->8---
I have ChangeLog under VC so it was no big deal to restore it (and
probably) undo would have worked as well, but erasing data in such a
situation is a serious problem.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
next prev parent reply other threads:[~2007-08-29 19:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 19:28 PCL-CVS: `A' removes cvs-mode from buffer *cvs* Reiner Steib
2007-08-21 15:32 ` Stefan Monnier
2007-08-25 12:13 ` Reiner Steib
2007-08-25 19:36 ` Stefan Monnier
2007-08-25 19:51 ` David Kastrup
2007-08-25 21:12 ` Reiner Steib
2007-08-29 19:10 ` Reiner Steib [this message]
2007-08-30 17:09 ` Reiner Steib
2007-09-08 2:55 ` Stefan Monnier
2007-09-23 20:09 ` Reiner Steib
2007-09-08 3:12 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9ps166tsg.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).