unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63411: 29.0.90; pcomplete/systemctl cannot complete units for old versions of systemd
@ 2023-05-10  9:47 Liu Hui
  2023-05-17  8:53 ` bug#63411: [PATCH] " Liu Hui
  0 siblings, 1 reply; 7+ messages in thread
From: Liu Hui @ 2023-05-10  9:47 UTC (permalink / raw)
  To: 63411

Hi,

It is very convenient that Emacs 29 supports eshell completion for
systemctl, but I find units cannot be completed on Ubuntu 20.04 LTS:

1. emacs -Q
2. M-x eshell
3. type "systemctl stop ", and press TAB

There is no completion for units.

The reason is that 'pcmpl-linux--systemd-units' uses a new option
'--legend=no' that is introduced since Feb 18, 2021[1], and the option
cannot be recognized by systemd v245 on my system. Since the old
option '--no-legend' is still kept for compatibility[2], I suggest we
can just replace '--legend=no' with '--no-legend' to make systemctl
completion works for old systems.

[1] https://github.com/systemd/systemd/pull/18596
[2] https://github.com/systemd/systemd/blob/main/src/systemctl/systemctl.c#L485

Best,
Liu Hui





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

end of thread, other threads:[~2023-05-20 15:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-10  9:47 bug#63411: 29.0.90; pcomplete/systemctl cannot complete units for old versions of systemd Liu Hui
2023-05-17  8:53 ` bug#63411: [PATCH] " Liu Hui
2023-05-18 10:40   ` Eli Zaretskii
2023-05-18 13:29     ` Liu Hui
2023-05-18 14:16       ` Eli Zaretskii
2023-05-18 18:57         ` Jim Porter
2023-05-20 15:02           ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).