From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Colin Fraizer" Subject: RE: Display inline images patch Date: Wed, 9 Jun 2010 10:17:20 -0400 Message-ID: <029e01cb07de$79d75380$6d85fa80$@com> References: <20100531193031.GH2731@thinkpad.adamsinfoserv.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=58329 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMM5u-0004jM-Py for emacs-orgmode@gnu.org; Wed, 09 Jun 2010 10:17:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMM5t-0002Uu-D4 for emacs-orgmode@gnu.org; Wed, 09 Jun 2010 10:17:26 -0400 Received: from caiajhbdcbbj.dreamhost.com ([208.97.132.119]:54699 helo=postalmail-a2.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMM5t-0002Ud-65 for emacs-orgmode@gnu.org; Wed, 09 Jun 2010 10:17:25 -0400 In-Reply-To: Content-Language: en-us List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: 'Carsten Dominik' , 'Russell Adams' Cc: 'emacs-orgmode' I use org-mode on Windows 7. It seems that the regexp for image files excludes the ":" (colon) character. Could it be added to this: "[-+./_0-9a-zA-Z]+" to make this "[-+./:_0-9a-zA-Z]+" ? -----Original Message----- From: emacs-orgmode-bounces+orgmode=cfraizer.com@gnu.org [mailto:emacs-orgmode-bounces+orgmode=cfraizer.com@gnu.org] On Behalf Of Carsten Dominik Sent: Tuesday, June 01, 2010 9:37 AM To: Russell Adams Cc: emacs-orgmode Subject: Re: [Orgmode] Display inline images patch Hi Russel, looks like you are not running the latest version, I think this is already fixed.... - Carsten On May 31, 2010, at 9:30 PM, Russell Adams wrote: > I got irritated by my point jumping to the end of the buffer every > time I toggled inline image display, so lets save excursion. ;] > > $ diff -Narub org.el~ org.el > --- org.el~ 2010-05-20 10:12:45.000000000 -0500 > +++ org.el 2010-05-31 14:28:21.000000000 -0500 > @@ -15489,6 +15489,7 @@ > is how it will work for export. When INCLUDE-LINKED is set, also > links > with a description part will be inlined." > (interactive "P") > + (save-excursion > (org-remove-inline-images) > (goto-char (point-min)) > (let ((re (concat "\\[\\[\\(file:\\|\\./\\)\\(~?" > "[-+./_0-9a-zA-Z]+" > @@ -15501,7 +15502,7 @@ > (setq ov (make-overlay (match-beginning 0) (match-end 0))) > (overlay-put ov 'display (create-image file)) > (overlay-put ov 'face 'default) > - (push ov org-inline-image-overlays))))) > + (push ov org-inline-image-overlays)))))) > > (defun org-remove-inline-images () > "Remove inline display of images." > > > > > > > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode