I'm using some buttons, and want to arrange them in a row. That is, some will be directly next to each other. I don't want whitespace between them. This is easy enough to do:
However, when I do this, mousing over either of them highlights both. I would expect only the moused-over button to be highlighted.
Using this code:
(progn (insert ?\n) (insert-text-button "one") (insert " ") (insert-text-button "two") (insert " ") (insert-text-button "three") (insert-text-button "four"))
Here is a screenshot of what happens when I mouse over a button with whitespace after it. Notice that only "one" is highlighted.
And here is a screenshot of what happens when I mouse over a button with a button immediately after it. It highlights the button "three", which is expected, but also the button "four", which is not.
How can I make Emacs only highlight "three", the button being moused over?