unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Deniz Dogan <deniz.a.m.dogan@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: buffer-narrowed-p
Date: Sun, 11 Oct 2009 23:25:02 +0200	[thread overview]
Message-ID: <e01d8a50910111425o4f35994dqa991ed8496056792@mail.gmail.com> (raw)
In-Reply-To: <7b501d5c0910111348v2efe0b43pd5bc26182b1c5b37@mail.gmail.com>

On Sun, Oct 11, 2009 at 10:48 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
> 2009/10/11 Lennart Borgman <lennart.borgman@gmail.com>:
>> Could this perhaps be included in Emacs?
>>
>> ';;;###autoload
>> (defun buffer-narrowed-p ()
>>  "Return non-nil if the current buffer is narrowed."
>>  (/= (buffer-size)
>>      (- (point-max)
>>         (point-min))))
>>
>>
>>
>
> I was almost certain a function like this existed already. Am I mistaken?


I thought so too, but it is actually part of nXhtml ... ;-)




      reply	other threads:[~2009-10-11 21:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-11 20:41 buffer-narrowed-p Lennart Borgman
2009-10-11 20:48 ` buffer-narrowed-p Deniz Dogan
2009-10-11 21:25   ` Lennart Borgman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50910111425o4f35994dqa991ed8496056792@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=deniz.a.m.dogan@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).