gnu-emacs-sources
[Top][All Lists]
Advanced

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

diff-save-buffer, default filename when saving diffs


From: Kevin Ryde
Subject: diff-save-buffer, default filename when saving diffs
Date: Sun, 30 May 2004 08:39:05 +1000
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

The following is a spot of code I use for getting a filename when
saving diffs.  I normally do this from vc-diff, but plain M-x diff
works too.

This is not just a case of setting buffer-file-name, it uses the
"initial" argument of read-file-name so you can edit the proposed
name.  I often add to the name to give a hint what it's about.

Attachment: diff-save-buffer.el
Description: application/emacs-lisp


reply via email to

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