From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: overzealous file link creation Date: Wed, 12 Aug 2009 10:30:12 +0200 Message-ID: References: <87ws5aozzv.fsf@stats.ox.ac.uk> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mb9Dy-0008As-4r for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 04:30:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mb9Dt-0008A6-AF for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 04:30:21 -0400 Received: from [199.232.76.173] (port=43928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mb9Dt-0008A2-5F for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 04:30:17 -0400 Received: from mx20.gnu.org ([199.232.41.8]:2857) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mb9Ds-0007Ov-MK for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 04:30:16 -0400 Received: from ey-out-1920.google.com ([74.125.78.146]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mb9Dr-0000eO-Lf for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 04:30:15 -0400 Received: by ey-out-1920.google.com with SMTP id 5so1291119eyb.24 for ; Wed, 12 Aug 2009 01:30:14 -0700 (PDT) In-Reply-To: <87ws5aozzv.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs org-mode mailing list On Aug 11, 2009, at 10:29 PM, Dan Davison wrote: > Recently I've been randomly losing the string 'file' from all sorts of > documents. Up until now I had no explanation. It's not the sort of > question one wants to ask on public mailing lists. > > OK, so if you call org-cycle "in the vicinity" of a word that starts > with the string 'file', then it eats up 'file' and prompts for link > insertion. This is true in buffers that are not in org-mode or > orgstruct*-mode. (I call org-cycle the whole time in order to use > outline-minor-mode, but o-m-m doesn't have to be turned on to cause > this.) > > Try putting the following fragment into python-mode, and getting rid > of > the asterisks. Then org-cycle issued with point at any of the > asterisked > locations eats the string 'file' and prompts for a link. > > --8<---------------cut here---------------start------------->8--- > def f(filepath): > print( > *filepath*)* > * > *def g(arg): > return arg > --8<---------------cut here---------------end--------------->8--- > > This is with latest git. Hi Dan, could you please check the following variables: org-tab-first-hook org-tab-after-check-for-table-hook org-tab-after-check-for-cycling-hook Probably one of these contains a function that will do file link completion. - Carsten