Add support for pkgdev and pkgcheck, similar to ebuild-run-command.
I have not tried, but maybe we could just use "shell-command" with the path of the current buffer or the current file respectively? Maybe this should just be a wiki entry instead of adding that into ebuild-mode?
Here is what I have so far. It's not very complicated. https://gitweb.gentoo.org/proj/ebuild-mode.git/commit/?h=pkgdev (Currently waiting for NOCOLOR=true support in pkgdev.)
Hm this bears a problem. For example when pushing to the GURU I have to use pkgdev push -A because pkgdev is checking all the commits since the last merge from dev branch into master. If there are any QA issues (and there usually are) pkgdev refuses to push without -A flag. Can we have the possibility to add arguments to those commands? I don’t know how much work it is but magit does that splendidly. We also need pkgdev commit -s -S all the time, but I think this could be solved by putting that into the config of pkgdev.
(In reply to Pascal Jäger from comment #3) I don't understand. What prevents you from simply typing these arguments in the minibuffer?
Lol I didn’t now I can do that. I thought I can only choose from the list…
(In reply to Ulrich Müller from comment #2) > Here is what I have so far. It's not very complicated. > https://gitweb.gentoo.org/proj/ebuild-mode.git/commit/?h=pkgdev > > (Currently waiting for NOCOLOR=true support in pkgdev.) Landed in master: https://github.com/pkgcore/pkgdev/commit/9714e4785e1ffc56a08f042011b5a966c7520a1f.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/ebuild-mode.git/commit/?id=40f60b88e7517f418c5b528128b1106b5b07cf96 commit 40f60b88e7517f418c5b528128b1106b5b07cf96 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2022-11-19 14:13:19 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2022-11-28 18:08:42 +0000 Support pkgdev and pkgcheck * ebuild-mode.el (ebuild-mode-run-pkgdev) (ebuild-mode-run-pkgcheck): New commands. Bug 881449. (ebuild-mode-map, ebuild-mode-menu): Keybindings and menu entries for them. (ebuild-mode-pkgdev-commands, ebuild-mode-pkgcheck-commands): New variables. (ebuild-mode-get-completion-function): New function, split off from ebuild-mode-ekeyword-complete. (ebuild-mode-ekeyword-complete): Call it. (ebuild-mode-command-complete): New function. Bug: https://bugs.gentoo.org/881449 Signed-off-by: Ulrich Müller <ulm@gentoo.org> ChangeLog | 13 ++++++++++ ebuild-mode.el | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 84 insertions(+), 9 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/ebuild-mode.git/commit/?id=349a9450cb1fd4d2404fb48ade3192cc10899a1d commit 349a9450cb1fd4d2404fb48ade3192cc10899a1d Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2022-11-19 14:13:19 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2022-11-29 19:30:17 +0000 Support pkgdev and pkgcheck * ebuild-mode.el (ebuild-mode-run-pkgdev) (ebuild-mode-run-pkgcheck): New commands. Bug 881449. (ebuild-mode-map, ebuild-mode-menu): Keybindings and menu entries for them. (ebuild-mode-pkgdev-commands, ebuild-mode-pkgcheck-commands): New variables. (ebuild-mode-get-completion-function): New function, split off from ebuild-mode-ekeyword-complete. (ebuild-mode-ekeyword-complete): Call it. (ebuild-mode-command-complete): New function. Bug: https://bugs.gentoo.org/881449 Signed-off-by: Ulrich Müller <ulm@gentoo.org> ChangeLog | 13 ++++++++++ ebuild-mode.el | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 84 insertions(+), 9 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb1896c3847ea94c478b92d1195fda6e3b266a0c commit fb1896c3847ea94c478b92d1195fda6e3b266a0c Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2022-12-01 18:33:48 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2022-12-01 18:36:41 +0000 app-emacs/ebuild-mode: add 1.61 Closes: https://bugs.gentoo.org/881449 Closes: https://bugs.gentoo.org/882053 Closes: https://bugs.gentoo.org/882055 Signed-off-by: Ulrich Müller <ulm@gentoo.org> app-emacs/ebuild-mode/Manifest | 1 + app-emacs/ebuild-mode/ebuild-mode-1.61.ebuild | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+)