From unknown Wed Jun 18 23:16:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#78661 <78661@debbugs.gnu.org> To: bug#78661 <78661@debbugs.gnu.org> Subject: Status: 30.1; pcomplete/dnf does not work with dnf5 Reply-To: bug#78661 <78661@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:16:13 +0000 retitle 78661 30.1; pcomplete/dnf does not work with dnf5 reassign 78661 emacs submitter 78661 Rahguzar severity 78661 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 01 03:49:41 2025 Received: (at submit) by debbugs.gnu.org; 1 Jun 2025 07:49:42 +0000 Received: from localhost ([127.0.0.1]:36186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uLdRl-0008VD-7J for submit@debbugs.gnu.org; Sun, 01 Jun 2025 03:49:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42696) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uLdRc-0008TD-Us for submit@debbugs.gnu.org; Sun, 01 Jun 2025 03:49:30 -0400 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 1uLdRX-0006oJ-B8 for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2025 03:49:19 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1uLdRU-0001gv-AN for bug-gnu-emacs@gnu.org; Sun, 01 Jun 2025 03:49:19 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4b98Hm2yJfz9tDP; Sun, 1 Jun 2025 09:49:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1748764148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=FcCnyGeQsq/PArcUTqDdC4qcLzM4y0cvNGg/IKBxVtY=; b=E4/81PyN9itm4SRHsg9ahtN4SeSQsN3JWp7VOhLlP1f/WkS7Db59sLfa3gYYso3L3fCM4V DuZ3wCGegj79r3BZS1fPoFo3MGXnIn0TY/OLe0XCLLAt5Kv/bC9xg4yBoiDdV0ypxaLpwr c26BCMgJTQFF8BpYh5ya2BzWQHS74x6vSEukDCgCx3fe2SuPr1YyPa+tQW3btLGLbNjR9G t7Bs/0z4Qd4AC/gONhCnb+Kws7m8kvfQOGn+1L6vzD2MIXObsUMtaRRtc26WLfdbxTwQk1 Pf8GPZKMq607ECiQSXGBHvruI1exuSiNp0tclMAXkr5AX5VMCNXLs5JJ03AZJA== From: Rahguzar To: bug-gnu-emacs@gnu.org Subject: 30.1; pcomplete/dnf does not work with dnf5 X-Debbugs-Cc: Date: Sun, 01 Jun 2025 12:49:02 +0500 Message-ID: <8734cj7vgx.fsf@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain X-MBO-RS-META: 6mhtbzhxwd6sdpwa1tcyjt7ze1aa9igx X-MBO-RS-ID: 449b68e68a88155b44a Received-SPF: pass client-ip=80.241.56.171; envelope-from=rahguzar@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: arstoffel@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Dear Emacs maintainers, Recently released Fedora 42 defaults to dnf 5. This had the effect of breaking pcomplete completions provided by pcomplete/dnf. I have worked around the problem in my init file by means of advice. I can send a patch with the changes needed to make completion work with dnf 5. However, I want to make some additional changes too so I would like to ask some questions first (I have cced Augusto Stoffel since he added the code in question): 1) I think "upgrade" should offer completions from installed packages but currently it offers completions from all packages. Is there a reason? 2) Currently completions of package names come with a very long version string which I have never needed and have to delete by hand. Is it ok to remove that? 3) The most reliable way of getting package names without version string is (in my opinion) to use the dnf repoquery command. It also has the (slight) advantage of not requiring sqlite3. However, although I can get the list of installed and available packages from it, I can't get the list of 'not installed' packages. On the other hand the current version seems to return the same list for 'not installed' and available packages. Is it ok to just remove the 'not installed' case and use the available packages instead? Best, Rahguzar In GNU Emacs 30.1 (build 1, aarch64-redhat-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.2) of 2025-04-08 built on 541db5783c4a45e992a56453d3b9080d System Description: Fedora Linux Asahi Remix 42 (Forty Two [Adams]) Configured using: 'configure --build=aarch64-redhat-linux-gnu --host=aarch64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-gc-mark-trace --with-cairo --with-dbus --with-gif --with-gpm=no --with-harfbuzz --with-jpeg --with-modules --with-native-compilation=aot --with-pgtk --with-png --with-rsvg --with-sqlite3 --with-tiff --with-tree-sitter --with-webp --with-xpm build_alias=aarch64-redhat-linux-gnu host_alias=aarch64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: mu4e:main Minor modes in effect: corfu-history-mode: t corfu-popupinfo-mode: t server-mode: t mu4e-search-minor-mode: t mu4e-update-minor-mode: t mu4e-context-minor-mode: t dirvish-override-dired-mode: t satchel-mode: t nerd-icons-completion-mode: t marginalia-mode: t vertico-multiform-mode: t vertico-mode: t evil-goggles-mode: t anzu-mode: t evil-mode: t evil-local-mode: t recentf-mode: t savehist-mode: t save-place-mode: t electric-pair-mode: t override-global-mode: t pixel-scroll-precision-mode: t repeat-mode: t midnight-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t buffer-read-only: t size-indication-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: /home/azeem/.local/state/emacs/elpaca/builds/transient/transient hides /usr/share/emacs/30.1/lisp/transient /home/azeem/.local/state/emacs/elpaca/builds/ef-themes/theme-loaddefs hides /usr/share/emacs/30.1/lisp/theme-loaddefs Features: (shadow emacsbug vertico-directory help-fns radix-tree mastodon-notifications fabs consult undo-fu-session dabbrev cape-char nerd-icons-corfu delsel corfu-history corfu-popupinfo corfu evil-embrace embrace expand-region text-mode-expansions the-org-mode-expansions org-element org-persist xdg org-id org-refile org-element-ast inline avl-tree generator er-basic-expansions expand-region-core expand-region-custom evil-surround jit-spell ispell face-remap vertico-sort link-hint ffap goto-addr avy mastodon-media mastodon-profile mastodon-auth mastodon-client plstore mastodon mastodon-transient tp mastodon-search mastodon-widget mastodon-tl image-mode exif url-cache mastodon-toot multisession sqlite facemenu mastodon-iso mastodon-http url-http url-auth url-gw shr-color smerge-mode diff diff-mode track-changes jka-compr qp sort smiley gnus-cite mm-archive mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check gnus-async gnus-bcklg visual-wrap gnus-ml disp-table nndraft nnmh vertico-repeat epa-file network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache server cape mu4e mu4e-org org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie treesit executable ob-comint org-pcomplete pcomplete org-list org-footnote org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs find-func org-compat org-macs mu4e-notification notifications mu4e-main smtpmail mu4e-view mu4e-mime-parts crm cal-menu calendar cal-loaddefs mu4e-headers mu4e-thread mu4e-actions mu4e-compose mu4e-draft gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus nnheader range mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message shr pixel-fill kinsoku url-file svg xml dom browse-url flow-fill mule-util hl-line mu4e-contacts mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-server mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window ido message sendmail yank-media puny dirvish transient format-spec cus-start autorevert filenotify dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader mu4e-obsolete usher satchel ibuf-ext ibuffer ibuffer-loaddefs bookmark nerd-icons-completion nerd-icons nerd-icons-faces nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon marginalia vertico-multiform vertico evil-goggles pulse color ef-reverie-theme ef-themes pdf-loader anzu advice evil evil-integration evil-maps evil-commands reveal evil-jumps evil-command-window evil-types evil-search evil-ex evil-macros evil-repeat evil-states evil-core comp comp-cstr cl-extra help-mode comp-run comp-common evil-common rect evil-vars edmacro kmacro orderless compat mastodon-autoloads yeetube-autoloads filechooser-autoloads wile-autoloads usher-autoloads undo-fu-session-autoloads ef-themes-autoloads jit-spell-autoloads satchel-autoloads pdf-tools-autoloads tablist-autoloads xr-autoloads link-hint-autoloads avy-autoloads yaml-mode-autoloads inspirehep-autoloads consult-hoogle-autoloads haskell-ng-mode-autoloads geiser-guile-autoloads geiser-autoloads fj-autoloads fedi-autoloads markdown-mode-autoloads tp-autoloads magit-autoloads magit-section-autoloads llama-autoloads fabs-autoloads companion-mode-autoloads eww-hacks-autoloads evil-embrace-autoloads embrace-autoloads expand-region-autoloads evil-surround-autoloads evil-nerd-commenter-autoloads evil-goggles-autoloads anzu-autoloads evil-autoloads goto-chg-autoloads eshell-syntax-highlighting-autoloads eat-autoloads package-lint-flymake-autoloads package-lint-autoloads macrostep-autoloads helpful-autoloads dash-autoloads highlight-quoted-autoloads dirvish-autoloads transient-autoloads diredfl-autoloads trashed-autoloads vertico-autoloads orderless-autoloads nerd-icons-completion-autoloads marginalia-autoloads embark-consult-autoloads embark-autoloads nerd-icons-corfu-autoloads nerd-icons-autoloads corfu-autoloads consult-autoloads cape-autoloads password-store-autoloads with-editor-autoloads elpaca-log elpaca-ui recentf tree-widget savehist saveplace elec-pair bind-key easy-mmode ibuf-macs pcase elpaca-menu-elpa flymake project compile text-property-search comint ansi-osc ansi-color thingatpt pixel-scroll cua-base ring repeat rx midnight cus-edit pp cus-load wid-edit elpaca-menu-melpa url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars mailcap elpaca-menu-org cl-seq elpaca warnings icons elpaca-process cl-loaddefs cl-lib elpaca-autoloads rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 1368123 349490) (symbols 48 46221 8) (strings 32 344243 10459) (string-bytes 1 30752177) (vectors 16 89242) (vector-slots 8 1100861 100516) (floats 8 1033 16553) (intervals 56 19366 531) (buffers 992 30)) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 02 19:41:08 2025 Received: (at 78661) by debbugs.gnu.org; 2 Jun 2025 23:41:09 +0000 Received: from localhost ([127.0.0.1]:57252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uMEm9-0004V6-Ui for submit@debbugs.gnu.org; Mon, 02 Jun 2025 19:41:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40714) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uMEm5-0004TT-En for 78661@debbugs.gnu.org; Mon, 02 Jun 2025 19:41:02 -0400 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 1uMElz-00031K-Vb; Mon, 02 Jun 2025 19:40:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=lrpJK5dL0gTXMMR+OT80BvANh0iqHryzxQN0Gvn/GeA=; b=i/Q8gML21Pm3 rzecoSxQbMLaHUJ+JK0Yayl6hgZThKSThkz8szZ6s0eDcfhbr/U1R92IGgyTAzBqKGreVFnXkNs2P IFdrbOO0b6fKsf8bXZ40mwQ0wkYnFExaDEPhW42kCl2SDwn8v83NxFKZv58HvfIwne/8ir+lvWER+ E1WV8cPVGpVm89BDSEFk9H77APrlWN2DjaW3bU1F5TwCY6MOAbF8DI0ulK4ngu2eaGQepz2IUdlE5 GALFD05/ifA+2xiRg3T9RwHOJxjqbx9EMpBpOw+xqiVfpYlzPEu7kj6aYz60LGF8N2GM6dyJhtzeo ZuVcSGIE/EH8I9PqH892Ug==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1uMElw-0005jQ-No; Mon, 02 Jun 2025 19:40:52 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: Rahguzar In-Reply-To: <8734cj7vgx.fsf@mailbox.org> (bug-gnu-emacs@gnu.org) Subject: Re: bug#78661: 30.1; pcomplete/dnf does not work with dnf5 References: <8734cj7vgx.fsf@mailbox.org> Message-Id: Date: Mon, 02 Jun 2025 19:40:52 -0400 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78661 Cc: 78661@debbugs.gnu.org, arstoffel@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] What is dnf? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 03 01:26:29 2025 Received: (at 78661) by debbugs.gnu.org; 3 Jun 2025 05:26:30 +0000 Received: from localhost ([127.0.0.1]:58990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uMKAP-0002bN-H0 for submit@debbugs.gnu.org; Tue, 03 Jun 2025 01:26:29 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]:46796) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uMKAN-0002ad-6O for 78661@debbugs.gnu.org; Tue, 03 Jun 2025 01:26:27 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4bBK211TN0z9sW9; Tue, 3 Jun 2025 07:26:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1748928377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oacworOfgImFT22Mg4Wqywk6sVjpPFNPQUu3f5G7OTU=; b=lbxeURfQucllpYfYZF9l9ve20p6Z+Hol/q/S4GMR9f168vLp0hXLzXT97oX17QAbGCaX+6 4bBdRhna8tKIz8/faTtmHC4UgLmSi0d9ucAINooNKyMyglVW07qrUhiCN2sb5wZPWFhnR+ nBeUDro+vblUNdtHqIFbtI8Hnx7p6Uo34POvom9bfdIB/6f3xnTFASrwq9BEM7+sIN6bII Z/UhlC4YF0Z/GE8In3pEjCs7PlRvLigKbgm1Wguck5fKsyzTvm1XqAgH/BOXLvYQcoEZNS 3R8vyUAf3CEUIF0LQIEHWmUlDmpFuSC8YUdx3xti3vQp8tmODWAm9ywanteRkw== From: Rahguzar To: Richard Stallman Subject: Re: bug#78661: 30.1; pcomplete/dnf does not work with dnf5 In-Reply-To: (Richard Stallman's message of "Mon, 02 Jun 2025 19:40:52 -0400") References: <8734cj7vgx.fsf@mailbox.org> Date: Tue, 03 Jun 2025 10:26:12 +0500 Message-ID: <87msap4cqz.fsf@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain X-MBO-RS-META: yza4r1mcoh648my8dtknhgqpxii8w7x1 X-MBO-RS-ID: 1200c77255019660ecd X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78661 Cc: 78661@debbugs.gnu.org, arstoffel@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) It is a package manager used by some GNU/Linux distributions for example Fedora. Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > What is dnf? From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 14 09:29:11 2025 Received: (at 78661) by debbugs.gnu.org; 14 Jun 2025 13:29:12 +0000 Received: from localhost ([127.0.0.1]:37522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uQQwU-0008W8-QT for submit@debbugs.gnu.org; Sat, 14 Jun 2025 09:29:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40938) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uQQwO-0008UR-NE for 78661@debbugs.gnu.org; Sat, 14 Jun 2025 09:29:05 -0400 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 1uQQwH-0001c5-PI; Sat, 14 Jun 2025 09:28:53 -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=n1O+6r9ah62L+jCvP5WT+vi9BdUXJ7ytW2Qpss1UZBA=; b=Jjjn+jJTLehy 2Q0gwNrLTbfVUnKRN2n6w8+OdoeiwhROGzx+xuOHSxP5qWLH1lfS0sg48S9y7yExO5VxAsK5NMZH4 5V4il6hbKQ9ErHznhCcq7squ7OjYYuf+jR3FRG2QGBLfcJ4iYoQ+b2vROwoWogDuPw5spVhqnKP9P 6NjTALRFyUjU2lZuCnyxdl73YRRl/GNq1FHOeLtyZtimkW+BuWHmS3BhPuJFpByO1a/qqzGqmgEfn nFlPi/xh3otNidSkq62Z11m3BMduielFcvXRwq8HSzdD+9XVpe6a9uVB6OwbxLlpeq7LVvkmbJW6x hQbHPOIp8S0ZeiKUZM2lyQ==; Date: Sat, 14 Jun 2025 16:28:52 +0300 Message-Id: <86cyb6sb8r.fsf@gnu.org> From: Eli Zaretskii To: Rahguzar , arstoffel@gmail.com In-Reply-To: <8734cj7vgx.fsf@mailbox.org> (bug-gnu-emacs@gnu.org) Subject: Re: bug#78661: 30.1; pcomplete/dnf does not work with dnf5 References: <8734cj7vgx.fsf@mailbox.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78661 Cc: 78661@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Augusto, any comments or suggestions? > Cc: arstoffel@gmail.com > Date: Sun, 01 Jun 2025 12:49:02 +0500 > From: Rahguzar via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > Dear Emacs maintainers, > > Recently released Fedora 42 defaults to dnf 5. This had the effect of > breaking pcomplete completions provided by pcomplete/dnf. I have worked > around the problem in my init file by means of advice. > > I can send a patch with the changes needed to make completion work with > dnf 5. However, I want to make some additional changes too so I would > like to ask some questions first (I have cced Augusto Stoffel since he > added the code in question): > > 1) I think "upgrade" should offer completions from installed packages > but currently it offers completions from all packages. Is there a reason? > > 2) Currently completions of package names come with a very long version > string which I have never needed and have to delete by hand. Is it ok to > remove that? > > 3) The most reliable way of getting package names without version string > is (in my opinion) to use the dnf repoquery command. It also has the > (slight) advantage of not requiring sqlite3. However, although I can get > the list of installed and available packages from it, I can't get the > list of 'not installed' packages. On the other hand the current version > seems to return the same list for 'not installed' and available packages. > Is it ok to just remove the 'not installed' case and use the available > packages instead? > > Best, > Rahguzar > > > In GNU Emacs 30.1 (build 1, aarch64-redhat-linux-gnu, GTK+ Version > 3.24.49, cairo version 1.18.2) of 2025-04-08 built on > 541db5783c4a45e992a56453d3b9080d > System Description: Fedora Linux Asahi Remix 42 (Forty Two [Adams]) > > Configured using: > 'configure --build=aarch64-redhat-linux-gnu > --host=aarch64-redhat-linux-gnu --program-prefix= > --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr > --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc > --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 > --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run > --sharedstatedir=/var/lib --mandir=/usr/share/man > --infodir=/usr/share/info --disable-gc-mark-trace --with-cairo > --with-dbus --with-gif --with-gpm=no --with-harfbuzz --with-jpeg > --with-modules --with-native-compilation=aot --with-pgtk --with-png > --with-rsvg --with-sqlite3 --with-tiff --with-tree-sitter --with-webp > --with-xpm build_alias=aarch64-redhat-linux-gnu > host_alias=aarch64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 > -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches > -pipe -Wall -Werror=format-security > -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 > -mbranch-protection=standard -fasynchronous-unwind-tables > -fstack-clash-protection -fno-omit-frame-pointer > -mno-omit-leaf-frame-pointer ' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed > -Wl,-z,pack-relative-relocs -Wl,-z,now > -specs=/usr/lib/rpm/redhat/redhat-hardened-ld > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 > -specs=/usr/lib/rpm/redhat/redhat-package-notes ' CXX=g++ 'CXXFLAGS=-O2 > -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches > -pipe -Wall -Werror=format-security > -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 > -mbranch-protection=standard -fasynchronous-unwind-tables > -fstack-clash-protection -fno-omit-frame-pointer > -mno-omit-leaf-frame-pointer ' > PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' > > Configured features: > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG > LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY > PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF > TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB > > Important settings: > value of $LANG: en_US.utf8 > locale-coding-system: utf-8-unix > > Major mode: mu4e:main > > Minor modes in effect: > corfu-history-mode: t > corfu-popupinfo-mode: t > server-mode: t > mu4e-search-minor-mode: t > mu4e-update-minor-mode: t > mu4e-context-minor-mode: t > dirvish-override-dired-mode: t > satchel-mode: t > nerd-icons-completion-mode: t > marginalia-mode: t > vertico-multiform-mode: t > vertico-mode: t > evil-goggles-mode: t > anzu-mode: t > evil-mode: t > evil-local-mode: t > recentf-mode: t > savehist-mode: t > save-place-mode: t > electric-pair-mode: t > override-global-mode: t > pixel-scroll-precision-mode: t > repeat-mode: t > midnight-mode: t > global-eldoc-mode: t > show-paren-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > minibuffer-regexp-mode: t > buffer-read-only: t > size-indication-mode: t > line-number-mode: t > transient-mark-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > abbrev-mode: t > > Load-path shadows: > /home/azeem/.local/state/emacs/elpaca/builds/transient/transient hides /usr/share/emacs/30.1/lisp/transient > /home/azeem/.local/state/emacs/elpaca/builds/ef-themes/theme-loaddefs hides /usr/share/emacs/30.1/lisp/theme-loaddefs > > Features: > (shadow emacsbug vertico-directory help-fns radix-tree > mastodon-notifications fabs consult undo-fu-session dabbrev cape-char > nerd-icons-corfu delsel corfu-history corfu-popupinfo corfu evil-embrace > embrace expand-region text-mode-expansions the-org-mode-expansions > org-element org-persist xdg org-id org-refile org-element-ast inline > avl-tree generator er-basic-expansions expand-region-core > expand-region-custom evil-surround jit-spell ispell face-remap > vertico-sort link-hint ffap goto-addr avy mastodon-media > mastodon-profile mastodon-auth mastodon-client plstore mastodon > mastodon-transient tp mastodon-search mastodon-widget mastodon-tl > image-mode exif url-cache mastodon-toot multisession sqlite facemenu > mastodon-iso mastodon-http url-http url-auth url-gw shr-color > smerge-mode diff diff-mode track-changes jka-compr qp sort smiley > gnus-cite mm-archive mail-extr textsec uni-scripts idna-mapping > ucs-normalize uni-confusable textsec-check gnus-async gnus-bcklg > visual-wrap gnus-ml disp-table nndraft nnmh vertico-repeat epa-file > network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual > nntp gnus-cache server cape mu4e mu4e-org org ob ob-tangle ob-ref ob-lob > ob-table ob-exp org-macro org-src sh-script smie treesit executable > ob-comint org-pcomplete pcomplete org-list org-footnote org-faces > org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval > org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs > find-func org-compat org-macs mu4e-notification notifications mu4e-main > smtpmail mu4e-view mu4e-mime-parts crm cal-menu calendar cal-loaddefs > mu4e-headers mu4e-thread mu4e-actions mu4e-compose mu4e-draft gnus-msg > gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum > gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail > mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range > gnus-win gnus nnheader range mu4e-search mu4e-lists mu4e-bookmarks > mu4e-mark mu4e-message shr pixel-fill kinsoku url-file svg xml dom > browse-url flow-fill mule-util hl-line mu4e-contacts mu4e-update > mu4e-folders mu4e-context mu4e-query-items mu4e-server mu4e-modeline > mu4e-vars mu4e-helpers mu4e-config mu4e-window ido message sendmail > yank-media puny dirvish transient format-spec cus-start autorevert > filenotify dired dired-loaddefs rfc822 mml mml-sec epa derived epg > rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode > mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr > mailabbrev mail-utils gmm-utils mailheader mu4e-obsolete usher satchel > ibuf-ext ibuffer ibuffer-loaddefs bookmark nerd-icons-completion > nerd-icons nerd-icons-faces nerd-icons-data nerd-icons-data-mdicon > nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data-devicon > nerd-icons-data-sucicon nerd-icons-data-wicon nerd-icons-data-faicon > nerd-icons-data-powerline nerd-icons-data-octicon > nerd-icons-data-pomicon nerd-icons-data-ipsicon marginalia > vertico-multiform vertico evil-goggles pulse color ef-reverie-theme > ef-themes pdf-loader anzu advice evil evil-integration evil-maps > evil-commands reveal evil-jumps evil-command-window evil-types > evil-search evil-ex evil-macros evil-repeat evil-states evil-core comp > comp-cstr cl-extra help-mode comp-run comp-common evil-common rect > evil-vars edmacro kmacro orderless compat mastodon-autoloads > yeetube-autoloads filechooser-autoloads wile-autoloads usher-autoloads > undo-fu-session-autoloads ef-themes-autoloads jit-spell-autoloads > satchel-autoloads pdf-tools-autoloads tablist-autoloads xr-autoloads > link-hint-autoloads avy-autoloads yaml-mode-autoloads > inspirehep-autoloads consult-hoogle-autoloads haskell-ng-mode-autoloads > geiser-guile-autoloads geiser-autoloads fj-autoloads fedi-autoloads > markdown-mode-autoloads tp-autoloads magit-autoloads > magit-section-autoloads llama-autoloads fabs-autoloads > companion-mode-autoloads eww-hacks-autoloads evil-embrace-autoloads > embrace-autoloads expand-region-autoloads evil-surround-autoloads > evil-nerd-commenter-autoloads evil-goggles-autoloads anzu-autoloads > evil-autoloads goto-chg-autoloads eshell-syntax-highlighting-autoloads > eat-autoloads package-lint-flymake-autoloads package-lint-autoloads > macrostep-autoloads helpful-autoloads dash-autoloads > highlight-quoted-autoloads dirvish-autoloads transient-autoloads > diredfl-autoloads trashed-autoloads vertico-autoloads > orderless-autoloads nerd-icons-completion-autoloads marginalia-autoloads > embark-consult-autoloads embark-autoloads nerd-icons-corfu-autoloads > nerd-icons-autoloads corfu-autoloads consult-autoloads cape-autoloads > password-store-autoloads with-editor-autoloads elpaca-log elpaca-ui > recentf tree-widget savehist saveplace elec-pair bind-key easy-mmode > ibuf-macs pcase elpaca-menu-elpa flymake project compile > text-property-search comint ansi-osc ansi-color thingatpt pixel-scroll > cua-base ring repeat rx midnight cus-edit pp cus-load wid-edit > elpaca-menu-melpa url url-proxy url-privacy url-expand url-methods > url-history url-cookie generate-lisp-file url-domsuf url-util url-parse > auth-source eieio eieio-core cl-macs password-cache json subr-x map > byte-opt gv bytecomp byte-compile url-vars mailcap elpaca-menu-org > cl-seq elpaca warnings icons elpaca-process cl-loaddefs cl-lib > elpaca-autoloads rmc iso-transl tooltip cconv eldoc paren electric > uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel > term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd tool-bar > dnd fontset image regexp-opt fringe tabulated-list replace newcomment > text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow > isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax > font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic > indonesian philippine cham georgian utf-8-lang misc-lang vietnamese > tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek > romanian slovak czech european ethiopic indian cyrillic chinese > composite emoji-zwj charscript charprop case-table epa-hook > jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs > theme-loaddefs faces cus-face macroexp files window text-properties > overlay sha1 md5 base64 format env code-pages mule custom widget keymap > hashtable-print-readable backquote threads dbusbind inotify > dynamic-setting system-font-setting font-render-setting cairo gtk pgtk > multi-tty move-toolbar make-network-process native-compile emacs) > > Memory information: > ((conses 16 1368123 349490) (symbols 48 46221 8) > (strings 32 344243 10459) (string-bytes 1 30752177) > (vectors 16 89242) (vector-slots 8 1100861 100516) > (floats 8 1033 16553) (intervals 56 19366 531) (buffers 992 30)) > > > > From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 14 09:36:23 2025 Received: (at 78661) by debbugs.gnu.org; 14 Jun 2025 13:36:23 +0000 Received: from localhost ([127.0.0.1]:37539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uQR3W-00011P-89 for submit@debbugs.gnu.org; Sat, 14 Jun 2025 09:36:23 -0400 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:53456) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uQR3T-00010W-7w for 78661@debbugs.gnu.org; Sat, 14 Jun 2025 09:36:20 -0400 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-605b9488c28so5998624a12.2 for <78661@debbugs.gnu.org>; Sat, 14 Jun 2025 06:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749908172; x=1750512972; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=NxqIAV3Xlb7QNsxhdwrTnPY08vrh7c2B5HpuV9uz7FM=; b=NGBbFbVuRRC0QrwoMOEscvPnMYsxzG4Y9usekeLDZDYiSyodOCW4mA6lfGQU+lZOhS Jw3T6KFu/N+CCaZV2lyfuCq+J4uj9yevZD824hPguk7p0nUCHxCbCelkagsbc1Eg+5yH e7eigJQG+ChEuDLmYXzLaWhAhq5EkDvN+epYokVuL4KbjZ+91f4Vhy81med8oPQJHJe7 kA6Vzaa36yXIDgArtVQ4cehRvdXCDArDjvnlXEtVq05GaB45rEUwVvNz2nCDPftTTDPS kc9kwPQBqCKcoGbcdXXyUY5nCixZOMjv9Iz+sJwGwiUJjxeX4rhA9dqNyiJGbh/3qiV5 ikCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749908172; x=1750512972; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NxqIAV3Xlb7QNsxhdwrTnPY08vrh7c2B5HpuV9uz7FM=; b=vumgcLZsmxs7MlL9F7SNnn1ddSRnROdRjGkx9ayhnm1TFUWnLfKinQ/5eaP/OARNWU 8Xpw16pnq/mmzZPgp7w1ol3F6TdPC8FG5Z5g2LDsw3B8dpD6zvc+337RjrOydnmDeUiD ZQdQdT3EH+oLalovO8LjwzzaM448OwgOpOmk6BQ0e9BlaY3kSFRCgf0GWz1lggjn6PDL +gR32oKNqC1p8s5xmQjli/LFiyOuCAgJEH1NN3aSs4LiH2CYCShKxZ19yr8eKVooIRkl mqONXuIeh8kkGr7aVAaf16qzP8q/OB+NlPtJaoS4eaK350VtKInpiqgdBvN8urDBAaNf wDng== X-Forwarded-Encrypted: i=1; AJvYcCW/iCPb5b07EpcL0iVTMYT7e1E/vFZebyIWZXZ8GIoE9UHRePQRk0HTxnJrEC3os3tZxkyWaQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyLtdQJ0Y5eGJqyOkxq/yWEzO+SiEH2QXLQEq8JKFgs/ZFrMAwj 1E0fspawUt2OUh2TTlEphQUI/ySdalG6w77aP4uhwoQYVxdDKur3NiN8V1UkcA== X-Gm-Gg: ASbGncv8jI2mBDQrowyHzB31imeoYxEBOZJZWv8QUY47GZgMz6AI0/ltuOnrroB1maT KCXqVUvbq51x8w2pSlsTGmT7gCyEZ1pm9xLADtHULVTFf91opOEa+e8L1FHws4WJmymCjgeQbeQ JWlSBTfqxFuuwIDpyQU+9odhrd7jORvD82wX2yBGpWG5oe8+5BFuh5XQ8ZlsON+8IOQ6UF6VzHw PRqFqk3tvC0qK40ha+SN43F+rdSBpFJUG9eo8ZaHeuRwRWuCs1foWWUr2JoSo/e43Pa16gKzUoP W8El6q45cwdPDaY6VKHshRrsxVBlu2WyYV4k5A== X-Google-Smtp-Source: AGHT+IHeoYgDss0Dfm5JIUC+GRfgW9HCZuwBRxWojGoo3L53t50L0glgl9kxaJjFqQRrteBfiwlSyQ== X-Received: by 2002:a05:6402:510a:b0:607:eeb1:b18b with SMTP id 4fb4d7f45d1cf-608d0864482mr2534857a12.8.1749908172271; Sat, 14 Jun 2025 06:36:12 -0700 (PDT) Received: from ars3 ([2a02:8109:8a9d:cf00::ee32]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-608b4ae2d1fsm2732472a12.74.2025.06.14.06.36.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Jun 2025 06:36:11 -0700 (PDT) From: Augusto Stoffel To: Eli Zaretskii Subject: Re: bug#78661: 30.1; pcomplete/dnf does not work with dnf5 In-Reply-To: <86cyb6sb8r.fsf@gnu.org> References: <8734cj7vgx.fsf@mailbox.org> <86cyb6sb8r.fsf@gnu.org> Date: Sat, 14 Jun 2025 15:36:10 +0200 Message-ID: <87frg2xx6d.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78661 Cc: arstoffel@gmail.com, Rahguzar , 78661@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sat, 14 Jun 2025 at 16:28, Eli Zaretskii wrote: > Augusto, any comments or suggestions? > >> Cc: arstoffel@gmail.com >> Date: Sun, 01 Jun 2025 12:49:02 +0500 >> From: Rahguzar via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> >> Dear Emacs maintainers, >> >> Recently released Fedora 42 defaults to dnf 5. This had the effect of >> breaking pcomplete completions provided by pcomplete/dnf. I have worked >> around the problem in my init file by means of advice. >> >> I can send a patch with the changes needed to make completion work with >> dnf 5. However, I want to make some additional changes too so I would >> like to ask some questions first (I have cced Augusto Stoffel since he >> added the code in question): >> >> 1) I think "upgrade" should offer completions from installed packages >> but currently it offers completions from all packages. Is there a reason? No, this change makes sense. >> 2) Currently completions of package names come with a very long version >> string which I have never needed and have to delete by hand. Is it ok to >> remove that? I think I used to get that with shell completions so there might be a reason it was done that way, but seems reasonable to me to remove the versions. >> 3) The most reliable way of getting package names without version string >> is (in my opinion) to use the dnf repoquery command. It also has the >> (slight) advantage of not requiring sqlite3. However, although I can get >> the list of installed and available packages from it, I can't get the >> list of 'not installed' packages. On the other hand the current version >> seems to return the same list for 'not installed' and available packages. >> Is it ok to just remove the 'not installed' case and use the available >> packages instead? I think this is fine too. >> Best, >> Rahguzar >> >>