[Top][All Lists]

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

Re: detect narrowing?

From: Jesper Harder
Subject: Re: detect narrowing?
Date: Thu, 18 Sep 2003 01:11:15 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Kin Cho <address@hidden> writes:

> Is there a way (in elisp) to detect that a buffer is narrowed?

I think this should work:

(defun narrowing-in-effect-p ()
  (/= (buffer-size) (- (point-max) (point-min))))

reply via email to

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