all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Find first line FOLLOWING a sequence of matches
Date: Tue, 28 Apr 2015 22:37:06 -0700 (PDT)	[thread overview]
Message-ID: <cbd431c1-3bd6-41cd-a806-ed6d31f7d947@googlegroups.com> (raw)
In-Reply-To: <29ab9e2e-0c7a-4b10-a701-a8796a17f790@googlegroups.com>

On Wednesday, April 29, 2015 at 8:31:18 AM UTC+5:30, Rusi wrote:
> On Tuesday, April 28, 2015 at 10:24:28 PM UTC+5:30, Subhan Michael Tindall wrote:
> > Table like this: (abbreviated)
> > |a|b|c|
> > |a|d|e|
> > |a|z||
> > |m|b|c|
> > |m|c|d|
> > |ab|c|d|
> > First col is relevant (actual table is MUCH bigger)
> > 
> > I'm looking  to write a macro to convert this table (on an occasionally recurring basis)
> > To something like:
> > ,* a
> > |a|b|c|
> > |a|d|e|
> > |a|z||
> > ,* m
> > |m|b|c|
> > |m|c|d|
> > ,* ab
> > |ab|c|d|
> > 
> > The entries in first column are always strings of characters, no internal whitespace
> > Looking for a way to search for the LAST match for a given element
> > With that I should be able to macro-ize my keystrokes and save some time, or better yet come up with something to fully process the file
> > 
> > EG:
> > Insert ,* a header
> > Search for a in column 1
> > Find the last a in the block
> > Move down a line
> > Copy m & insert ,* m header
> > Search for m in column 1
> > <repeat>
> > 
> > Thousands of lines, hundreds of blocks, don't make me export this to excel and do it there!
> > 
> > 
> 
> org or more specifically orgtbl should be able to do this.
> Maybe ask on the org mailing list?

Some part of the puzzle I had worked out here
https://mail.python.org/pipermail/python-list/2013-September/666040.html

Some more details will need to be worked out


  reply	other threads:[~2015-04-29  5:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1821.1430240067.904.help-gnu-emacs@gnu.org>
2015-04-29  3:01 ` Find first line FOLLOWING a sequence of matches Rusi
2015-04-29  5:37   ` Rusi [this message]
2015-04-28 16:53 Subhan Michael Tindall
2015-04-29  4:37 ` Bob Proulx
2015-04-29 19:03   ` Robert Thorpe
2015-04-30  6:37     ` Bob Proulx
2015-04-30 16:19       ` Subhan Michael Tindall
2015-04-30 20:39         ` Bob Proulx
2015-04-30 18:41       ` Robert Thorpe
2015-04-30 21:17         ` Bob Proulx
2015-04-30 21:21   ` Bob Proulx
2015-04-30 21:55     ` Subhan Michael Tindall
2015-05-01 16:35       ` Thien-Thi Nguyen
2015-05-01 19:30       ` Bob Proulx
2015-05-01 14:57 ` tomas

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=cbd431c1-3bd6-41cd-a806-ed6d31f7d947@googlegroups.com \
    --to=rustompmody@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.