From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dan Hitt Newsgroups: gmane.emacs.help Subject: Re: want a file format easily edited and read by emacs that allows (multiple) pictures to be included Date: Mon, 4 Dec 2017 12:35:13 -0800 Message-ID: References: <87tvx99t3y.fsf@gmail.com> <87indo7s7o.fsf@mbork.pl> <87d13u7qvo.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1512419746 23952 195.159.176.226 (4 Dec 2017 20:35:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2017 20:35:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 04 21:35:42 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLxSm-0005oR-JS for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Dec 2017 21:35:40 +0100 Original-Received: from localhost ([::1]:45102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLxSq-0001rr-Qs for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Dec 2017 15:35:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLxSN-0001q6-TS for help-gnu-emacs@gnu.org; Mon, 04 Dec 2017 15:35:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLxSM-0000vK-Of for help-gnu-emacs@gnu.org; Mon, 04 Dec 2017 15:35:15 -0500 Original-Received: from mail-ot0-x232.google.com ([2607:f8b0:4003:c0f::232]:41052) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLxSM-0000u7-Ic for help-gnu-emacs@gnu.org; Mon, 04 Dec 2017 15:35:14 -0500 Original-Received: by mail-ot0-x232.google.com with SMTP id b54so15918862otd.8 for ; Mon, 04 Dec 2017 12:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zHFt2uz2G7+R1IMInh6fUMCW8P3a3SZk+0xJZl6YDME=; b=QjWP6Re1RntuqtR40Ex/XhDSdHJI59ZJHVIJmI+At18neKhcakqcdrOm38CMgkVWXT ieaV7xJwx12wMYoBBXdeKUcJWnMj9wFrxtLXR4OrfqjbdDbTMmazUYX7BjtqHHrGcnpp d2RECB1wbiPbntwEXfjZFDvJqT+UVazEYuvVQ41wckUA1OLElIbpleMzKtm9O30IzDxR kkoU6XgmIWZel8L+krYcALFGREoFiDjRQ8q6PGWGUZkCutzIRRcs2ilMYhCEZQgAJsfb hX+nqnkQEkKagnJDblKW8avyxN/hbqqrbTVi9CPTlg48mEZiA5S3LQ9v6QRAs5RsSH1M l6lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zHFt2uz2G7+R1IMInh6fUMCW8P3a3SZk+0xJZl6YDME=; b=O7FXhYQadYi+0T/iYHSr2pozrI5WlYe/gwBRf6k1bAcMqrGS/S8ScLLkcP4pOPKo34 /jX+raC7Cdf8oMbyJK8k8aYHyQN2kxVABrAJpCg5v7zqfxg88O+aHylwy+INwLR4PLSr KFZwVTCF6Nsl3tgQsYPEVjYn4ZbF/GHzEUHxX+RtrkUp2cegPLszfcHaWSIksGMakc7L Kkyh+19+pBPk/nNDOW4LBzqeE44txPWX+PBKgzWRhdVL4WwC22EsBWKxh678nGdkl10t Lkpn1Sv1uRaU7G9oh7Hu0hzlIwGhRIrnPUD0AWgh11oITgNhettAwnhjX7cCehElR1AU 2gxg== X-Gm-Message-State: AJaThX7s+1YL6+q8lamTCHE5Q9oMP8Z6KfxNsw0wPlya5JcPSM/HXmj5 QSJV82E2aYpEwy+4HcMWgXKAVjDokRLdnPpIE5blyA== X-Google-Smtp-Source: AGs4zMYYzIGljo2orTjqB7alwbAs9V/G+yIksPCaQqQepzUErx4Tt83PYutNkGYq0uKsq2YacV5izeN1LzXYUDOHe/k= X-Received: by 10.157.14.145 with SMTP id 17mr16885418otj.20.1512419713648; Mon, 04 Dec 2017 12:35:13 -0800 (PST) Original-Received: by 10.74.92.140 with HTTP; Mon, 4 Dec 2017 12:35:13 -0800 (PST) In-Reply-To: <87d13u7qvo.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115190 Archived-At: On Mon, Dec 4, 2017 at 2:02 AM, Marcin Borkowski wrote: > > On 2017-12-02, at 22:08, Marcin Borkowski wrote: > >> On 2017-12-02, at 21:31, Dan Hitt wrote: >> >>> The one aspect of org mode (or html) that is a sort of problem is that >>> the images it shows cannot exist in the file itself, but rather float >>> in the file system (or presumably served remotely over http). >>> >>> The problem here is breakage. The image can get renamed or deleted, >>> and then the file.org is broken. >>> >>> That's why i would like something where the image is copied directly >>> into the file. >> >> I'm pretty sure you could embed the image in some kind of a source >> block, so that after executing it, the image file would appear in the >> current directory. I could try to make a proof of concept tomorrow if >> you're interested. > > OK, so here's my (quite simplistic, but apparently working well enough) > solution: > > http://mbork.pl/2017-12-04_Embedding_files_in_Org-mode > > Hth, > > -- > Marcin Borkowski Awesome! Thanks Marcin! So i can archive my image right in my org file, and if it gets lost, it can be recreated by running the code that M-xorg-insert-file created. And it works on my system. :) dan