Mercurial > hg > xemacs-beta
diff lisp/utils/autoload.el @ 112:48d667d6f17f r20-1b8
Import from CVS: tag r20-1b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:20:48 +0200 |
parents | fe104dbd9147 |
children | 1370575f1259 |
line wrap: on
line diff
--- a/lisp/utils/autoload.el Mon Aug 13 09:19:47 2007 +0200 +++ b/lisp/utils/autoload.el Mon Aug 13 09:20:48 2007 +0200 @@ -344,7 +344,9 @@ (let ((visited (get-file-buffer file))) (save-excursion (set-buffer (or visited (find-file-noselect file))) - (when (and file (string-match "\\`\\(.*\\)\\.el\\'" file)) + (when (and file + (string-match "\\`\\(.*\\)\\.el\\'" file) + (not (buffer-modified-p))) (goto-char (point-min)) (condition-case nil (let ((name (file-name-nondirectory (match-string 1 file))))