[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What variable says that the buffer is in narrowed state?
From: |
Bastien |
Subject: |
Re: What variable says that the buffer is in narrowed state? |
Date: |
Sat, 13 Oct 2007 16:57:10 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) |
Sven Joachim <svenjoac@gmx.de> writes:
> (defun buffer-narrowed-p ()
> "Return t if buffer is narrowed, nil otherwise."
> (or (> (point-min) 1)
> (< (point-max) (buffer-size))))
Great! Thanks very much.
> The mode-line display is coded in src/xdisp.c, look for "Narrow"
> there.
Seen that -- that's why I expected some internal variable/function would
tell me about the buffer narrow-status.
--
Bastien