unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joel Graber <jgraber@famous02.dal.design.ti.com>
Subject: looking for something like isearch-forward-column
Date: 29 Sep 2003 17:06:33 -0500	[thread overview]
Message-ID: <yvnwubrgsgm.fsf@famous02.dal.design.ti.com> (raw)


I use gnu emacs version 21.2.1 usually on linux redhat system.
to view very wide column oriented datafiles 
I'd like to be able to isearch forward and backward for
a character in the same column as the cursor.

I've googled and found several similar questions in *emacs* 
groups but no satisfactory answers.

My latest direction is to start by making it a macro
to call isearch-forward-regexp ^...<letter>

Example text file:
0123
LLLxLLLLL line 1
LHLLLLLLL line 2
LLLLLHLLL line 3
LHLLLLLLL line 4
LLLHLLLLL line 5

If my cursor is on the x in line 1 column 3.
and I want to find where is the next H in this column
(which is in line 5)
and I press a key bound to a macro,
I need it to query me what character to search for,
then convert it a call to isearch-forward-regexp 
for string ^...H

How do I insert <current-column>-1 number of .
into the regexp in the macro?

Or is there lisp code to support this already maybe?

thanks,
-- 
Joel Graber   

             reply	other threads:[~2003-09-29 22:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-29 22:06 Joel Graber [this message]
2003-09-29 23:19 ` looking for something like isearch-forward-column Greg Hill

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yvnwubrgsgm.fsf@famous02.dal.design.ti.com \
    --to=jgraber@famous02.dal.design.ti.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 read-only IMAP folder(s) and NNTP newsgroup(s).