* Finding the previous/next line at same indentation
@ 2008-01-23 5:07 Micah R Ledbetter
2008-01-23 17:46 ` JRancier
0 siblings, 1 reply; 3+ messages in thread
From: Micah R Ledbetter @ 2008-01-23 5:07 UTC (permalink / raw)
To: help-gnu-emacs
Ladies and gentlemen of the list,
I'm editing a file which describes a hierarchical relationship between
objects, with children indented from parents.
Sometimes I want to find other children of the same parent, which will
naturally be at the same level of indentation. Sometimes, there are a
great deal of sub-children in the way, and navigating pages and pages
of this can be tedious. Would someone point me toward some elisp code
that helps me accomplish this?
As a bonus, it would be cool to intelligently encounter indentation
which indicates a new entry - that is, instead of ALWAYS finding the
next or previous item at the same level of indentation, if it
encounters a line at a *lower* level of indentation, it should halt
(or even wrap around to the beginning of the current entry).
Thanks in advance.
- Micah
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Finding the previous/next line at same indentation
2008-01-23 5:07 Micah R Ledbetter
@ 2008-01-23 17:46 ` JRancier
0 siblings, 0 replies; 3+ messages in thread
From: JRancier @ 2008-01-23 17:46 UTC (permalink / raw)
To: Micah R Ledbetter
Cc: help-gnu-emacs, help-gnu-emacs-bounces+jrancier=penntraffic.com
help-gnu-emacs-bounces+jrancier=penntraffic.com@gnu.org wrote on
01/23/2008 12:07:50 AM:
| Ladies and gentlemen of the list,
|
| I'm editing a file which describes a hierarchical relationship between
| objects, with children indented from parents.
|
| Sometimes I want to find other children of the same parent, which will
| naturally be at the same level of indentation. Sometimes, there are a
| great deal of sub-children in the way, and navigating pages and pages
| of this can be tedious. Would someone point me toward some elisp code
| that helps me accomplish this?
You might want to take a look the hide-show package. Is this plain text?
XML?
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Finding the previous/next line at same indentation
[not found] <mailman.6443.1201109434.18990.help-gnu-emacs@gnu.org>
@ 2008-01-23 17:51 ` Scott Frazer
0 siblings, 0 replies; 3+ messages in thread
From: Scott Frazer @ 2008-01-23 17:51 UTC (permalink / raw)
To: help-gnu-emacs
Micah R Ledbetter wrote:
> Ladies and gentlemen of the list,
>
> I'm editing a file which describes a hierarchical relationship between
> objects, with children indented from parents.
>
> Sometimes I want to find other children of the same parent, which will
> naturally be at the same level of indentation. Sometimes, there are a
> great deal of sub-children in the way, and navigating pages and pages of
> this can be tedious. Would someone point me toward some elisp code that
> helps me accomplish this?
>
> As a bonus, it would be cool to intelligently encounter indentation
> which indicates a new entry - that is, instead of ALWAYS finding the
> next or previous item at the same level of indentation, if it encounters
> a line at a *lower* level of indentation, it should halt (or even wrap
> around to the beginning of the current entry).
>
> Thanks in advance.
>
> - Micah
>
>
See the forward-block-dwim and backward-block-dwim commands in:
http://www.emacswiki.org/cgi-bin/wiki/motion-and-kill-dwim.el
Scott
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-23 17:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.6443.1201109434.18990.help-gnu-emacs@gnu.org>
2008-01-23 17:51 ` Finding the previous/next line at same indentation Scott Frazer
2008-01-23 5:07 Micah R Ledbetter
2008-01-23 17:46 ` JRancier
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).