Add a utility function buffer-narrowed-p, and use it.
authorChong Yidong <cyd@gnu.org>
Fri, 7 Sep 2012 08:58:31 +0000 (16:58 +0800)
committerChong Yidong <cyd@gnu.org>
Fri, 7 Sep 2012 08:58:31 +0000 (16:58 +0800)
commite5c2edf79ba2b75a3572839fcb9de612f93ab630
tree97949328a6fba5bf022572d490a3212148f3bed8
parenteddb36a7d58b99e43deadcc808347008fe8a8627
Add a utility function buffer-narrowed-p, and use it.

* lisp/subr.el (buffer-narrowed-p): New function.

* lisp/ses.el (ses-widen):
* lisp/simple.el (count-words--buffer-message):
* lisp/net/browse-url.el (browse-url-of-buffer): Use it

* lisp/simple.el (count-words-region): Don't signal an error if there
is a non-nil prefix arg and the mark is not set.

* doc/lispref/positions.texi (Narrowing): Document buffer-narrowed-p.
doc/lispref/ChangeLog
doc/lispref/positions.texi
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/cl-loaddefs.el
lisp/net/browse-url.el
lisp/ses.el
lisp/simple.el
lisp/subr.el