From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Badari Kakumani" Newsgroups: gmane.emacs.help Subject: Re: binding C-uC-SPC to a new key Date: 21 Dec 2006 15:41:06 -0800 Organization: http://groups.google.com Message-ID: <1166744466.295319.105830@n67g2000cwd.googlegroups.com> References: <1166717789.737921.289600@i12g2000cwa.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1166748022 11032 80.91.229.10 (22 Dec 2006 00:40:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Dec 2006 00:40:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 22 01:40:21 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GxYSS-0001vE-HW for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Dec 2006 01:40:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GxYSS-0005nL-0m for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Dec 2006 19:40:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n67g2000cwd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 128.107.248.220 Original-X-Trace: posting.google.com 1166744472 22099 127.0.0.1 (21 Dec 2006 23:41:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 21 Dec 2006 23:41:12 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: n67g2000cwd.googlegroups.com; posting-host=128.107.248.220; posting-account=0N54pQ0AAACKpZzrYixCds5IKoApfAwr Original-Xref: shelby.stanford.edu gnu.emacs.help:144220 Original-To: help-gnu-emacs@gnu.org 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:39823 Archived-At: Drew Adams wrote: > > > > i would appreciate pointers to invoke the the set-mark-command > > > > with a prefix (so that it traverses back to where previous mark was). > > > > > > Is not C-x C-x what you want? Or do you just want that the cursor to > > > skip temporarily to the previous mark? > > > > no. what i wanted is to cycle thru all of the marks in my mark-ring. > > C-u C-SPC does what you are asking, IIUC. i know it does what i want -- BUT i wanted to bind it to some different key (since typing C-u C-SPC is inconvenient)... i could probably solve it using macros. but i am exploring how to solve it thru some elisp code. all i need is a lisp function that invokes set-mark-command with a prefix argument. once i have this elisp function, i can bind it to a key i want. i see the exact lisp function i wanted -- goto-previous-mark -- written by you in the URL you pointed below. thanks very much. i shall keep checking the emacswiki for such goodies i guess... thanks, -badari > > See also my post on Dec 16 to the thread "Re: vim's jumplist equivalent in > emacs?" for other ways to do this. Here is some doc on that: > http://www.emacswiki.org/cgi-bin/wiki/MarkCommands#IciclesGoToMarker.