diff options
| author | Stefan Monnier | 2010-09-05 00:51:39 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-05 00:51:39 +0200 |
| commit | 2e664aab0b16b0470484b53eb09d122959a0b0e7 (patch) | |
| tree | cc66f3f1ae26a2c6c406233f9c17b062b468cdf8 | |
| parent | 13ef65a483dd7d17ff5dce4a5ea377ba6bd678ca (diff) | |
| download | emacs-2e664aab0b16b0470484b53eb09d122959a0b0e7.tar.gz emacs-2e664aab0b16b0470484b53eb09d122959a0b0e7.zip | |
* lisp/emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch
border case in change-log-mode.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/syntax.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dc024b9d313..020f3237e33 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-09-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch | ||
| 4 | border case in change-log-mode. | ||
| 5 | |||
| 1 | 2010-09-04 Chong Yidong <cyd@stupidchicken.com> | 6 | 2010-09-04 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * progmodes/compile.el (compilation-error-regexp-alist-alist): | 8 | * progmodes/compile.el (compilation-error-regexp-alist-alist): |
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el index 5cc89596ef5..1ac6e266f0f 100644 --- a/lisp/emacs-lisp/syntax.el +++ b/lisp/emacs-lisp/syntax.el | |||
| @@ -209,7 +209,8 @@ Point is at POS when this function returns." | |||
| 209 | (funcall syntax-begin-function) | 209 | (funcall syntax-begin-function) |
| 210 | ;; Make sure it's better. | 210 | ;; Make sure it's better. |
| 211 | (> (point) pt-best)) | 211 | (> (point) pt-best)) |
| 212 | ;; Simple sanity check. | 212 | ;; Simple sanity checks. |
| 213 | (< (point) pos) ; backward-paragraph can fail here. | ||
| 213 | (not (memq (get-text-property (point) 'face) | 214 | (not (memq (get-text-property (point) 'face) |
| 214 | '(font-lock-string-face font-lock-doc-face | 215 | '(font-lock-string-face font-lock-doc-face |
| 215 | font-lock-comment-face)))) | 216 | font-lock-comment-face)))) |