From unknown Sat Jun 21 10:46:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76356: [PATCH] Add file completion for git apply, am to pcomplete Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Feb 2025 04:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76356 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 76356@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173976683121947 (code B ref -1); Mon, 17 Feb 2025 04:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Feb 2025 04:33:51 +0000 Received: from localhost ([127.0.0.1]:40769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjspL-0005hv-Em for submit@debbugs.gnu.org; Sun, 16 Feb 2025 23:33:51 -0500 Received: from lists.gnu.org ([2001:470:142::17]:42680) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjspH-0005h5-Vv for submit@debbugs.gnu.org; Sun, 16 Feb 2025 23:33:49 -0500 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 1tjspC-0001jq-Bo for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2025 23:33:42 -0500 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tjspA-00037t-NA for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2025 23:33:42 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1739766814; cv=none; d=zohomail.com; s=zohoarc; b=W2mzmV3yZCn5INR7VyWGEum4081sUkN88F9EHrXmMhZ7VVo6K3VKjxj0ItHcXQppyw8W9E85MOeatTCCppYdlWfYcfotURvYony9WLqmsW/7yww/jx/B/sRU3nUYhjGD+CLu7f3CGmSOor54VkxLFw0wYmhMkx4B54YttNzQLNc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1739766814; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=SVq54XhSBNA1Xt9PFsJiT/fBa8ZL5VwyPqWIt8dGGok=; b=EmJ5vJaSKOUbWThLii3skTW1vpaD55JHGErantKqitIDg82E8m+FG5MMFMwa1OnJmzjykjj1lEjlT79yEj8TSfsRYnflMVmrLXIlU3CK52ZdnExU8v/vMpeZD7NU1t+PI6qfzLfctHBXqLRFyRZDNGQRqOWooRV5LN8tDZVlxV4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=antr.me; spf=pass smtp.mailfrom=mail@antr.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1739766814; s=zmail; d=antr.me; i=mail@antr.me; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=SVq54XhSBNA1Xt9PFsJiT/fBa8ZL5VwyPqWIt8dGGok=; b=TNe6KzYb5U3Tr19ROHsVjYfq6no0Hm19rWBbjoIjaJTKm5/RC1+qn3yd+niKLQV6 fVAuZmEJ42t97XSS/WC9lR4CQS3E0w1p40zaCAmR1oUE5KNQXgQmmM8Mw01wvQhdCf+ vt5eh8T+y1tTpC4aN1tciL2/Owc4Dwq7Oma8BOfs= Received: by mx.zohomail.com with SMTPS id 1739766813255898.3848444839268; Sun, 16 Feb 2025 20:33:33 -0800 (PST) From: Antero Mejr Date: Sun, 16 Feb 2025 23:33:32 -0500 Message-ID: <878qq5kx5v.fsf@antr.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Zoho-Virus-Status: 1 X-Zoho-AV-Stamp: zmail-av-1.4.2/239.730.49 X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.15; envelope-from=mail@antr.me; helo=sender4-op-o15.zoho.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Tags: patch This patch lets pcomplete recognize the "git apply" and "git am" subcommands and complete filenames for patch files. This is helpful for eshell. From 2c620140d45e4bcb3ea5d52470b6d6d783f1dcc4 Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Tue, 28 Jan 2025 13:39:10 -0500 Subject: [PATCH] Add file completion for git apply, am to [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL blocklist [URIs: antr.me] 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL blocklist [URIs: antr.me] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.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: 0.7 (/) --=-=-= Content-Type: text/plain Tags: patch This patch lets pcomplete recognize the "git apply" and "git am" subcommands and complete filenames for patch files. This is helpful for eshell. --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Add-file-completion-for-git-apply-am-to-pcomplete.patch >From 2c620140d45e4bcb3ea5d52470b6d6d783f1dcc4 Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Tue, 28 Jan 2025 13:39:10 -0500 Subject: [PATCH] Add file completion for git apply, am to pcomplete * lisp/pcmpl-git.el (pcomplete/git): Add an "apply" and "am" clause to complete all files. --- lisp/pcmpl-git.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/pcmpl-git.el b/lisp/pcmpl-git.el index f23002df28b..02af87f839d 100644 --- a/lisp/pcmpl-git.el +++ b/lisp/pcmpl-git.el @@ -114,7 +114,10 @@ Files listed by `git ls-files ARGS' satisfy the predicate." ;; Complete remotes and their revisions ((or "fetch" "pull" "push") (pcomplete-here (process-lines vc-git-program "remote")) - (pcomplete-here (pcmpl-git--remote-refs (pcomplete-arg 1))))))))) + (pcomplete-here (pcmpl-git--remote-refs (pcomplete-arg 1)))) + ;; Complete all files + ((or "apply" "am") + (pcomplete-here (pcomplete-entries)))))))) (provide 'pcmpl-git) ;;; pcmpl-git.el ends here -- 2.43.0 --=-=-=-- From unknown Sat Jun 21 10:46:30 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Antero Mejr Subject: bug#76356: closed (Re: bug#76356: [PATCH] Add file completion for git apply, am to pcomplete) Message-ID: References: <878qq5kx5v.fsf@antr.me> X-Gnu-PR-Message: they-closed 76356 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 76356@debbugs.gnu.org Date: Mon, 17 Feb 2025 23:04:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1739833442-12802-1" This is a multi-part message in MIME format... ------------=_1739833442-12802-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76356: [PATCH] Add file completion for git apply, am to pcomplete which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 76356@debbugs.gnu.org. --=20 76356: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76356 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1739833442-12802-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76356-done) by debbugs.gnu.org; 17 Feb 2025 23:03:54 +0000 Received: from localhost ([127.0.0.1]:50843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tkA9a-0003K0-8e for submit@debbugs.gnu.org; Mon, 17 Feb 2025 18:03:54 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:59439) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tkA9X-0003JR-KT for 76356-done@debbugs.gnu.org; Mon, 17 Feb 2025 18:03:52 -0500 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5dec996069aso8373415a12.2 for <76356-done@debbugs.gnu.org>; Mon, 17 Feb 2025 15:03:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739833425; x=1740438225; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=bzWghpN1mtY8IkBBxFSiKvfnjN3w1zRIW+bTNvMZAaM=; b=j3KaY2CcZDNYbF3Nj4m5/VodCf3dPPg+BJiA8RunRCCrAsSNgs9Y7N/EvLu6UVZTM/ +bIfkxGrLxGH1F6ma1nFIAh67Y7h4RmUlW6nmgQfPvL8ah4jVJQda3kTWcKstUWfvap1 Q6QKAnTKEwJxTg1ek3Fqgtn4nng/7Wu/IPZJdS8GwAwNoD7mKs+9+VbxDQSyEcRPTCUX +urHstL8FOuZE3y65BL9epzQWC0NHrXcxfd/+sAbHiczhhwNRYDQNb8bdsoEqqR4OUD9 h9tno2ICbghgghl+aInsbUGSkiTAF/7uX4ZOMHqR4hnP36x0ASoeHrEMq4flCpWyn123 tDow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739833425; x=1740438225; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bzWghpN1mtY8IkBBxFSiKvfnjN3w1zRIW+bTNvMZAaM=; b=TZqEufc1mtbHfUxNj9bHVIM5Ff7iASt1kyuYpQ4M/RT6LQbx1nW4ljEkfF3HINsY53 TGXj+U2v9OI3AxKRPNtiZbJi5yS1i9E2wMqWhyH66PSGit1VFJiPElyourYExxSoKshA zaE0v4drWzBdukLHN86sKNj6yotfmnvRaj44Q5N7bmNnbA58HJ0tUykzwdUOiy/m8DWF sxxzHbyoqT6F/mv6gh2Uo6MudbS/laV24YYxudOQujt1++r9FeRKDoVzeh0sFfyunJsy 9MoWoRj31dJFpnXHDVL19qNRVQg3PoH/mQvZ3K7yxJpTtoSsQ0WA7yiMVA8biYax0YFC b7Ow== X-Forwarded-Encrypted: i=1; AJvYcCXilLJX5STmmsFb1DyPHRVq+b4jXcZrEr/PJYwYcpGDgqOKJoz/u7IQmTgEzcZXj+M8lg2EEwvA0UTS@debbugs.gnu.org X-Gm-Message-State: AOJu0YyK9EqHcVs9KvrURMXWnP/eFE7DrNX3R9WdoBd3lu5qV/wiMUy8 +SkaYqZ+iCYJg4foBvTHbpEORA44e4ELSSpxjMhwa3FnN44lMiKIdT9dZUDS1wZCtiP+iVqkHdp Cz+ku2U9QztujYGLMBBUENoZBXafB0feoVZA= X-Gm-Gg: ASbGncugQ8YssvwaRaho4G7RSLRhtxfFs517y6iNWpZPhBqPF1/ouq13tfD9QcKT1sI FdosJi0Dt/XqOwsORW7fnyflIvvRGR5KqkgMMj+lg+HbzFxywS75+nFzgz9y0n6s2rf99kmovYQ Q= X-Google-Smtp-Source: AGHT+IF/J7RRHk7MWG/TRRYJ4giNLmdfACy3/yOtoGmZf6C/XgHpYn8HA9MGVQVuEN3m1+TmtCd5e5I5/tvxPznsASk= X-Received: by 2002:a05:6402:2397:b0:5e0:4064:add6 with SMTP id 4fb4d7f45d1cf-5e04064ae3dmr6634880a12.31.1739833424806; Mon, 17 Feb 2025 15:03:44 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 17 Feb 2025 23:03:44 +0000 From: Stefan Kangas In-Reply-To: <878qq5kx5v.fsf@antr.me> References: <878qq5kx5v.fsf@antr.me> MIME-Version: 1.0 Date: Mon, 17 Feb 2025 23:03:44 +0000 X-Gm-Features: AWEUYZnxsUSB1vV_Lj_Z03_D0BSYvLH-woTtyNiVPEBKr4TiEaasYv2PCIuyZ2A Message-ID: Subject: Re: bug#76356: [PATCH] Add file completion for git apply, am to pcomplete To: Antero Mejr , 76356-done@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 76356-done 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.3 (/) Version: 31.1 Antero Mejr writes: > This patch lets pcomplete recognize the "git apply" and "git am" > subcommands and complete filenames for patch files. This is helpful for > eshell. Thanks for the patch. Installed and closing. ------------=_1739833442-12802-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Feb 2025 04:33:51 +0000 Received: from localhost ([127.0.0.1]:40769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tjspL-0005hv-Em for submit@debbugs.gnu.org; Sun, 16 Feb 2025 23:33:51 -0500 Received: from lists.gnu.org ([2001:470:142::17]:42680) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tjspH-0005h5-Vv for submit@debbugs.gnu.org; Sun, 16 Feb 2025 23:33:49 -0500 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 1tjspC-0001jq-Bo for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2025 23:33:42 -0500 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tjspA-00037t-NA for bug-gnu-emacs@gnu.org; Sun, 16 Feb 2025 23:33:42 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1739766814; cv=none; d=zohomail.com; s=zohoarc; b=W2mzmV3yZCn5INR7VyWGEum4081sUkN88F9EHrXmMhZ7VVo6K3VKjxj0ItHcXQppyw8W9E85MOeatTCCppYdlWfYcfotURvYony9WLqmsW/7yww/jx/B/sRU3nUYhjGD+CLu7f3CGmSOor54VkxLFw0wYmhMkx4B54YttNzQLNc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1739766814; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=SVq54XhSBNA1Xt9PFsJiT/fBa8ZL5VwyPqWIt8dGGok=; b=EmJ5vJaSKOUbWThLii3skTW1vpaD55JHGErantKqitIDg82E8m+FG5MMFMwa1OnJmzjykjj1lEjlT79yEj8TSfsRYnflMVmrLXIlU3CK52ZdnExU8v/vMpeZD7NU1t+PI6qfzLfctHBXqLRFyRZDNGQRqOWooRV5LN8tDZVlxV4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=antr.me; spf=pass smtp.mailfrom=mail@antr.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1739766814; s=zmail; d=antr.me; i=mail@antr.me; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=SVq54XhSBNA1Xt9PFsJiT/fBa8ZL5VwyPqWIt8dGGok=; b=TNe6KzYb5U3Tr19ROHsVjYfq6no0Hm19rWBbjoIjaJTKm5/RC1+qn3yd+niKLQV6 fVAuZmEJ42t97XSS/WC9lR4CQS3E0w1p40zaCAmR1oUE5KNQXgQmmM8Mw01wvQhdCf+ vt5eh8T+y1tTpC4aN1tciL2/Owc4Dwq7Oma8BOfs= Received: by mx.zohomail.com with SMTPS id 1739766813255898.3848444839268; Sun, 16 Feb 2025 20:33:33 -0800 (PST) From: Antero Mejr To: bug-gnu-emacs@gnu.org Subject: [PATCH] Add file completion for git apply, am to pcomplete Date: Sun, 16 Feb 2025 23:33:32 -0500 Message-ID: <878qq5kx5v.fsf@antr.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Zoho-Virus-Status: 1 X-Zoho-AV-Stamp: zmail-av-1.4.2/239.730.49 X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.15; envelope-from=mail@antr.me; helo=sender4-op-o15.zoho.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Tags: patch This patch lets pcomplete recognize the "git apply" and "git am" subcommands and complete filenames for patch files. This is helpful for eshell. From 2c620140d45e4bcb3ea5d52470b6d6d783f1dcc4 Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Tue, 28 Jan 2025 13:39:10 -0500 Subject: [PATCH] Add file completion for git apply, am to [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL blocklist [URIs: antr.me] 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL blocklist [URIs: antr.me] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] X-Debbugs-Envelope-To: submit 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.7 (/) --=-=-= Content-Type: text/plain Tags: patch This patch lets pcomplete recognize the "git apply" and "git am" subcommands and complete filenames for patch files. This is helpful for eshell. --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Add-file-completion-for-git-apply-am-to-pcomplete.patch >From 2c620140d45e4bcb3ea5d52470b6d6d783f1dcc4 Mon Sep 17 00:00:00 2001 From: Antero Mejr Date: Tue, 28 Jan 2025 13:39:10 -0500 Subject: [PATCH] Add file completion for git apply, am to pcomplete * lisp/pcmpl-git.el (pcomplete/git): Add an "apply" and "am" clause to complete all files. --- lisp/pcmpl-git.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/pcmpl-git.el b/lisp/pcmpl-git.el index f23002df28b..02af87f839d 100644 --- a/lisp/pcmpl-git.el +++ b/lisp/pcmpl-git.el @@ -114,7 +114,10 @@ Files listed by `git ls-files ARGS' satisfy the predicate." ;; Complete remotes and their revisions ((or "fetch" "pull" "push") (pcomplete-here (process-lines vc-git-program "remote")) - (pcomplete-here (pcmpl-git--remote-refs (pcomplete-arg 1))))))))) + (pcomplete-here (pcmpl-git--remote-refs (pcomplete-arg 1)))) + ;; Complete all files + ((or "apply" "am") + (pcomplete-here (pcomplete-entries)))))))) (provide 'pcmpl-git) ;;; pcmpl-git.el ends here -- 2.43.0 --=-=-=-- ------------=_1739833442-12802-1-- From unknown Sat Jun 21 10:46:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76356: [PATCH] Add file completion for git apply, am to pcomplete Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Feb 2025 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76356 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Antero Mejr Cc: 76356@debbugs.gnu.org Received: via spool by 76356-submit@debbugs.gnu.org id=B76356.1739958566437 (code B ref 76356); Wed, 19 Feb 2025 09:50:02 +0000 Received: (at 76356) by debbugs.gnu.org; 19 Feb 2025 09:49:26 +0000 Received: from localhost ([127.0.0.1]:42643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tkghq-00006x-7h for submit@debbugs.gnu.org; Wed, 19 Feb 2025 04:49:26 -0500 Received: from sendmail.purelymail.com ([34.202.193.197]:47784) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tkghn-00005o-Sj for 76356@debbugs.gnu.org; Wed, 19 Feb 2025 04:49:24 -0500 DKIM-Signature: a=rsa-sha256; b=cjINHvHxAFXvnQQRjtG16QrWSS6aNi8SyJkOUHooC3N3HtV+MurabacyAiWNVVvHb7wyDPBwFm83LsEjTxBlxTAPKAqAza2o+FdDVq0wKwaIRzF14ibOeRYKfDR2GmtzjwdSq8XWKlGsaDV4Y1/uMNPq4Qmj40qCoO8VTcfZO2D33kBqzUCpoKAoxsqIDuDXRKFbZxpuDZpcuoYYfn9SdrRM5gfRWrtDzRCnuzfZ9HIkeSSxeIusxqXEUEjoimzgUFPhe2FrJMi07EkLpoB/TOBwVUHNmIA5x3PbskBGQGjmR4ZRWJB1Ahj1allQiCaCUdhbuIu+CTa3bsX1LJCNMA==; s=purelymail1; d=spwhitton.name; v=1; bh=mGL02gujn8XVcRcaCsp5SAOEfjcXG1SkeQ3KZnzzTn0=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=pqcTfponpPrVwTuBjjoMT+fKdjJy1tTxp0C2WGn7MiEuLF48PRkAs0rB19KijNq4jXAdlHjJTJ1IWB1y82IqnGB5XLvAV3j9nciatSi6y2GwkAdSOMNAhWZc1D8tKBIXIRUW6xIEnrsPX7cD7KaAdmxvmD0jBtLaKa1oJPFpRnQ+7uedSPMbCj5h82z5TUUc3HbnyVD6BmFQM5AK2fFiIwwNFAtIsEPGikwSiuELeGCdJ6K3qlupxj0W2pBzZ/1/00D4KCGw+lrF7nWa37UnfEMZhOjeoKEO7NpJosDLsTwDQZiBFmushJkv76WuoG2hvhbd9KoEaSxD4Zhuan+bHw==; s=purelymail1; d=purelymail.com; v=1; bh=mGL02gujn8XVcRcaCsp5SAOEfjcXG1SkeQ3KZnzzTn0=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: 76356@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -352521514; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 19 Feb 2025 09:49:16 +0000 (UTC) Received: by melete.silentflame.com (Postfix, from userid 1000) id 3CB9D7EA66E; Wed, 19 Feb 2025 17:49:14 +0800 (CST) From: Sean Whitton In-Reply-To: <878qq5kx5v.fsf@antr.me> (Antero Mejr's message of "Sun, 16 Feb 2025 23:33:32 -0500") References: <878qq5kx5v.fsf@antr.me> Date: Wed, 19 Feb 2025 17:49:14 +0800 Message-ID: <877c5mfen9.fsf@melete.silentflame.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) 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 (-) Oh ho, thank you for this, it was annoying me that my Emacs didn't have it just yesterday. On Sun 16 Feb 2025 at 11:33pm -05, Antero Mejr wrote: > Tags: patch > > This patch lets pcomplete recognize the "git apply" and "git am" > subcommands and complete filenames for patch files. This is helpful for > eshell. > > -- Sean Whitton