From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: Tips for quick jumping back and forth Date: Sat, 07 Jul 2012 17:39:11 +0400 Message-ID: <4FF83BFF.4000006@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341668371 22130 80.91.229.3 (7 Jul 2012 13:39:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Jul 2012 13:39:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: ckkashyap@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 07 15:39:29 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SnVEH-0004ud-Mg for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jul 2012 15:39:21 +0200 Original-Received: from localhost ([::1]:43581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnVEG-0001jE-La for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jul 2012 09:39:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnVEB-0001j2-5W for help-gnu-emacs@gnu.org; Sat, 07 Jul 2012 09:39:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnVE9-0005Bc-A3 for help-gnu-emacs@gnu.org; Sat, 07 Jul 2012 09:39:14 -0400 Original-Received: from forward10.mail.yandex.net ([77.88.61.49]:33701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnVE8-0005B5-RK for help-gnu-emacs@gnu.org; Sat, 07 Jul 2012 09:39:13 -0400 Original-Received: from smtp6.mail.yandex.net (smtp6.mail.yandex.net [77.88.61.56]) by forward10.mail.yandex.net (Yandex) with ESMTP id A9EDF1021627; Sat, 7 Jul 2012 17:39:09 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1341668349; bh=gm2UXyZMANBM5A8XKX6n6Bl74AzcWE2fmWXQ+BGCCQE=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:Content-Type: Content-Transfer-Encoding; b=alyXRe+mMyKPgY+r4zEqWrJo+3cSRIDViL7dTUCsLuqSO6q3sQqIiTjzLWsefIKSB WJ1m5N5hFqLfTP3vA3zTq0Btq4EaMFS62uvcuMP7Dg+JMeZ0MGIeWdXkT97NJhxMAC 6kLjgQDuCsLASCpM/lyG4bqQlyUA0e6sihJven9g= Original-Received: from smtp6.mail.yandex.net (localhost [127.0.0.1]) by smtp6.mail.yandex.net (Yandex) with ESMTP id 8710816405B0; Sat, 7 Jul 2012 17:39:09 +0400 (MSK) Original-Received: from 98-87.nwlink.spb.ru (98-87.nwlink.spb.ru [178.252.98.87]) by smtp6.mail.yandex.net (nwsmtp/Yandex) with ESMTP id d86CUlme-d960XVYi; Sat, 7 Jul 2012 17:39:09 +0400 X-Yandex-Rcpt-Suid: ckkashyap@gmail.com X-Yandex-Rcpt-Suid: help-gnu-emacs@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1341668349; bh=gm2UXyZMANBM5A8XKX6n6Bl74AzcWE2fmWXQ+BGCCQE=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: Content-Type:Content-Transfer-Encoding; b=N0u2nlgN0bOnARhS8WgfC0ihYmYAUKErlHIgS1dbDjzTxPt5jmtZz68Ss/68lMqMd aqoOY0u/8HLhyiSRcioXFOhZZqUS4RHQh7E6nA4eEahsVIjsxxYBZ9fZDXcUW/J132 3Wpw+UT+jmqgrcZEVUwPgW5JVfUTF2ennGTbzb3M= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.61.49 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85713 Archived-At: C K Kashyap writes: > I need some tips for quick jumping around. As in, say I'm editing a line and > need to go up a couple of paragraphs to edit something and then resume at my > original position. > The way I used to accomplish this in Vi was using mm to mark the current > position into m register and then go somewhere and come back by pressing 'm > > Now, I know that in emacs I can do it using C-x-r- to mark a position into > a register and then jump back to it usng C-x-r-j ... is there a better way? > Rather, what's a better way? You can try this package: https://github.com/dgutov/point-stack/blob/master/point-stack.el It's a more general solution for back-and-forth navigation, but you can also save any position manually with a hotkey. --Dmitry