From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.help Subject: 29.3: enriched text SVG images Date: Fri, 28 Jun 2024 11:10:03 -0800 Message-ID: <871q4gkho4.fsf@librehacker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33961"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Mailing List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 28 21:12:08 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sNH0y-0008aW-ET for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Jun 2024 21:12:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNH0T-0005jW-M0; Fri, 28 Jun 2024 15:11:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNGzc-0005Y3-VJ for help-gnu-emacs@gnu.org; Fri, 28 Jun 2024 15:10:48 -0400 Original-Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNGzX-0008TZ-P6 for help-gnu-emacs@gnu.org; Fri, 28 Jun 2024 15:10:44 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 1A45E20D9E9E for ; Fri, 28 Jun 2024 21:10:28 +0200 (CEST) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20240523; t=1719601825; x=1721416226; bh=KW/XfLRzrbqHl/n5LCGc36q8AkX+kmbW6CWu5xCnONE=; b=KeSWz8AHuU5S 05xQ04IAmpf2vK+V5Mps8Ng4iahJ/omVx7zICiknGTIAsn2dJc6W8g2A/bHEiO0N mqGCteBCSbDEtUjZ6Z0mqr76g23c0OMlmUK9GIitzbw7tolggZag5f08GFZtf0V+ ZsiCrHWll97RLgiovdjCbRsh/88klyD926JzcqgPOih/Ltpwf5+41jE8YPeZpacT LhkmLsV8l1xIQ9BEBpZJ+FFzQlEPg7CHvjcirgf6X+ncQdkyTchiqr4CNdo3DidD f8eIAM/9j4nnaq9//ijC0/38cIBiPGKVJRRPZ1jr49cXgjId0FvwGLx+ySRi3PPQ zui/zgs0XQ== X-Virus-Scanned: amavis at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id TsLxgv2HRGpw for ; Fri, 28 Jun 2024 21:10:25 +0200 (CEST) Original-Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id B647F20D9E9D for ; Fri, 28 Jun 2024 21:10:24 +0200 (CEST) Original-Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id 64B64220F14D for ; Fri, 28 Jun 2024 21:10:24 +0200 (CEST) Received-SPF: none client-ip=212.103.80.155; envelope-from=christopher@librehacker.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147017 Archived-At: Hi, I wanted to submit this as a bug, but lately I keep getting in trouble = for submitting bugs and then realizing I read the documentation wrong... When I read the documentation for enriched-mode, I get the impression it is= possible to save images embedded in a text/enriched document. And indeed, = I can save an SVG image in the document. But for some reason when I open th= e document back up, the image is not displayed correctly. I tested that thi= s behaves the same if I use "emacs -q". M-x find-file ~/Scratch/enriched-test.txt M-x enriched-mode M-x eval-express (setq svg (svg-create 400 400)) M-x eval-express (svg-circle svg 200 200 50) M-x eval-express (insert-image (svg-image (svg-circle (svg-create 400 400 := stroke "orange" :stroke-width 5) 200 200 50))) [image is visible as expected] M-x eval-express (setq enriched-allow-eval-in-display-props t) [kill and reopen the buffer] Instead of the image, I see only a small empty square. If I find-file-liter= ally, I see that the image data is saved: ``` Content-Type: text/enriched Text-Width: 70 (image :type svg :data " " :scale 1.7009009009009008 :transform-smoothing t)circle ``` Here is my system information: ``` christopher@theoden=20 -------------------=20 OS: Guix System x86_64=20 Host: OptiPlex 9020 00=20 Kernel: 5.15.161-gnu=20 Uptime: 3 days, 2 hours, 39 mins=20 Packages: 167 (guix-system), 251 (guix-user)=20 Shell: bash 5.1.16=20 Resolution: 1920x1080=20 DE: GNOME=20 Theme: Adwaita [GTK2/3]=20 Icons: Adwaita [GTK2/3]=20 Terminal: shepherd=20 CPU: Intel i5-4570 (4) @ 3.600GHz=20 GPU: AMD ATI Radeon HD 8490 / R5 235X OEM=20 GPU: Intel HD Graphics=20 Memory: 4819MiB / 15914MiB=20 ``` ``` guix show emacs name: emacs version: 29.3 outputs: + out: everything systems: x86_64-linux dependencies: acl@2.3.1 alsa-lib@1.2.4 autoconf@2.69 bash-minimal@5.1.16 bi= nutils@2.38 cairo@1.18.0 + coreutils@9.1 dbus@1.15.8 elogind@252.9 findutils@4.9.0 gawk@5.2.1 ghosts= cript@9.56.1 giflib@5.2.1 glibc@2.35 + gnutls@3.7.7 gpm@1.20.7 gtk+@3.24.41 gzip@1.12 harfbuzz@8.3.0 jansson@2.1= 4 lcms@2.13.1 ld-wrapper@0 + libgccjit@10.5.0 libice@1.0.10 libjpeg-turbo@2.1.4 libotf@0.9.16 libpng@1= .6.37 librsvg@2.56.4 libselinux@3.4 + libsm@1.2.3 libtiff@4.4.0 libx11@1.8.7 libxft@2.3.4 libxml2@2.9.14 libxpm= @3.5.17 m17n-lib@1.8.0 + mailutils@3.17 ncurses@6.2.20210619 pango@1.50.14 pkg-config@0.29.2 poppl= er@22.09.0 sed@4.8 sqlite@3.39.3 + texinfo@6.8 tree-sitter@0.20.10 zlib@1.2.13 location: gnu/packages/emacs.scm:445:2 homepage: https://www.gnu.org/software/emacs/ license: GPL 3+ synopsis: The extensible, customizable, self-documenting text editor=20=20 description: GNU Emacs is an extensible and highly customizable text editor= . It is based on an Emacs Lisp + interpreter with extensions for text editing. Emacs has been extended in= essentially all areas of computing, + giving rise to a vast array of packages supporting, e.g., email, IRC and = XMPP messaging, spreadsheets, remote + server editing, and much more. Emacs includes extensive documentation on= all aspects of the system, from + basic editing to writing large Lisp programs. It has full Unicode suppor= t for nearly all human languages. ``` --=20 =F0=9F=93=9B Christopher Howard =F0=9F=9A=80 gemini://gem.librehacker.com =F0=9F=8C=90 http://gem.librehacker.com =D7=91=D7=A8=D7=90=D7=A9=D7=99=D7=AA =D7=91=D7=A8=D7=90 =D7=90=D7=9C=D7=94= =D7=99=D7=9D =D7=90=D7=AA =D7=94=D7=A9=D7=9E=D7=99=D7=9D =D7=95=D7=90=D7=AA= =D7=94=D7=90=D7=A8=D7=A5