emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: link error when file missing


From: Ihor Radchenko
Subject: Re: [PATCH] Re: link error when file missing
Date: Mon, 11 Jul 2022 13:01:25 +0800

Ihor Radchenko <yantar92@gmail.com> writes:

> Alan Wehmann <alan.wehmann@gmail.com> writes:
>
>> Thanks for your reply.  In my personal case I've modified "org-open-file" to 
>> throw an error for a non-existing file.  In my case, clearly Emacs is not 
>> happy with a non-existing file--at least if it is a PDF file meant to be 
>> viewed by docview.  Option 1 could have "org-docview-open" throw an error 
>> for a non-existing file, I suppose.  You describe option 2 as risking 
>> existing configs.  I am uninformed on such an issue.  I only use Org from 
>> within Emacs.  If a future problem occurs because I modified 
>> "org-open-file", I'll deal with it when it occurs.
>
> I thought more about this and I do not think that modifying
> org-open-file is a good idea. The current behaviour could be useful for
> people who would like to auto-create, say, .org/.txt files just by
> typing a link and opening it. Even .svg files could be created like
> this.
>
> So, I propose to update ol-docview instead. See the attached patch.

Applied onto main via c231e93b5.

Best,
Ihor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]