From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: overzealous file link creation Date: Tue, 11 Aug 2009 16:29:56 -0400 Message-ID: <87ws5aozzv.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Maxyv-0002Rh-HU for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 16:30:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Maxyq-0002Qb-JQ for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 16:30:04 -0400 Received: from [199.232.76.173] (port=35349 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Maxyq-0002QY-Be for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 16:30:00 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:41693) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Maxyp-0003mC-Sy for emacs-orgmode@gnu.org; Tue, 11 Aug 2009 16:30:00 -0400 Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id n7BKTwXJ015936 for ; Tue, 11 Aug 2009 21:29:58 +0100 (BST) 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: emacs org-mode mailing list 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. Dan