+2002-12-05 Heikki Junes <hjunes@cc.hut.fi>
+
+ * lilypond-mode.el: Propose reverting buffer before a command if
+ it was edited with an another editor.
+
2002-12-05 Han-Wen Nienhuys <hanwen@cs.uu.nl>
* python/GNUmakefile (INSTALLATION_DIR1): install Python module
(require 'easymenu)
(require 'compile)
-(defconst LilyPond-version "1.7.8"
+(defconst LilyPond-version "1.7.9"
"`LilyPond-mode' version number.")
(defconst LilyPond-help-address "bug-lilypond@gnu.org"
(LilyPond-check-files (concat name ".tex")
(list name)
LilyPond-file-extensions)
- (if (buffer-modified-p)
- (if (y-or-n-p "Save buffer before next command? ")
- (LilyPond-save-buffer)))
+ (if (verify-visited-file-modtime (current-buffer))
+ (if (buffer-modified-p)
+ (if (y-or-n-p "Save buffer before next command? ")
+ (LilyPond-save-buffer)))
+ (if (y-or-n-p "The command will be invoked to an already saved buffer. Revert it? ")
+ (revert-buffer t t)))
;;"LilyPond"
LilyPond-command-default))
(t LilyPond-command-default)))