[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 1 Oct 2009 13:06:37 +0200
On Thu, Oct 1, 2009 at 12:38 PM, David Kastrup <address@hidden> wrote:
> Checking both can be done with
> (= (- (point-max) (point-min)) (buffer-size))
I use this function
(defun buffer-narrowed-p ()
"Return non-nil if the current buffer is narrowed."
Maybe it would be good if this was included in Emacs. However please
observe also that `save-restriction' and `widen' are fast operations.