Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: gnus-narrow-to-head, message-narrow-to-body?
Date: Mon, 07 Apr 2003 15:55:34 +0200	[thread overview]
Message-ID: <v9of3i5s4p.fsf@marauder.physik.uni-ulm.de> (raw)

Hi,

we have `message-narrow-to-head*' and `gnus-narrow-to-body'.
What about `gnus-narrow-to-head' and `message-narrow-to-body'?

(defun gnus-narrow-to-head ()
  "Narrow to the head of an article."
  (goto-char (point-min))
  (narrow-to-region
   (point-min)
   (cond ((search-forward "\n\n" nil t)
	  (1+ (match-beginning 0)))
	 (t (point-max)))))

(defun message-narrow-to-body ()
  "Narrow the buffer to the body of the message."
  (widen)
  (narrow-to-region (message-goto-body) (point-max))
  (goto-char (point-min)))

Opinions?  Corrections?  Objections?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




             reply	other threads:[~2003-04-07 13:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-07 13:55 Reiner Steib [this message]
2003-04-07 14:27 ` Kai Großjohann
2003-04-07 14:43   ` Julien Avarre
2003-04-07 15:59     ` Kai Großjohann
2003-04-07 16:33     ` Reiner Steib
2003-04-07 22:36       ` secure method (was: gnus-narrow-to-head, message-narrow-to-body?) Julien Avarre
2003-04-07 22:58         ` secure method Vasily Korytov
2003-04-08  0:01           ` Julien Avarre
2003-04-08  0:08             ` Julien Avarre

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=v9of3i5s4p.fsf@marauder.physik.uni-ulm.de \
    --to=4.uce.03.r.s@nurfuerspam.de \
    --cc=reiner.steib@gmx.de \
    /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).