+2001-07-01 Karl Eichwalder <ke@suse.de>
+
+ * po-mode.el (po-mode): Use add-hook to call po-replace-revision-date
+ saving the buffer.
+ (po-quit): Don't call po-replace-revision-date.
+ (po-validate): Likewise.
+ Proposed by Bernd Schandl.
+
+ (po-auto-replace-revision-date): Change default to 't'; otherwise the
+ user will be asked too often.
+
2001-06-25 Bruno Haible <haible@clisp.cons.org>
* po-mode.el (po-find-file-coding-system): Make it work in XEmacs 20
:type 'boolean
:group 'po)
-(defcustom po-auto-replace-revision-date 'ask
+(defcustom po-auto-replace-revision-date t
"*Automatically revise date in headers. Value is nil, t, or ask."
:type '(choice (const nil)
(const t)
(make-local-variable 'po-string-start)
(make-local-variable 'po-string-end)
(make-local-variable 'po-marking-overlay)
+ (add-hook 'write-contents-hooks 'po-replace-revision-date)
(setq po-keywords '(("gettext") ("gettext_noop") ("_") ("N_"))
po-next-file-list nil
po-string-start nil
(po-msgfmt-version-check)
- ;; If modifications were done already, change the last revision date.
- (if (buffer-modified-p)
- (po-replace-revision-date))
-
(compile command)))
(defvar po-msgfmt-version-checked nil)
;; Or else, kill buffers and quit for true.
(if quit
(progn
- (and (buffer-modified-p) (po-replace-revision-date))
(save-buffer)
(kill-buffer (current-buffer)))))))