From: Carsten Dominik <carsten.dominik@gmail.com>
To: Russell Adams <RLAdams@AdamsInfoServ.Com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Display inline images patch
Date: Tue, 1 Jun 2010 15:36:59 +0200 [thread overview]
Message-ID: <F4643210-B80A-4B9F-9BD5-3EEA4F26994A@gmail.com> (raw)
In-Reply-To: <20100531193031.GH2731@thinkpad.adamsinfoserv.com>
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
next prev parent reply other threads:[~2010-06-01 13:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-31 19:30 Display inline images patch Russell Adams
2010-06-01 13:36 ` Carsten Dominik [this message]
2010-06-09 14:17 ` Colin Fraizer
2010-06-10 22:59 ` Gregory J. Grubbs
2010-06-16 14:29 ` Bastien
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=F4643210-B80A-4B9F-9BD5-3EEA4F26994A@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=RLAdams@AdamsInfoServ.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).