Timeline for call write-file interactively with prompting
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 8:27 | history | edited | CommunityBot |
Commonmark migration
|
|
Apr 6, 2020 at 8:20 | comment | added | phils |
@DidierA. A KEYS value would typically be a vector of integers and/or symbols. E.g. [3 118] (for the key sequence C-c v ). See C-h i g (elisp) Input Events for details.
|
|
Apr 6, 2020 at 5:35 | comment | added | Didier A. | What is a series of keys events? | |
Mar 19, 2018 at 1:54 | comment | added | phils |
I'm honestly a bit perplexed as to how/where you got the impression that you could do what you were attempting. I'm assuming it was just a guess on your part, in which case I highly recommend that you get into the habit of using C-h f to read the documentation of a function and learn what its arguments are for.
|
|
Mar 19, 2018 at 1:49 | comment | added | phils |
Yes, the point is that you can't use the call-interactively arguments to pass arguments to the command being called. That's not what they are for (as is indicated by the docstring I've quoted, which explains what they are for). The whole point of call-interactively is that the command arguments are not passed directly, but instead obtained via the command's own interactive spec.
|
|
Mar 19, 2018 at 0:52 | comment | added | user1404316 |
Thanks. I just now went back and tried another series of evaluations, but don't really understand how to use a vector of key events to pass a mandatory argument to a function that is evaluated using called-interactively , my example being function write-file . This kind of case (a function with a mandatory argument) doesn't seem like one that the emacs developers would have overlooked, so I'm still missing something fundamental.
|
|
Mar 19, 2018 at 0:07 | history | answered | phils | CC BY-SA 3.0 |