aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-09-07 16:36:25 +0800
committerChong Yidong2012-09-07 16:36:25 +0800
commitc640e87d077ae51c922b703f4b44f05dfb0d1cfd (patch)
tree68638423e272fee0a45b4f05b4b6a8f4f4bdf3a3
parent3e6d6928bdb9d823cdd54512990e6951f377713a (diff)
downloademacs-c640e87d077ae51c922b703f4b44f05dfb0d1cfd.tar.gz
emacs-c640e87d077ae51c922b703f4b44f05dfb0d1cfd.zip
* lisp/simple.el (count-words--buffer-message): Fix narrowing check.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/simple.el2
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 179d5be11ca..33e641b5fc1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12012-09-07 Chong Yidong <cyd@gnu.org> 12012-09-07 Chong Yidong <cyd@gnu.org>
2 2
3 * simple.el (count-words--buffer-message): Fix narrowing check.
4
3 * help.el (describe-key-briefly): Allow the message to be seen 5 * help.el (describe-key-briefly): Allow the message to be seen
4 when invoked from the minibuffer (Bug#7014). 6 when invoked from the minibuffer (Bug#7014).
5 7
diff --git a/lisp/simple.el b/lisp/simple.el
index b7a24f4f970..ca73ba1b03a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1008,7 +1008,7 @@ END, without printing any message."
1008 1008
1009(defun count-words--buffer-message () 1009(defun count-words--buffer-message ()
1010 (count-words--message 1010 (count-words--message
1011 (if (= (point-max) (1+ (buffer-size))) 1011 (if (= (- (point-max) (point-min)) (buffer-size))
1012 "Buffer" 1012 "Buffer"
1013 "Narrowed part of buffer") 1013 "Narrowed part of buffer")
1014 (point-min) (point-max))) 1014 (point-min) (point-max)))