1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
From: Mohammed Sadiq <sadiq@sadiqpk.org>
Date: Wed, 30 Nov 2022 16:19:08 +0530
Subject: plugins: Fix GNU Emacs plugin
`start-process-shell-command` is supposed to have the command string as
the third argument. The old convention has been removed since GNU Emacs 28
(cherry picked from commit 65263db8386f769bfb177d03f7aac418898f4dbb)
---
plugins/devhelp.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/devhelp.el b/plugins/devhelp.el
index 2924df0..ca13bc6 100644
--- a/plugins/devhelp.el
+++ b/plugins/devhelp.el
@@ -4,14 +4,14 @@
(defun devhelp-word-at-point ()
"Searches for the current word in Devhelp"
(interactive)
- (start-process-shell-command "devhelp" nil "devhelp" "-s" (current-word))
+ (start-process-shell-command "devhelp" nil (concat "devhelp -s " (current-word)))
(set-process-query-on-exit-flag (get-process "devhelp") nil)
)
(defun devhelp-assistant-word-at-point ()
"Searches for the current work in the Devhelp assistant"
(interactive)
(setq w (current-word))
- (start-process-shell-command "devhelp" nil "devhelp" "-a" w)
+ (start-process-shell-command "devhelp" nil (concat "devhelp -s " w))
(set-process-query-on-exit-flag (get-process "devhelp") nil)
)
|