aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChong Yidong2012-09-07 16:58:31 +0800
committerChong Yidong2012-09-07 16:58:31 +0800
commite5c2edf79ba2b75a3572839fcb9de612f93ab630 (patch)
tree97949328a6fba5bf022572d490a3212148f3bed8 /etc
parenteddb36a7d58b99e43deadcc808347008fe8a8627 (diff)
downloademacs-e5c2edf79ba2b75a3572839fcb9de612f93ab630.tar.gz
emacs-e5c2edf79ba2b75a3572839fcb9de612f93ab630.zip
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index bc1c49fe946..b85d64f83a3 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -645,6 +645,9 @@ The interpretation of the DECLS is determined by `defun-declarations-alist'.
645 645
646** New error type and new function `user-error'. Doesn't trigger the debugger. 646** New error type and new function `user-error'. Doesn't trigger the debugger.
647 647
648+++
649** New utility function `buffer-narrowed-p'.
650
648** Window changes 651** Window changes
649 652
650*** The functions get-lru-window, get-mru-window and get-largest-window 653*** The functions get-lru-window, get-mru-window and get-largest-window