From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Keeping a wiki with org-mode Date: Sun, 14 Jun 2009 08:13:10 +0200 Message-ID: <6ED7BBF3-7939-4EB0-A0B1-3FB4979BB34E@gmail.com> References: <1e5bcefd0906121432hfc9efc1sf09710568c6c74d0@mail.gmail.com> <87k53fhppz.fsf@fastmail.fm> <87ljnvc2ig.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 (Apple Message framework v935.3) 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 1MFixy-0008G8-Lq for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 02:13:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFixu-0008EK-CJ for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 02:13:18 -0400 Received: from [199.232.76.173] (port=48063 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFixu-0008EF-62 for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 02:13:14 -0400 Received: from mail-ew0-f224.google.com ([209.85.219.224]:34084) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MFixt-0003au-Q4 for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 02:13:14 -0400 Received: by ewy24 with SMTP id 24so111166ewy.42 for ; Sat, 13 Jun 2009 23:13:13 -0700 (PDT) In-Reply-To: <87ljnvc2ig.fsf@kassiopeya.MSHEIMNETZ> 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: Sebastian Rose Cc: Matthew Lundin , emacs-orgmode@gnu.org On Jun 13, 2009, at 10:17 PM, Sebastian Rose wrote: > > Matthew Lundin writes: >> Hi Marcelo, >> >> Marcelo de Moraes Serpa 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