It works, Thank you.
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 ***
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs