all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Find first line FOLLOWING a sequence of matches
@ 2015-04-28 16:53 Subhan Michael Tindall
  2015-04-29  4:37 ` Bob Proulx
  2015-05-01 14:57 ` tomas
  0 siblings, 2 replies; 15+ messages in thread
From: Subhan Michael Tindall @ 2015-04-28 16:53 UTC (permalink / raw)
  To: 'help-gnu-emacs@gnu.org'

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!





This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message.  Thank you.


^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <mailman.1821.1430240067.904.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2015-05-01 19:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-28 16:53 Find first line FOLLOWING a sequence of matches 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
     [not found] <mailman.1821.1430240067.904.help-gnu-emacs@gnu.org>
2015-04-29  3:01 ` Rusi
2015-04-29  5:37   ` Rusi

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.