help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: narrow question


From: ray
Subject: Re: narrow question
Date: Wed, 27 Sep 2006 19:45:58 +0800

It works,  Thank you.

On 9/27/06, Barry Margolin <barmar@alum.mit.edu> wrote:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]