From: Chong Yidong Date: Mon, 6 Feb 2012 13:56:40 +0000 (+0800) Subject: Minor fix for next-single-char-property-change usage. X-Git-Tag: emacs-pretest-24.0.94~280 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=171e9b6ee99daea6cc7845bf66f694a529e44631;p=emacs.git Minor fix for next-single-char-property-change usage. * lisp/comint.el (comint-next-prompt): next-single-char-property-change and prev-single-char-property-change never return nil. Fixes: debbugs:8657 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f0f438e540e..27c914b0424 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2012-02-06 Chong Yidong + * comint.el (comint-next-prompt): next-single-char-property-change + and prev-single-char-property-change never return nil (Bug#8657). + * custom.el (defcustom): Doc fix (Bug#9711). 2012-02-05 Chong Yidong diff --git a/lisp/comint.el b/lisp/comint.el index 2d0ae6920f9..975291471df 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -2513,7 +2513,7 @@ text matching `comint-prompt-regexp'." (if (> n 0) (next-single-char-property-change pos 'field) (previous-single-char-property-change pos 'field))) - (cond ((or (null pos) (= pos prev-pos)) + (cond ((= pos prev-pos) ;; Ran off the end of the buffer. (when (> n 0) ;; There's always an input field at the end of the