Skip to main content

Questions tagged [widget]

The tag has no usage guidance.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
58 views

How to translate between custom choice type and widget items?

I have a custom variable (defcustom myvar .... :type '(choice (const :tag "foo" 1) ...)) and I need to map it to (widget-create ... '(item :tag "foo" :value 1) ...) ...
sds's user avatar
  • 6,214
2 votes
2 answers
305 views

Choosing files and directories from widgets

I'm looking for the most convenient way to set up a Customize options page to enter a set of directories and then select one of those directories and one file in the selected directory (if possible, ...
Lorenzo Gatti's user avatar
1 vote
0 answers
52 views

Customize-like form

I'd like to create a form, like the one displayed by customize, in order to ask to the user some information. The form should let me provide a description, a default value, and eventually display a ...
tobiasBora's user avatar
1 vote
0 answers
59 views

'editable-field' widget is not playing nice with `widget-value-set'

When I evaluate the following form, (defun magithub-issue-form () (interactive) (with-current-buffer (generate-new-buffer "*magithub issue*") (switch-to-buffer-other-window (current-buffer)) ...
Sean Allred's user avatar
  • 7,051
1 vote
0 answers
120 views

Emacs link widget gives the error "gui-get-primary-selection: No selection is available"

I am reading the The Emacs Widget Library. The library describes the widget properties in general and not per widget. So I'd like some more insights about the link widget properties and use. :notify ...
antonio's user avatar
  • 1,832
0 votes
1 answer
93 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-...
toomas's user avatar
  • 183
0 votes
0 answers
45 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 ...
Marco Antoniotti's user avatar
0 votes
0 answers
118 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 ...
user38135's user avatar
0 votes
0 answers
45 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 ...
Eduardo's user avatar
0 votes
0 answers
25 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 ...
Phoenix's user avatar
  • 361
0 votes
0 answers
116 views

In a buffer with widgets how can I find out what function is called on a (link) widget

In a buffer with widgets how can I find out what functions widgets call? Let's say I position the cursor on a widget, I execute M-x widget-browse-at and know now that the widget is of class "link". ...
halloleo's user avatar
  • 1,405