From: Jean Louis <bugs@gnu.support>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: How to create SVG image as clickable button?
Date: Sat, 24 Sep 2022 08:26:17 +0300 [thread overview]
Message-ID: <courier.00000000632E952B.00002333@stw1.rcdrun.com> (raw)
I would like to generate various buffers with menus of clickable
images.
I see that SVG is not recognized as image.
(insert-image "/home/data1/protected/Programming/git/haiku-icons/svg/Action_GoBack_3_Large.svg")
Debugger entered--Lisp error: (error "Not an image: /home/data1/protected/Programming/git/haiku-icons/svg/Action_GoBack_3_Large.svg")
signal(error ("Not an image: /home/data1/protected/Programming/gi..."))
error("Not an image: %s" "/home/data1/protected/Programming/git/haiku-icons/...")
insert-image("/home/data1/protected/Programming/git/haiku-icons/...")
Even if not, I would like to be able to insert images and make them
clickable button.
Is there any working example anywhere?
I make buttons anywhere, but not as image.
This is my failed attempt:
(insert-button "Image"
'display '(image . (:file "/home/data1/protected/Programming/git/haiku-icons/svg/Action_GoBack_3_Large.svg")))
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next reply other threads:[~2022-09-24 5:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-24 5:26 Jean Louis [this message]
2022-09-24 21:46 ` How to create SVG image as clickable button? Jean Louis
2022-09-25 9:01 ` Felix Dietrich
2022-09-25 11:07 ` Jean Louis
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=courier.00000000632E952B.00002333@stw1.rcdrun.com \
--to=bugs@gnu.support \
--cc=help-gnu-emacs@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.
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).