diff options
| author | Chong Yidong | 2012-09-07 16:36:25 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-09-07 16:36:25 +0800 |
| commit | c640e87d077ae51c922b703f4b44f05dfb0d1cfd (patch) | |
| tree | 68638423e272fee0a45b4f05b4b6a8f4f4bdf3a3 | |
| parent | 3e6d6928bdb9d823cdd54512990e6951f377713a (diff) | |
| download | emacs-c640e87d077ae51c922b703f4b44f05dfb0d1cfd.tar.gz emacs-c640e87d077ae51c922b703f4b44f05dfb0d1cfd.zip | |
* lisp/simple.el (count-words--buffer-message): Fix narrowing check.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/simple.el | 2 |
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 @@ | |||
| 1 | 2012-09-07 Chong Yidong <cyd@gnu.org> | 1 | 2012-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))) |