* jump next previous - tag bookmark or search
@ 2006-05-28 15:36 Adam
2006-05-28 16:04 ` Albert Reiner
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Adam @ 2006-05-28 15:36 UTC (permalink / raw)
My file of code is long and getting longer. So I would like to jump either
forward or backward to the next or previous section start, with a single
keystroke, such as F7 (previous) and F8 (next).
I would be happy to comment each section start with a signifier-comment,
such as ;; ** whereas all other comments would start ;;; or ;
So, which would be more applicable to bind to F7 F8 for this ?
Tags, where it would be handy I suppose to collect the comment text on just
that line.
Bookmarks, although the need for an individual Bookmark name is
undesirable.
or a backward or forwards search for ";;** "
While it would seem the Search method most appropriate, I would be
interested in hearing any thoughts, comments or recommendations.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: jump next previous - tag bookmark or search
2006-05-28 15:36 jump next previous - tag bookmark or search Adam
@ 2006-05-28 16:04 ` Albert Reiner
2006-05-28 16:20 ` Drew Adams
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Albert Reiner @ 2006-05-28 16:04 UTC (permalink / raw)
[Adam <nospam@example.com>, Mon, 29 May 2006 03:36:44 +1200]:
> My file of code is long and getting longer. So I would like to jump either
> forward or backward to the next or previous section start, with a single
> keystroke, such as F7 (previous) and F8 (next).
>
> I would be happy to comment each section start with a signifier-comment,
> such as ;; ** whereas all other comments would start ;;; or ;
This sounds like a case for outline-mode or outline-minor-mode to me.
You probably have to adjust some regexp to recognize your sections.
Albert.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: jump next previous - tag bookmark or search
2006-05-28 15:36 jump next previous - tag bookmark or search Adam
2006-05-28 16:04 ` Albert Reiner
@ 2006-05-28 16:20 ` Drew Adams
2006-05-28 16:30 ` Bastien
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2006-05-28 16:20 UTC (permalink / raw)
I would like to jump either forward or backward to the next or
previous section start, with a single keystroke, such as F7 and F8.
I would be happy to comment each section start with a signifier-comment,
such as ;; ** whereas all other comments would start ;;; or ;
So, which would be more applicable to bind to F7 F8 for this ?
- Tags, where it would be handy I suppose to collect the comment
text on just that line.
- Bookmarks, although the need for an individual Bookmark name is
undesirable.
- or a backward or forwards search for ";;** "
Libraries commonly use a page separator (^L) for major sections. Then, you
can navigate among pages using `C-x ]' (forward-page) and `C-x ['
(backward-page). You can of course bind F7 and F8 to these commands.
To insert a Control-L character (^L), use `C-q C-l'.
Be aware that a page separator can also affect printing.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: jump next previous - tag bookmark or search
2006-05-28 15:36 jump next previous - tag bookmark or search Adam
2006-05-28 16:04 ` Albert Reiner
2006-05-28 16:20 ` Drew Adams
@ 2006-05-28 16:30 ` Bastien
2006-05-28 18:04 ` Stefan Monnier
2006-05-28 20:46 ` jump next previous Adam
4 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2006-05-28 16:30 UTC (permalink / raw)
Adam <nospam@example.com> writes:
> I would be happy to comment each section start with a signifier-comment,
> such as ;; ** whereas all other comments would start ;;; or ;
>
> So, which would be more applicable to bind to F7 F8 for this ?
Maybe you just need to add a page break with `C-q C-l' then jump from
one page to another with `C-x ]'.
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: jump next previous - tag bookmark or search
2006-05-28 15:36 jump next previous - tag bookmark or search Adam
` (2 preceding siblings ...)
2006-05-28 16:30 ` Bastien
@ 2006-05-28 18:04 ` Stefan Monnier
2006-05-28 20:46 ` jump next previous Adam
4 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2006-05-28 18:04 UTC (permalink / raw)
> My file of code is long and getting longer. So I would like to jump
> either forward or backward to the next or previous section start, with
> a single keystroke, such as F7 (previous) and F8 (next).
Checkout outline-minor-mode.
> I would be happy to comment each section start with a signifier-comment,
> such as ;; ** whereas all other comments would start ;;; or ;
The Elisp coding conventions say that ";;;" starts a section heading (which
is recognized by outline-minor-mode). I.e. normal comments should use ";;"
or ";" but not ";;;".
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: jump next previous
2006-05-28 15:36 jump next previous - tag bookmark or search Adam
` (3 preceding siblings ...)
2006-05-28 18:04 ` Stefan Monnier
@ 2006-05-28 20:46 ` Adam
4 siblings, 0 replies; 6+ messages in thread
From: Adam @ 2006-05-28 20:46 UTC (permalink / raw)
Adam wrote:
Thank you very much, folks.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-05-28 20:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-28 15:36 jump next previous - tag bookmark or search Adam
2006-05-28 16:04 ` Albert Reiner
2006-05-28 16:20 ` Drew Adams
2006-05-28 16:30 ` Bastien
2006-05-28 18:04 ` Stefan Monnier
2006-05-28 20:46 ` jump next previous Adam
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).