From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Jan_B=F6cker?= Subject: Re: questions about links Date: Mon, 09 Aug 2010 09:33:31 +0200 Message-ID: <4C5FAF4B.4090409@jboecker.de> References: <20100807120001.55fdd1ec@bigblessing.tville> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52443 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiMrc-00062N-6p for emacs-orgmode@gnu.org; Mon, 09 Aug 2010 03:33:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiMrb-0007kk-1q for emacs-orgmode@gnu.org; Mon, 09 Aug 2010 03:33:40 -0400 Received: from smtp01.worldserver.net ([217.13.200.36]:54423) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiMra-0007jr-Sm for emacs-orgmode@gnu.org; Mon, 09 Aug 2010 03:33:39 -0400 In-Reply-To: <20100807120001.55fdd1ec@bigblessing.tville> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: scrawler@gmail.com Cc: Org Mode On 08/07/2010 07:00 PM, scrawler@gmail.com wrote: > Hi guys, > > Ok, if I make "foo" a link: > > blah blah [[foo]] blah > > it will pop over to "foo" elsewhere in the buffer. > > (This is a tangent, but I see carets in the documentation, like > "" , but they don't seem to be needed-- the link finds > "foo" just fine) > > Can I make [[foo]] link to all the foos in the buffer, > maybe via a list with a bit of context from which to > choose? Try this one: [[elisp:(occur "foo")]] "occur" is a standard emacs feature which lists all lines matching a given regexp. If you're going to use this, I'd recommend setting org-confirm-elisp-link-function to 'with-y-or-n for less annoyance while still being warned you are about to follow a link that can execute arbitrary code. > also, once I'm at the target, how can I return easily to > the anchor and refold whatever section the target was in? You can go back to where you came from using C-c &: | C-c & runs the command org-mark-ring-goto, which is an interactive | Lisp function in `org.el'. | | It is bound to C-c &. | | (org-mark-ring-goto &optional n) | | Jump to the previous position in the mark ring. | With prefix arg n, jump back that many stored positions. When | called several times in succession, walk through the entire ring. | Org-mode commands jumping to a different position in the current file, | or to another Org-mode file, automatically push the old position | onto the ring. I don't know about refolding the target headline. HTH, Jan