From: Kai Grossjohann <grossjoh@charly.informatik.uni-dortmund.de>
Cc: ding@ifi.uio.no
Subject: Re: Removing headers from mail..
Date: 07 Mar 1996 22:29:50 +0100 [thread overview]
Message-ID: <vafu400lhgw.fsf@buster.informatik.uni-dortmund.de> (raw)
In-Reply-To: Andy Eskilsson's message of 05 Mar 1996 21:57:13 +0100
>>>>> On 05 Mar 1996 21:57:13 +0100, Andy Eskilsson
>>>>> <mpt95aes@pt.hk-r.se> said:
Andy> The second problem is that I could do a hook that deletes one
Andy> line, but the Received lines often span a couple of lines, is
Andy> there any small function that can take care of this?
This should kinda give you the idea:
(defun kill-long-line ()
; kill a region between (A) and (B)
(kill-region
; (A) is the spot where the cursor currently is
(point)
; don't move point while determining (B)
(save-excursion
; (B) is at least at the beginning of the next line
; (note that forward-line moves to beginning of next line)
(forward-line 1)
; if we're looking at a continuation line (which begins with
; whitespace followed by non-whitespace), ...
(while (looking-at "^[ \t]+[^ \t]+")
; move another line
(forward-line 1))
; (B) is where we have moved now
(point))))
I don't know if you want to restrict the whole thing to the header
section only, or something.
The code is untested!!
kai
--
~/.signature
next prev parent reply other threads:[~1996-03-07 21:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-05 8:14 Andrew Eskilsson
1996-03-05 20:17 ` Lars Magne Ingebrigtsen
1996-03-05 20:57 ` Andy Eskilsson
1996-03-07 21:29 ` Kai Grossjohann [this message]
1996-03-17 13:24 ` Lars Magne Ingebrigtsen
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=vafu400lhgw.fsf@buster.informatik.uni-dortmund.de \
--to=grossjoh@charly.informatik.uni-dortmund.de \
--cc=ding@ifi.uio.no \
/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).