emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r107141: Minor fix for next-single-ch


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107141: Minor fix for next-single-char-property-change usage.
Date: Mon, 06 Feb 2012 21:56:40 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107141
fixes bug(s): http://debbugs.gnu.org/8657
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Mon 2012-02-06 21:56:40 +0800
message:
  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.
modified:
  lisp/ChangeLog
  lisp/comint.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-02-06 12:36:31 +0000
+++ b/lisp/ChangeLog    2012-02-06 13:56:40 +0000
@@ -1,5 +1,8 @@
 2012-02-06  Chong Yidong  <address@hidden>
 
+       * 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  <address@hidden>

=== modified file 'lisp/comint.el'
--- a/lisp/comint.el    2012-01-19 07:21:25 +0000
+++ b/lisp/comint.el    2012-02-06 13:56:40 +0000
@@ -2513,7 +2513,7 @@
              (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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]