From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reuben Thomas Subject: Small bug in example code Date: Wed, 19 Mar 2014 20:57:08 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2c50858ffd604f4fbe5cd Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQNXy-0001xO-8t for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 16:57:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQNXx-00028y-By for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 16:57:10 -0400 Received: from mail-yh0-x22f.google.com ([2607:f8b0:4002:c01::22f]:62597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQNXx-00028r-6o for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 16:57:09 -0400 Received: by mail-yh0-f47.google.com with SMTP id 29so9213628yhl.6 for ; Wed, 19 Mar 2014 13:57:08 -0700 (PDT) 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: emacs-orgmode@gnu.org --001a11c2c50858ffd604f4fbe5cd Content-Type: text/plain; charset=ISO-8859-1 In the function org-toggle-iimage-in-org in the page http://orgmode.org/worg/org-configs/org-config-examples.html#sec-2_2 the call (iimage-mode) needs to be (iimage-mode 'toggle), otherwise iimage-mode is only ever switched on. (iimage-mode does toggle when used as a command, but not when called from Lisp.) -- http://rrt.sc3d.org --001a11c2c50858ffd604f4fbe5cd Content-Type: text/html; charset=ISO-8859-1
In the function org-toggle-iimage-in-org in the page

http://orgmode.org/worg/org-configs/org-config-examples.html#sec-2_2

the call (iimage-mode) needs to be (iimage-mode 'toggle), otherwise iimage-mode is only ever switched on. (iimage-mode does toggle when used as a command, but not when called from Lisp.)
--001a11c2c50858ffd604f4fbe5cd--