Questions tagged [widget]
The widget tag has no summary.
28 questions
0 votes
1 answer
43 views
Providing a feature doesn't load function definitions from its file
I have a file as: .... (require 'widget) .... (ert-deftest my-test () .... (widget-convert type) ...) .... I loaded the file with (load-file (buffer-file-name)) and no error. But when run tests ...
0 votes
1 answer
58 views
How to replace an image in a widget
I made a program for drawing graphs function but I don't know how to replace the image when drawing again (defun eilmc-infix-plot () "" (interactive) (switch-to-buffer "*Function ...
1 vote
0 answers
160 views
How to compile emacs with xwidgets under windows MSYS2?
I am using MSYS2 MINGW64, when I try to run the ..\configure command, with amongst other options the --with-xwidgets option, when running the command I get the following error: "configure: error: ...
1 vote
1 answer
57 views
Create editable-list widget with two fields
I'm trying to modify the editable-list widget so that each entry has two slots, one for an account name, the second for an amount. Here's a mock-up of what I'm after visually (made with GIMP): I'm ...
1 vote
1 answer
80 views
avoid newlines after menu-choice widget and/or after %v
I'm using menu-choice elisp widgets, and I find that a newline is inserted after each one, unlike say an editable-field widget. I would like to place multiple menu-choice widgets side-by-side (like a ...
0 votes
1 answer
133 views
Local map of xwidget-webkit-mode?
In xwidget-webkit-mode, the command M-x local-set-key RET S-<right> windmove-right RET has no effect — the key continues to be bound to xwidget-webkit-pass-command-event. Also, M-x local-unset-...
0 votes
0 answers
62 views
Emacs widgets: editing problems with integer widget
If I try to set up a buffer with just one integer widget, I have a very hard time editing the field. The initial value seems stuck there and, if I try to edit it away I get a End of file during ...
0 votes
1 answer
147 views
How to add choice-items to a menu-choice widget through code?
Looking up information from an Active Directory, I want to populate a form. Generally that works fine with editable-fields, since all one has to do is to add the value, which Emacs has a function for ...
0 votes
0 answers
139 views
Is there a way to create a emacs shotcut that runs a specific terminal command before opening emacs?
a friend of mine recomended that I use a program called obsidian to make notes,and I quite liked the idea, but i didn't like the program. I have been searching and it seeams to me that org-roam in ...
0 votes
1 answer
75 views
Prepend custom field names when inserting a multi-list widget
I am trying to resolve a related question relating to creating a simple form to input and return various fields: How to pop open a forms template to enter multiple values To that end, I defined a ...
0 votes
0 answers
58 views
About input fields in a buffer
I've been perusing forms.el trying to find out how would one go about having a text input field in a buffer that can be edited, without any luck. I'm completely missing the part where the field is ...
1 vote
1 answer
398 views
When compiling Emacs on RHEL8 should I better bind to GTK3 or GTK2?
I am compiling Emacs 27.1 on a RHEL8 Linux box. This RHEL system is a remote system I log in from my Windows machine using MobaXterm (Personal Edition V12.1) on the Windows machine as X server. On ...
0 votes
0 answers
45 views
Widgets: How to notify on exiting "editable-field"
This is a follow-up on Creating buttons/input fields. I learned that forms (or rather its elements) in Emacs are called widgets and I am now experimenting on how I can get the best result for what I ...
0 votes
1 answer
204 views
How to use unicode for the checkbox in customize buffers (**not** in org mode)?
I'm trying to modify the appearance of customize buffers. I managed to modify the button but I did not find how to change the appearance of the checkbox nor the dropdown indicator (▽). Ideally I would ...
3 votes
2 answers
138 views
A custom type specification like “repeat,” but when there’s only one item, it’s inline
So, I’m trying to add Customize support to packages that use a lot of plists, and where the value of pretty much any option can be either a single item or a list. I could have every single plist ...