emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: Matthew Lundin <mdl@imapmail.org>, emacs-orgmode@gnu.org
Subject: Re: Re: Keeping a wiki with org-mode
Date: Sun, 14 Jun 2009 08:13:10 +0200	[thread overview]
Message-ID: <6ED7BBF3-7939-4EB0-A0B1-3FB4979BB34E@gmail.com> (raw)
In-Reply-To: <87ljnvc2ig.fsf@kassiopeya.MSHEIMNETZ>


On Jun 13, 2009, at 10:17 PM, Sebastian Rose wrote:

>
> Matthew Lundin <mdl@imapmail.org> writes:
>> Hi Marcelo,
>>
>> Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
>>
>>> Hello,
>>>
>>> I wonder what is the best way to implement a wiki with org? I know  
>>> you
>>> can hyperlink to anything, but what I was thinking was something
>>> automatic, like what WikiDPad does or Tomboy -- like having  
>>> wikiwords
>>> (CamelCase) automatically linked as you type to a filename in the
>>> system (a specific directory you specify for the wiki). If it is not
>>> possible, it could be a nice addition for a future org version.
>>>
>>
>> As others have already mentioned, org-mode does not support CamelCase
>> words. But it's method for creating links is quite nice and allows  
>> org
>> to function very easily as a wiki.
>>
>> To make org-mode more "wiki-like," I add the following to my .emacs
>> file. The first variable has to come *before* org is loaded:
>>
>>
>> (setq org-return-follows-link t)
>> (setq org-open-non-existing-files t)
>
>
> Hm - then either the docs or the code has a bug.
>
> `C-h v org-open-non-existing-files' gives me this:
>
>
>   org-open-non-existing-files is a variable defined in `org.el'.
>   Its value is nil
>
>   Documentation:
>   Non-nil means, `org-open-file' will open non-existing files.
>   When nil, an error will be generated.
>
>   You can customize this variable.
>
>   [back]
>
>
>
> As you can see, it says `org-open-non-existing-files' is nil. But  
> still,
> I can follow the link without error (even with `debug-on-error' == t).
>
> I didn't notice that, since it's so natural to open such a file. It  
> will
> become a physical file once I save it, so I cannot see a reason to  
> avoid
> that.

Yes, the doc string was incomplete.  Here is what this looks like in  
the code:

     (if (and (not (eq cmd 'emacs)) ; Emacs has no problems with non- 
ex files
	     (not (file-exists-p file))
	     (not org-open-non-existing-files))
	(error "No such file: %s" file))

I have amended the docstring of that variable.

- Carsten

      reply	other threads:[~2009-06-14  6:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-12 21:32 Keeping a wiki with org-mode Marcelo de Moraes Serpa
2009-06-12 21:52 ` Russell Adams
2009-06-12 22:09   ` Marcelo de Moraes Serpa
2009-06-12 22:35     ` Russell Adams
2009-06-12 22:41     ` Eric Schulte
2009-06-12 23:26     ` Sebastian Rose
2009-06-12 23:30       ` Marcelo de Moraes Serpa
2009-06-13  0:03         ` Dan Davison
2009-06-14  6:17           ` Carsten Dominik
2009-06-13 19:56 ` Matthew Lundin
2009-06-13 20:17   ` Sebastian Rose
2009-06-14  6:13     ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6ED7BBF3-7939-4EB0-A0B1-3FB4979BB34E@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.org \
    --cc=sebastian_rose@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).