all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Badari Kakumani" <badarisj@gmail.com>
Subject: lisp function to search-forward for lines with same indent
Date: 28 Aug 2006 01:16:52 -0700	[thread overview]
Message-ID: <1156753011.964177.189840@b28g2000cwb.googlegroups.com> (raw)

folks,

i have a large call-tree hierarchy represented as indented lines shown
below:

  File::Spec::Functions::__ANON__ x 1  	0.00s = (0.00 + 0.00)s
    File::Spec::Unix::catfile x 1  	0.00s = (0.00 + 0.00)s
      File::Spec::Unix::canonpath x 1  	0.00s
      File::Spec::Unix::catdir x 1  	0.00s = (0.00 + 0.00)s
        File::Spec::Unix::canonpath x 1  	0.00s
  at::obj::BEGIN x 14  	19.07s = (0.12 + 18.95)s

if my cursor is positioned at the first line shown in the above output,
i want to develop a function such that it finds the last-line
in the output shown -- a line with exactly two-spaces in the beginning
and then a non-space-charcter.

i want this to work for any other lines with a differing starting
indentation.

any clues on how to go about developing this lisp function or
any pointers to existing functions that do this will help.

to my surprise, in emacs, when i press:
   Esc Ctr-s ^ Space \sw
emacs is matching all lines that start with any number of spaces
(instead of matching lines with exactly one-space in the beginning
of line and a non-space character). not sure why it is behaving this
way.

thanks,
-badari

             reply	other threads:[~2006-08-28  8:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-28  8:16 Badari Kakumani [this message]
2006-08-28 20:42 ` lisp function to search-forward for lines with same indent Malte Spiess
2006-08-29 19:42 ` Kevin Rodgers
  -- strict thread matches above, loose matches on Subject: below --
2006-08-28 20:18 Jay Bingham

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=1156753011.964177.189840@b28g2000cwb.googlegroups.com \
    --to=badarisj@gmail.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.
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.