[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: narrow question
From: |
Barry Margolin |
Subject: |
Re: narrow question |
Date: |
Tue, 26 Sep 2006 13:51:23 -0400 |
User-agent: |
MT-NewsWatcher/3.5.2 (PPC Mac OS X) |
In article <mailman.7430.1159275829.9609.help-gnu-emacs@gnu.org>,
ray <hantechs@gmail.com> wrote:
> I have learned to use narrow-to-region to narrow a buffer. But how can I
> determine whether a buffer is narrowed with elisp? Thanks.
(defun buffer-narrowed-p ()
(/= (- (point-max-marker) (point-min-marker))
(buffer-size)))
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***