Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Stern <stern@cray.com>
Subject: adding a new digest type to nndoc-type-alist
Date: 25 Sep 2000 11:04:10 -0700	[thread overview]
Message-ID: <yccya0gs605.fsf@orff.sea.tera.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

Sorry folks, I know the answer to this one, but I lack the elisp to implement
it.

I recently subscribed to a mailing list on eGroups and elected to receive
notices in digested form.  The individual messages are separated by double
lines of underscores, which seems like a good convention, unlikely to be found
in ordinary emails.

Since digest formats seem mostly the same except for the choice of message
separator, perhaps there should be some sort of digest template one could
use to make that one-item change.

-- 
 Ted Stern                 Analysis/Porting/Tuning, Engineering Applications
 Cray Inc.                                               http://www.cray.com
 411 First Avenue South, Suite 600    Direct 206-701-2182, Main 206-701-2000
 Seattle, WA 98104-2860                                    FAX  206-701-2500


[-- Attachment #2: Type: message/rfc822, Size: 3494 bytes --]

From: vim@egroups.com
To: vim@egroups.com
Subject: [vim] Digest Number 210
Date: 25 Sep 2000 09:01:51 -0000
Message-ID: <969872511.1793@egroups.com>

-------------------------- eGroups Sponsor -------------------------~-~>
Get news.  Source products.  Interact with colleagues.
Connect with your industry at WIRELESS NETWORKS ONLINE:
http://click.egroups.com/1/9276/14/_/3884/_/969872511/
---------------------------------------------------------------------_->

There is 1 message in this issue.

Topics in this digest:

      1. RE: line renumbering
           From: Michael Geddes <mgeddes@cybergraphic.com.au>


________________________________________________________________________
________________________________________________________________________

Message: 1
   Date: Mon, 25 Sep 2000 10:40:09 +1100
   From: Michael Geddes <mgeddes@cybergraphic.com.au>
Subject: RE: line renumbering

fun! Renumber() range
  let here=0
  let mx='^\(\s*\)\(\d\+\>\)'
  let i = a:firstline
  while i <= a:lastline
	let line=getline(i)
	if line =~mx
	  if here==0
		let here = substitute(matchstr(line,mx),mx,'\2','')
	  else
		let here=here+1
		call setline(i,substitute(line,mx,'\1'.here,''))
	  endif
	endif
	let i=i+1
  endwhile
endfun

:%call Renumber()


	-----Original Message-----
	From:	Jason Freund [SMTP:freundj@pacbell.net]
	Sent:	Thursday, 21 September 2000 9:21
	To:	vim@vim.org
	Subject:	line renumbering

	Hi,

	I need a macro to incrementally renumber lines starting with the 
	first given line number.  But it needs to skip blank lines or
comment 
	lines (beginning with '#' character)


	Example input:
	=================
	# comment

	5  A
	12 B
	3  C
	# comment
	4  D

	1  E
	=================


	Example output:
	=================
	#comment

	5  A
	6  B
	7  C
	#comment
	8  D

	9  E
	=================


	Can anyone recommend a macro that can do this?  Please cc: 
	freundj@pacbell.net

	-Jason
	


________________________________________________________________________
________________________________________________________________________




             reply	other threads:[~2000-09-25 18:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-25 18:04 Ted Stern [this message]
2000-09-25 22:19 ` Kai Großjohann

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=yccya0gs605.fsf@orff.sea.tera.com \
    --to=stern@cray.com \
    --cc=stern@tera.com \
    /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).