emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* overzealous file link creation
@ 2009-08-11 20:29 Dan Davison
  2009-08-11 21:36 ` Nick Dokos
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Dan Davison @ 2009-08-11 20:29 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-08-12 16:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 20:29 overzealous file link creation Dan Davison
2009-08-11 21:36 ` Nick Dokos
2009-08-12  7:52 ` Manish
2009-08-12  8:32   ` Carsten Dominik
2009-08-12  8:30 ` Carsten Dominik
2009-08-12 16:09   ` Dan Davison
2009-08-12 16:42     ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).