Timeline for How to build an Elisp function that shows a table in a new window?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 21, 2021 at 7:32 | comment | added | crocefisso | Perfect! Thank you! | |
Dec 21, 2021 at 7:26 | vote | accept | crocefisso | ||
Dec 21, 2021 at 2:30 | comment | added | c_48 |
As for a list of completion candidates, I think you'll find something that works with completing-read . See if this answer emacs.stackexchange.com/a/32251 or reading through M-x describe-function RET completing-read gets you in the right direction.
|
|
Dec 21, 2021 at 1:53 | history | edited | c_48 | CC BY-SA 4.0 |
Added interactive prompt for table name
|
Dec 21, 2021 at 1:49 | comment | added | c_48 |
To make the function appear with M-x display-custom-help-buffer , you'll need to add (interactive) on the line above (with-temp-buffer ... To prompt for a table name to display, include something like (interactive "sHelp table to display: ") . The input will then become the help-type variable.
|
|
Dec 20, 2021 at 23:55 | comment | added | crocefisso |
Would it be possible to have a command prompting for table name (with table list available through TAB ) and opening the window once table name is inserted?
|
|
Dec 20, 2021 at 23:51 | comment | added | crocefisso |
Thank you @c_48, your function did the trick. I managed to customize display-buffer in order to have the new window on top instead of right. However, I am not able to make the function appear with M-x
|
|
Dec 20, 2021 at 6:34 | history | answered | c_48 | CC BY-SA 4.0 |