From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: simple requirement, so simple don't know how to search
Date: Thu, 28 Jan 2010 15:36:32 +0100 [thread overview]
Message-ID: <87fx5qs3db.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: hjs32h$dtc$1@ger.gmane.org
Richard Riley <rileyrgdev@gmail.com> writes:
Hi!
>> I have a huge codebase and I I visit various files. There are certain points
>> which I would like "the feature I"m looking for" to remember when I press a key.
>> So that I can cycle through them back and forth. This is quite basic so I am hoping
>> this will already be there. Someone just tell me that this feature is there.
>
> You might like bm, I have :
>
> http://www.nongnu.org/bm/
You can also put a mark at the various interesting positions in a file
(C-SPC, or C-SPC C-SPC to set the mark but deactivate the region
highlighting), and then use C-u C-SPC to cycle through all marks in that
buffer.
If set-mark-command-repeat-pop is non-nil, after an intial C-u C-SPC,
any following C-SPC will cycle. That's very convenient.
,----[ C-h k C-SPC ]
| C-SPC runs the command set-mark-command, which is an interactive compiled Lisp
| function in `simple.el'.
|
| It is bound to C-@, C-SPC.
|
| (set-mark-command ARG)
|
| Set the mark where point is, or jump to the mark.
| Setting the mark also alters the region, which is the text
| between point and mark; this is the closest equivalent in
| Emacs to what some editors call the "selection".
|
| With no prefix argument, set the mark at point, and push the
| old mark position on local mark ring. Also push the old mark on
| global mark ring, if the previous mark was set in another buffer.
|
| When Transient Mark Mode is off, immediately repeating this
| command activates `transient-mark-mode' temporarily.
|
| With prefix argument (e.g., C-u C-@), jump to the mark, and set the mark from
| position popped off the local mark ring (this does not affect the global
| mark ring). Use C-x C-@ to jump to a mark popped off the global
| mark ring (see `pop-global-mark').
|
| If `set-mark-command-repeat-pop' is non-nil, repeating
| the C-@ command with no prefix argument pops the next position
| off the local (or global) mark ring and jumps there.
|
| With C-u C-u as prefix
| argument, unconditionally set mark where point is, even if
| `set-mark-command-repeat-pop' is non-nil.
|
| Novice Emacs Lisp programmers often try to use the mark for the wrong
| purposes. See the documentation of `set-mark' for more information.
`----
Of course, that won't switch to other files. But emacs has bookmarks,
too. See
,----[ (info "(emacs)Bookmarks") ]
| "Bookmarks" are somewhat like registers in that they record positions
| you can jump to. Unlike registers, they have long names, and they
| persist automatically from one Emacs session to the next. The
| prototypical use of bookmarks is to record "where you were reading" in
| various files.
`----
Bye,
Tassilo
next prev parent reply other threads:[~2010-01-28 14:36 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-28 12:39 simple requirement, so simple don't know how to search Maindoor
2010-01-28 12:50 ` Mario Domenech Goulart
2010-02-01 5:47 ` Maindoor
2010-02-01 15:22 ` Drew Adams
2010-02-02 8:35 ` Maindoor
2010-02-02 12:24 ` Richard Riley
2010-02-02 15:50 ` Drew Adams
2010-02-03 4:50 ` Maindoor
[not found] ` <mailman.589.1265113565.14305.help-gnu-emacs@gnu.org>
2010-02-02 19:07 ` rustom
2010-02-02 20:36 ` Richard Riley
2010-02-03 4:50 ` Maindoor
2010-02-03 7:32 ` Drew Adams
2010-02-03 7:47 ` Richard Riley
[not found] ` <mailman.636.1265183360.14305.help-gnu-emacs@gnu.org>
2010-02-03 16:57 ` rustom
2010-02-03 17:58 ` Richard Riley
2010-02-04 6:03 ` Maindoor
2010-01-28 13:22 ` Richard Riley
2010-01-28 14:36 ` Tassilo Horn [this message]
2010-01-28 17:36 ` Richard Riley
2010-01-29 7:56 ` Tassilo Horn
2010-01-30 9:19 ` tomas
2010-01-29 8:14 ` Thierry Volpiatto
[not found] <mailman.680.1265263392.14305.help-gnu-emacs@gnu.org>
2010-02-05 10:03 ` rustom
[not found] <mailman.354.1264682403.14305.help-gnu-emacs@gnu.org>
2010-02-18 9:27 ` Stefan Kamphausen
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=87fx5qs3db.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=help-gnu-emacs@gnu.org \
/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.