Skip to main content
8 events
when toggle format what by license comment
Aug 31, 2024 at 12:59 comment added crocefisso Indeed the accepted answer answers the question. However, I discovered that in the use case mentioned in the question, there isn't a specific command triggered by the click. Hence the necessity of creating such a function. Everything is clear on my side.
Aug 31, 2024 at 12:55 comment added NickD The question you really asked is: Is there a way to know which command is triggered by a click on a button? and the answer is C-h k. You might have meant to ask a different question, but you did not. So, IMO, no, this does not answer the "specific issue" raised by your question: the accepted answer does . If you think there is more to discuss, please ask a new question (e.g. based on your comment about not using the mouse which is a perfectly reasonable question - the answer to that might involve explaining how you came up with that code).
Aug 31, 2024 at 12:42 comment added crocefisso I added this answer because it answers the specific issue raised by my question. But I accepted the other because it answered the generic question I asked.
Aug 31, 2024 at 12:38 comment added crocefisso This function exactly does what clicking on clear does. And I think that none of notmuch functions does what clicking on clear does. I prefer avoiding using the mouse so I'll use a key associated with this function instead of clicking on clear.
Aug 31, 2024 at 12:34 comment added NickD I was wondering why you would want to have this function. What are you going to do with it? It doesn't seem to be related to the question, it is not necessary for clicking the [clear] button, so it's not clear to me how/where/why you are going to use it. I'm basically asking what is the use case?
Aug 31, 2024 at 12:27 comment added NickD Why do you want to do this?
Aug 31, 2024 at 12:19 history edited crocefisso CC BY-SA 4.0
added 6 characters in body
Aug 31, 2024 at 12:12 history answered crocefisso CC BY-SA 4.0