diff options
| author | Sam Steingold | 2009-03-03 22:26:24 +0000 |
|---|---|---|
| committer | Sam Steingold | 2009-03-03 22:26:24 +0000 |
| commit | ee15d7591b3d38fd46c02f814b4c49604ca88cb2 (patch) | |
| tree | a81196804a4d57fcb04e15afee32cfbc4e4e5a8e | |
| parent | 9927d25059bbe990605a4e6bf8ad74946b0d575a (diff) | |
| download | emacs-ee15d7591b3d38fd46c02f814b4c49604ca88cb2.tar.gz emacs-ee15d7591b3d38fd46c02f814b4c49604ca88cb2.zip | |
(compilation-move-to-column): Guard against negative col values.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8944b03af03..d1d7960bd85 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-03-03 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-move-to-column): | ||
| 4 | Guard against negative col values. | ||
| 5 | |||
| 1 | 2009-03-03 Simon Josefsson <simon@josefsson.org> | 6 | 2009-03-03 Simon Josefsson <simon@josefsson.org> |
| 2 | 7 | ||
| 3 | * mail/smtpmail.el (smtpmail-auth-supported): Mention that list is | 8 | * mail/smtpmail.el (smtpmail-auth-supported): Mention that list is |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 68a408f6987..ee2e09132e7 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -864,7 +864,7 @@ from a different message." | |||
| 864 | If SCREEN is non-nil, columns are screen columns, otherwise, they are | 864 | If SCREEN is non-nil, columns are screen columns, otherwise, they are |
| 865 | just char-counts." | 865 | just char-counts." |
| 866 | (if screen | 866 | (if screen |
| 867 | (move-to-column col) | 867 | (move-to-column (max col 0)) |
| 868 | (goto-char (min (+ (line-beginning-position) col) (line-end-position))))) | 868 | (goto-char (min (+ (line-beginning-position) col) (line-end-position))))) |
| 869 | 869 | ||
| 870 | (defun compilation-internal-error-properties (file line end-line col end-col type fmts) | 870 | (defun compilation-internal-error-properties (file line end-line col end-col type fmts) |