From: Josh Huber <huber@alum.wpi.edu>
Subject: Re: letting split rules have access to the message body...
Date: 15 May 2001 12:33:58 -0400 [thread overview]
Message-ID: <877kzilgg9.fsf@mclinux.com> (raw)
In-Reply-To: <vafzocfrmm3.fsf@lucy.cs.uni-dortmund.de>
Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> I'm sure that
>
> (save-restriction
> ...narrow to headers...)
> (save-restriction
> ...narrow to body...)
Right, this does the right thing.
> does the right thing: after the first save-restriction returns, the
> previous narrowing is in effect. save-restriction is like let for
> narrowing boundaries.
What I was hoping to do was something like
(save-restriction
(...narrow to some region...)
...do some work...
(widen)
...do more work...
)
but this would widen it to the full buffer, correct?
In any case, it's easy to re-work the code I'm working to just wrap
the areas where I narrow with save-restriction. Thats better than
copying the whole article to a separate buffer...since the message
could be very large.
Thanks for the help,
--
Josh Huber
prev parent reply other threads:[~2001-05-15 16:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-10 21:30 Josh Huber
2001-05-11 13:20 ` Josh Huber
2001-05-11 22:50 ` Kai Großjohann
2001-05-14 19:13 ` Josh Huber
2001-05-14 20:16 ` Kai Großjohann
2001-05-14 21:18 ` Josh Huber
2001-05-15 9:24 ` Kai Großjohann
2001-05-15 16:33 ` Josh Huber [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877kzilgg9.fsf@mclinux.com \
--to=huber@alum.wpi.edu \
/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.
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 NNTP newsgroup(s).