From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: "Edward N. Lewis" <ed.lewis@enlewis.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: export [7.8.11]
Date: Wed, 13 Jun 2012 16:09:57 +0100 [thread overview]
Message-ID: <87d353ckoq.fsf@ucl.ac.uk> (raw)
In-Reply-To: <DCF055BC3F0B420EA750A0E3AF6460B3@msxp> (Edward N. Lewis's message of "Mon, 11 Jun 2012 21:22:06 -0400")
"Edward N. Lewis" <ed.lewis@enlewis.com> writes:
> --text follows this line--
>
> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen. You don't know how to make a good report? See
>
> http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
> The export commands c-c c-e d (org-export-to-pdf-and-open) as well as
> c-c c-e h (org-export-to-html-and-open) do not work as expected.
> The former does generate a LaTeX and a pdf file as expected, but the pdf
> file does not spontaneously open. The latter does generate an html file as
> expected,
> but the html file does not spontaneously open.
I assume you meant C-c C-e b for the HTML case?
Anyway, you might check out
,----[ C-h v org-file-apps RET ]
| org-file-apps is a variable defined in `org.el'.
| Its value is ((auto-mode . emacs))
| Original value was
| ((auto-mode . emacs)
| ("\\.mm\\'" . default)
| ("\\.x?html?\\'" . default)
| ("\\.pdf\\'" . default))
|
|
| Documentation:
| External applications for opening `file:path' items in a document.
| Org-mode uses system defaults for different file types, but
| you can use this variable to set the application for a given file
| extension. The entries in this list are cons cells where the car identifies
| files and the cdr the corresponding command. Possible values for the
| file identifier are
| "string" A string as a file identifier can be interpreted in different
| ways, depending on its contents:
|
| - Alphanumeric characters only:
| Match links with this file extension.
| Example: ("pdf" . "evince %s")
| to open PDFs with evince.
|
| - Regular expression: Match links where the
| filename matches the regexp. If you want to
| use groups here, use shy groups.
|
| Example: ("\.x?html\'" . "firefox %s")
| ("\(?:xhtml\|html\)" . "firefox %s")
| to open *.html and *.xhtml with firefox.
|
| - Regular expression which contains (non-shy) groups:
| Match links where the whole link, including "::", and
| anything after that, matches the regexp.
| In a custom command string, %1, %2, etc. are replaced with
| the parts of the link that were matched by the groups.
| For backwards compatibility, if a command string is given
| that does not use any of the group matches, this case is
| handled identically to the second one (i.e. match against
| file name only).
| In a custom lisp form, you can access the group matches with
| (match-string n link).
|
| Example: ("\.pdf::\(\d+\)\'" . "evince -p %1 %s")
| to open [[file:document.pdf::5]] with evince at page 5.
|
| `directory' Matches a directory
| `remote' Matches a remote file, accessible through tramp or efs.
| Remote files most likely should be visited through Emacs
| because external applications cannot handle such paths.
| `auto-mode' Matches files that are matched by any entry in `auto-mode-alist',
| so all files Emacs knows how to handle. Using this with
| command `emacs' will open most files in Emacs. Beware that this
| will also open html files inside Emacs, unless you add
| ("html" . default) to the list as well.
| t Default for files not matched by any of the other options.
| `system' The system command to open files, like `open' on Windows
| and Mac OS X, and mailcap under GNU/Linux. This is the command
| that will be selected if you call `C-c C-o' with a double
| C-u C-u prefix.
|
| Possible values for the command are:
| `emacs' The file will be visited by the current Emacs process.
| `default' Use the default application for this file type, which is the
| association for t in the list, most likely in the system-specific
| part.
| This can be used to overrule an unwanted setting in the
| system-specific variable.
| `system' Use the system command for opening files, like "open".
| This command is specified by the entry whose car is `system'.
| Most likely, the system-specific version of this variable
| does define this command, but you can overrule/replace it
| here.
| string A command to be executed by a shell; %s will be replaced
| by the path to the file.
| sexp A Lisp form which will be evaluated. The file path will
| be available in the Lisp variable `file'.
| For more examples, see the system specific constants
| `org-file-apps-defaults-macosx'
| `org-file-apps-defaults-windowsnt'
| `org-file-apps-defaults-gnu'.
|
| You can customize this variable.
|
| [back]
`----
--
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.1.50.1 and Org release_7.8.11-69-ga2fd96
prev parent reply other threads:[~2012-06-13 16:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-12 1:22 Bug: export [7.8.11] Edward N. Lewis
2012-06-13 15:09 ` Eric S Fraga [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=87d353ckoq.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=ed.lewis@enlewis.com \
--cc=emacs-orgmode@gnu.org \
/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).