* buffer-narrowed-p
@ 2009-10-11 20:41 Lennart Borgman
2009-10-11 20:48 ` buffer-narrowed-p Deniz Dogan
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2009-10-11 20:41 UTC (permalink / raw)
To: Emacs-Devel devel
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))))
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: buffer-narrowed-p
2009-10-11 20:41 buffer-narrowed-p Lennart Borgman
@ 2009-10-11 20:48 ` Deniz Dogan
2009-10-11 21:25 ` buffer-narrowed-p Lennart Borgman
0 siblings, 1 reply; 3+ messages in thread
From: Deniz Dogan @ 2009-10-11 20:48 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Emacs-Devel devel
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?
--
Deniz Dogan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: buffer-narrowed-p
2009-10-11 20:48 ` buffer-narrowed-p Deniz Dogan
@ 2009-10-11 21:25 ` Lennart Borgman
0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2009-10-11 21:25 UTC (permalink / raw)
To: Deniz Dogan; +Cc: Emacs-Devel devel
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 ... ;-)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-11 21:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` buffer-narrowed-p Lennart Borgman
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).