"bzr commit" w/ emacs fails to delete backup temp log file

Bug #40020 reported by Kevin Cole on 2006-04-18
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Low
Unassigned

Bug Description

Using bzr (bazaar-ng) 0.8pre: When environment variables EDITOR and VISUAL are set to emacs, "bzr commit" respects the chosen editor. However, upon saving the log message and exiting, a bzr_log.[randomstring]~ file is left undeleted.

Martin Pool (mbp) wrote :

Well, it's up to emacs whether to make a backup file or not when saving. There's a variable which could be used to turn this on (or off).

I suppose we could look for typical backups of the temporary file and delete them too when it's deleted.

Perhaps better would be to store the message file in $TMPDIR and only copy it to the working directory after editing is complete, so that it's saved if the commit is interruped.

Changed in bzr:
status: Unconfirmed → Confirmed
Paul Brannan (pbrannan) wrote :

I solved this with:

~/.vimrc:
filetype on
filetype plugin on

~/.vim/ftplugin/bzr.vim:
set nobackup

Jelmer Vernooij (jelmer) on 2011-02-01
tags: added: commit
Jelmer Vernooij (jelmer) on 2017-11-09
tags: added: check-for-breezy
Jelmer Vernooij (jelmer) on 2019-06-29
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers