unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Delete multiple repositories programmatically from elisp by supplying `y' as the answer to an interactively called function.
@ 2021-12-07 13:16 Hongyi Zhao
  2021-12-07 17:05 ` Robert Pluim
  2021-12-07 22:20 ` Michael Heerdegen
  0 siblings, 2 replies; 13+ messages in thread
From: Hongyi Zhao @ 2021-12-07 13:16 UTC (permalink / raw)
  To: help-gnu-emacs

The straight package manager [1] supplies the following interactive
function, which can be used to delete the unused repositories:
straight-remove-unused-repos. As we all know, the normal way to call
this function is `M-x straight-remove-unused-repos RET package-name
RET`. However, the above method can only delete one repository at a
time. If I have many unused repositories that I want to clean up now,
this method is very inefficient.

In order to achieve a more efficient way, I want to loop over the
following command programmatically from elisp, and supply `y' as the
answer repeatedly:

(call-interactively #'straight-remove-unused-repos)

But I still can't figure out the code snippet for doing the above
work. Any hints will be greatly appreciated.

[1] https://github.com/raxod502/straight.el

Regards,
HZ



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-12-08 10:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-07 13:16 Delete multiple repositories programmatically from elisp by supplying `y' as the answer to an interactively called function Hongyi Zhao
2021-12-07 17:05 ` Robert Pluim
2021-12-07 19:14   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-08  9:41     ` Robert Pluim
2021-12-08 10:47       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-07 23:35   ` Hongyi Zhao
2021-12-08  2:56   ` Hongyi Zhao
2021-12-08  3:15     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-08  3:45       ` Hongyi Zhao
2021-12-08  9:07     ` Robert Pluim
2021-12-08  9:13       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-07 22:20 ` Michael Heerdegen
2021-12-07 23:49   ` Hongyi Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).