From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63411: [PATCH] pcomplete/systemctl cannot complete units for old versions of systemd Date: Thu, 18 May 2023 17:16:16 +0300 Message-ID: <83pm6xvi6n.fsf@gnu.org> References: <83edndx6qq.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17446"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63411@debbugs.gnu.org To: Liu Hui Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 18 16:17:13 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pzeRN-0004JF-Ej for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 May 2023 16:17:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzeRE-0000pJ-An; Thu, 18 May 2023 10:17:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzeRC-0000mp-UZ for bug-gnu-emacs@gnu.org; Thu, 18 May 2023 10:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pzeRC-0006S9-Lu for bug-gnu-emacs@gnu.org; Thu, 18 May 2023 10:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pzeRC-0003Sx-GP for bug-gnu-emacs@gnu.org; Thu, 18 May 2023 10:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 May 2023 14:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63411 X-GNU-PR-Package: emacs Original-Received: via spool by 63411-submit@debbugs.gnu.org id=B63411.168441937413256 (code B ref 63411); Thu, 18 May 2023 14:17:02 +0000 Original-Received: (at 63411) by debbugs.gnu.org; 18 May 2023 14:16:14 +0000 Original-Received: from localhost ([127.0.0.1]:53987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzeQQ-0003Rk-EN for submit@debbugs.gnu.org; Thu, 18 May 2023 10:16:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzeQO-0003RV-BF for 63411@debbugs.gnu.org; Thu, 18 May 2023 10:16:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzeQI-0006Gq-PS; Thu, 18 May 2023 10:16:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Dx6NogShAOZ+fF7/yE+hn4LxqQSwXd6clTQa0yK6INo=; b=nOdt0/hWp6X6 23+qwr7Yx+09KKggDVSIkBXtnoHLpzNUSB0UfJiMAnaR9m3LXj7QGnmW4vjqny7/rzarj/7zeMWyZ ERpRO/27M2zKniu0WQW3jZcpoo0vQQT+wKsRRUMuh83Xg3KGf1aHv70j0vZzHydhOCBUZVwPR0/Dh oFB06OseoLz/2X0yi+aBuDh4coLu1gorLbOddUuRk8nxZ73r2K7fRcppIANhshPK/Rni7cy4wN29G dp+WcSiDQsOWlT3NtZ4My+PoF2TjLH7UIY5FIx3QBTmORsUI/ALkjtOQa5Y8vNEp+LZeXCCjxlrxt P7xUi8X02+UHl9kQgg0mIg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzeQF-0002Lj-5D; Thu, 18 May 2023 10:16:06 -0400 In-Reply-To: (message from Liu Hui on Thu, 18 May 2023 21:29:46 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261933 Archived-At: > From: Liu Hui > Date: Thu, 18 May 2023 21:29:46 +0800 > Cc: 63411@debbugs.gnu.org > > > I'm not an expert on systemctl; would someone who uses that please > > tell if this could have any downsides? E.g., is --no-legend expected > > to be deprecated, perhaps resulting in a warning message or something? > > If not, why did the systemd developers add another option with the > > same semantics? > > --no-legend is indeed superseded by --legend=yes/no in systemd v248+, > but it is not deprecated. It is kept for compatibility and is totally > equivalent to --legend=no, and doesn't produce any warning message. I > have tested with systemctl v249 on Ubuntu 22.04 and the outputs are > same. In fact, the point of the new option is it allows to display > legends by --legend=yes in spite of other options such as --quiet, > which is explained in https://github.com/systemd/systemd/pull/18596. Thanks, I think I will wait for a few days to let others chime in. > Another simple solution is adding a variable, e.g. > pcmpl-linux-systemd-list-unit-arguments, to allow users to change > options passing to systemctl. WDYT? If --no-legend will continue to be supported for the observable future, asking users to control that would be an annoyance, I think.