From: Carsten Dominik <dominik@uva.nl>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: RELEASE: Org-mode 6.08a
Date: Tue, 7 Oct 2008 13:05:38 +0200 [thread overview]
Message-ID: <AADD032A-A620-41CF-AC40-8133C0974E8C@uva.nl> (raw)
In-Reply-To: <20524da70810070236k1fb60226jb82d024417b224af@mail.gmail.com>
Hi Samuel,
On Oct 7, 2008, at 11:36 AM, Samuel Wales wrote:
> Comments on the interesting attachment feature.
>
> 1. This function needs "(interactive)", i think.
>
> (defun org-attach-open-in-emacs ()
> "Open attachment, force opening in Emacs.
> See `org-attach-open'."
> (org-attach-open 'in-emacs))
Indeed, I will fix this later today
>
>
> 2. This is trivial to rebind, but my guess is that emacs types would
> prefer to open things in emacs using the nonshifted keys. e.g. dired
> instead of file browser, emacs instead of text editor.
Not if it is a PDF or Word file or so, not you don't. Opening
attachments uses the exact same mechanism as following links with `C-c
C-o'. So the idea is (I should also mention this in the attachment
section of the documentation), that you configure org-file-apps org
one of he system-dependent variants to open certain file type with
external applications, and others inside Emacs. Then the normal
opening of an attachment will always do "the right thing", and you can
overrule this standard mechanism by using "O" instead of "o".
For example, the default setting in org-file-apps already opens .org
and .txt files inside Emacs.
> 3. I'm getting the idea that the attachment system is partly to avoid
> linking files?
Yes, I think so too.
> This is good because links are easy to break. The key
> is to have a directory that is only for org, and to use the filesystem
> to identify the attachments. Then there is no broken link to a file.
> I like the idea.
>
> The current implementation explicitly lists the attachments. Perhaps
> they could be retrieved from the dir?
Yes, also a discussion point I had with John. I think it is OK to
have that list there so that you do not have to open the directory in
order to see what you have, but things an get out of synch. Use "z"
to get them back into synch. I will consider to use a live `directory-
files' when it comes to selecting an attachment for opening.
> 4. Another possibility, if we have a directory dedicated to a node,
> might be to inline the files under the node. Each subnode would be
> the name of a file in the dir associated with the node. The contents
> of the subnode are the contents of the file. Then any editing of a
> headline would change the filename, and any editing of the contents
> would change the file contents. Searching would find things in the
> contents. Yet data are only stored in the files themselves, not in
> the org file.
Wild idea, too wild for me, inlining is a can of worms..... I think
it is better to export from org to files where needed.
HTH
- Carsten
>
>
> For what it's worth.
next prev parent reply other threads:[~2008-10-07 11:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-05 6:40 RELEASE: Org-mode 6.08a Carsten Dominik
2008-10-05 21:18 ` William Henney
[not found] ` <08B4A2E6-A2DF-4AA6-815D-CBE0F708EDE7@uva.nl>
2008-10-06 0:29 ` William Henney
2008-10-06 2:21 ` Manish
2008-10-06 2:39 ` William Henney
2008-10-06 4:26 ` Austin Frank
2008-10-06 6:03 ` Manish
2008-10-06 8:47 ` Alan E. Davis
2008-10-06 17:15 ` Carsten Dominik
2008-10-07 9:36 ` Samuel Wales
2008-10-07 11:05 ` Carsten Dominik [this message]
2008-10-08 10:51 ` Carsten Dominik
2008-10-08 11:43 ` Manish
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=AADD032A-A620-41CF-AC40-8133C0974E8C@uva.nl \
--to=dominik@uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=samologist@gmail.com \
/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).