Buttons are not clickable in side windows
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 44/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- desktop
Research direction
The issue provides a reproduction using lem:make-rightside-window and lem/button:insert-button, but names no implementation files or tests. Start by tracing how button clicks are handled in side windows and compare that path with a regular buffer. Done means the callback runs when the button in the side window is clicked.
Written by the indexing model from the issue text.
Description
The following test code creates a button in a side window. The callback is not run in the side window when I click the button. When I dump the button in directly into the buffer, it works as expected.
(defun side-window ()
(let ((buf (lem:make-buffer "*tmp*")))
(lem:make-rightside-window buf)
(lem:with-current-buffer buf
(lem/button:insert-button (lem:current-point)
"test button"
(lambda () (lem:message "this is a test"))))))
(defun regular-buffer ()
(lem/button:insert-button (lem:current-point)
"test button"
(lambda () (lem:message "this is a test"))))
(side-window)
(regular-buffer)
test button
- Dominant language
- Common Lisp
- Stars
- 3.1k
- Forks
- 261
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 133
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lem-project/lem
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
lem-project/lem#2525 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
lem-project/lem#2524 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
lem-project/lem#2488 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
lem-project/lem#2369 ·
Maintainers usually reply within 1 day
-
unix-paste-bugOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lem-project/lem#2360 ·
Maintainers usually reply within 1 day
Similar issues
-
in-progress
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
s1dashu/quiet-md#572 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
flathub/org.ardour.Ardour#89 ·