From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: canonical way to go beginning of a link Date: Wed, 06 Jul 2016 08:08:30 -0400 Message-ID: References: <6995BEED87293B45975DBA2355E4A902230BD3AB@HL-EX-MBS1.de.eu.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKldB-0000lw-Rp for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 08:08:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKld5-0001Os-Nj for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 08:08:40 -0400 Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:35970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKld5-0001Ok-In for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 08:08:35 -0400 Received: by mail-qk0-x230.google.com with SMTP id 82so7510128qko.3 for ; Wed, 06 Jul 2016 05:08:35 -0700 (PDT) In-reply-to: <6995BEED87293B45975DBA2355E4A902230BD3AB@HL-EX-MBS1.de.eu.local> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Haustedt, Jens" Cc: "emacs-orgmode@gnu.org" Haustedt, Jens writes: > Given this setting: > > some more text cite:a-key some text cite:a-key > ^ > When you run (re-search-backward "cite:") at the point above, the result is as follows: > > some more text cite:a-key some text cite:a-key > ^ > > This is exactly what I expected it to act. In your example > above, the whole search pattern could not be found in ist entirety from > the indicated point on, so it could not be found at all and point > is not moved. That is what I expect too, just not what I want ;) > > Maybe it is a good idea to move point forward for at least count > of chars in search pattern before the search executes? This is a great idea, thanks! > > Greets, Jens Haustedt -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu