From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: simple requirement, so simple don't know how to search Date: Thu, 28 Jan 2010 15:36:32 +0100 Message-ID: <87fx5qs3db.fsf@thinkpad.tsdh.de> References: <95734.2038.qm@web63001.mail.re1.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264689616 471 80.91.229.12 (28 Jan 2010 14:40:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jan 2010 14:40:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 28 15:40:11 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NaVXU-0006gi-QH for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jan 2010 15:40:09 +0100 Original-Received: from localhost ([127.0.0.1]:60095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaVXT-0000Km-UT for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jan 2010 09:40:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaVUY-0005Vw-TG for help-gnu-emacs@gnu.org; Thu, 28 Jan 2010 09:37:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaVUV-0005RF-0M for help-gnu-emacs@gnu.org; Thu, 28 Jan 2010 09:37:06 -0500 Original-Received: from [199.232.76.173] (port=57776 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaVUU-0005Qu-94 for help-gnu-emacs@gnu.org; Thu, 28 Jan 2010 09:37:02 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:47252) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaVUT-0001O2-Ko for help-gnu-emacs@gnu.org; Thu, 28 Jan 2010 09:37:02 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NaVUO-0004cg-UT for help-gnu-emacs@gnu.org; Thu, 28 Jan 2010 15:36:56 +0100 Original-Received: from dhcp173.uni-koblenz.de ([141.26.71.173]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jan 2010 15:36:56 +0100 Original-Received: from tassilo by dhcp173.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Jan 2010 15:36:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 71 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dhcp173.uni-koblenz.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) Cancel-Lock: sha1:s1uMyQgOe3JRVJEVVpsxOXLAyi8= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71546 Archived-At: Richard Riley 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