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

Bug #40020 reported by Kevin Cole
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
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.

Tags: commit
Revision history for this message
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
Revision history for this message
Paul Brannan (pbrannan) wrote :

I solved this with:

~/.vimrc:
filetype on
filetype plugin on

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

Jelmer Vernooij (jelmer)
tags: added: commit
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.