From: Richard M. Stallman Date: Sun, 11 Mar 2007 21:17:06 +0000 (+0000) Subject: (type-break-get-previous-count): Repeat previous change here. X-Git-Tag: emacs-pretest-22.0.96~141 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7ab2e82f0e19aead5fafaf7f959e4db29f3926b5;p=emacs.git (type-break-get-previous-count): Repeat previous change here. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index af18cbdf9ca..07a9891a542 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,13 @@ +2007-03-11 Richard Stallman + + * emacs-lisp/bytecomp.el (byte-compile-warning-prefix): + Correctly compute line number. + +2007-03-11 Guanpeng Xu + + * type-break.el (type-break-get-previous-count): + Repeat previous change here. + 2007-03-11 Dan Nicolaescu * progmodes/grep.el (grep-find-ignored-directories): Add .git and diff --git a/lisp/type-break.el b/lisp/type-break.el index e915ab2d1fb..e065e32df54 100644 --- a/lisp/type-break.el +++ b/lisp/type-break.el @@ -579,10 +579,13 @@ integer." (setq file (with-current-buffer (find-file-noselect file 'nowarn) - (save-excursion - (goto-char (point-min)) - (forward-line 1) - (read (current-buffer))))))) + (condition-case nil + (save-excursion + (goto-char (point-min)) + (forward-line 1) + (read (current-buffer))) + (end-of-file + (error "End of file in `%s'" file))))))) file 0)))