emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r109920: * lisp/simple.el (count-word


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109920: * lisp/simple.el (count-words--buffer-message): Fix narrowing check.
Date: Fri, 07 Sep 2012 16:36:25 +0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109920
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Fri 2012-09-07 16:36:25 +0800
message:
  * lisp/simple.el (count-words--buffer-message): Fix narrowing check.
modified:
  lisp/ChangeLog
  lisp/simple.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-09-07 05:06:05 +0000
+++ b/lisp/ChangeLog    2012-09-07 08:36:25 +0000
@@ -1,5 +1,7 @@
 2012-09-07  Chong Yidong  <address@hidden>
 
+       * simple.el (count-words--buffer-message): Fix narrowing check.
+
        * help.el (describe-key-briefly): Allow the message to be seen
        when invoked from the minibuffer (Bug#7014).
 

=== modified file 'lisp/simple.el'
--- a/lisp/simple.el    2012-09-02 00:56:03 +0000
+++ b/lisp/simple.el    2012-09-07 08:36:25 +0000
@@ -1008,7 +1008,7 @@
 
 (defun count-words--buffer-message ()
   (count-words--message
-   (if (= (point-max) (1+ (buffer-size)))
+   (if (= (- (point-max) (point-min)) (buffer-size))
        "Buffer"
      "Narrowed part of buffer")
    (point-min) (point-max)))


reply via email to

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