From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dov Grobgeld Subject: Re: org-edit-file ? Date: Thu, 21 Jul 2011 12:42:44 +0300 Message-ID: References: <81y5zshnzx.fsf@gmail.com> <878vrst1wc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0003255729c2c55f9204a8912b46 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjpmO-0005ki-Kn for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 05:42:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjpmI-0002ed-RL for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 05:42:52 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:61948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjpmI-0002eT-Lo for emacs-orgmode@gnu.org; Thu, 21 Jul 2011 05:42:46 -0400 Received: by iyb14 with SMTP id 14so879459iyb.0 for ; Thu, 21 Jul 2011 02:42:45 -0700 (PDT) In-Reply-To: <878vrst1wc.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode , Jambunathan K --0003255729c2c55f9204a8912b46 Content-Type: text/plain; charset=UTF-8 I'm not sure that emacs is the best tool to e.g. generate a template png file of a given size and given background, or a svg file. I still don't feel that any of the proposed solutions solves the file:foo.svg edit scenario, where foo.svg does not exist yet. Also I would rather differentiate between opening a few for viewing and opening a file for editing, as e.g. eog and inkview are good for viewing, whereas gimp and inkscape are better for editing. Regards, Dov On Thu, Jul 21, 2011 at 12:32, Bastien wrote: > Hi Dov, > > Jambunathan K writes: > > >> have a a new command org-edit-file that would: > >> > >> If the file does not exist, copy a skeleton file to the filename > >> or generate the skeleton file by an emacs-function or by calling > >> an external application. > > Such a functionality belongs to Emacs itself rather than Org-mode. > Are you aware of existing templating facilities? > > http://emacs-template.sourceforge.net/ > > >> Call the configured editor application on the new file. > >> If invoked with Ctrl-u , allow the user to specify what editor to > >> run on the file, e.g. inkscape, or killustrator on svg files. > >> > >> Does something like this already exists? > > > > Start from C-h f org-open-file. > > Indeed! > > Best, > > -- > Bastien > --0003255729c2c55f9204a8912b46 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm not sure that emacs is the best tool to e.g. gener= ate a template png file of a given size and given background, or a svg file= . I still don't feel that any of the proposed solutions solves the file= :foo.svg edit scenario, where foo.svg does not exist yet. Also I would rath= er differentiate between opening a few for viewing and opening a file for e= diting, as e.g. eog and inkview are good for viewing, whereas gimp and inks= cape are better for editing.

Regards,
Dov

On Thu, Jul 21, 2011 = at 12:32, Bastien <b= zg@altern.org> wrote:
Hi Dov,

Jambunathan K <kjambunathan@gm= ail.com> writes:

>> have a a new command org-edit-file that would:
>>
>> =C2=A0 =C2=A0 If the file does not exist, copy a skeleton file to = the filename
>> =C2=A0 =C2=A0 or generate the skeleton file by an emacs-function o= r by calling
>> =C2=A0 =C2=A0 an external application.

Such a functionality belongs to Emacs itself rather than Org-mode. Are you aware of existing templating facilities?

=C2=A0http://emacs-template.sourceforge.net/

>> =C2=A0 =C2=A0 Call the configured editor application on the new fi= le.
>> =C2=A0 =C2=A0 If invoked with Ctrl-u , allow the user to specify w= hat editor to
>> =C2=A0 =C2=A0 run on the file, e.g. inkscape, or killustrator on s= vg files.
>>
>> Does something like this already exists?
>
> Start from C-h f org-open-file.

Indeed!

Best,

--
=C2=A0Bastien

--0003255729c2c55f9204a8912b46--