From: Rick Frankel <rick@rickster.com>
To: Org-Mode <emacs-orgmode@gnu.org>
Subject: [Bug] org-startup-with-inline-images
Date: Tue, 30 Apr 2013 13:39:28 -0400 [thread overview]
Message-ID: <23e22687eaae8dff1bfd56306ef41b17@mail.rickster.com> (raw)
`org-startup-with-inline-images' is a customizable variable. The
problem is that if an org file is visited in a non-graphics buffer (or
batch), `org-display-inline-images' is called an throws an error
("Non-X frame used").
This problem also occurs when e.g., `org-babel-after-execute-hook' is
set to 'org-display-inline-images (which can be mitigated by not
setting the hook in a non-x frame).
Since the startup variable is a customization, and causes problems if
not set programatically, IMHO, the best solution would be to wrap the
`org-display-inline-images' function in a test so that is is a no-op
on non graphic displays:
(defun org-display-inline-images (&optional include-linked refresh
beg end)
"..."
(interactive "P")
(when (display-graphic-p)
^^^^^^^^^^^^^^^^^^^^^^^^
[...])
rick
next reply other threads:[~2013-04-30 17:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 17:39 Rick Frankel [this message]
2013-05-01 17:28 ` [Bug] org-startup-with-inline-images Daimrod
2013-05-01 17:42 ` Rick Frankel
2013-05-02 8:09 ` Daimrod
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=23e22687eaae8dff1bfd56306ef41b17@mail.rickster.com \
--to=rick@rickster.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).