From unknown Mon Jun 16 23:50:23 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#53800 <53800@debbugs.gnu.org> To: bug#53800 <53800@debbugs.gnu.org> Subject: Status: 29.0.50; pcomplete does not search completion function in parent major mode Reply-To: bug#53800 <53800@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:50:23 +0000 retitle 53800 29.0.50; pcomplete does not search completion function in par= ent major mode reassign 53800 emacs submitter 53800 TAKAHASHI Yoshio severity 53800 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 05 08:38:27 2022 Received: (at submit) by debbugs.gnu.org; 5 Feb 2022 13:38:27 +0000 Received: from localhost ([127.0.0.1]:34103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGLGk-0004l4-NJ for submit@debbugs.gnu.org; Sat, 05 Feb 2022 08:38:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:55804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGLGh-0004kv-Oi for submit@debbugs.gnu.org; Sat, 05 Feb 2022 08:38:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGLGh-0002tE-I5 for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 08:38:23 -0500 Received: from conuserg-09.nifty.com ([210.131.2.76]:48807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGLGa-0005nM-O1 for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 08:38:20 -0500 Received: from LAPTOP-89LTAUNV.yfb02119.nifty.com (M014011160065.v4.enabler.ne.jp [14.11.160.65]) (authenticated) by conuserg-09.nifty.com with ESMTP id 215DbhqA029828 for ; Sat, 5 Feb 2022 22:37:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com 215DbhqA029828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1644068263; bh=ZQs0HAue7A/0Hv2tqrL+P5Z5UcEVwi7zi5FQ5ivbEhQ=; h=From:To:Subject:Date:From; b=P+92aw5V31/TaKXCi0Vi+vAF/T9ir+JQDk+y1OqRl7weNd6q3fXAvnAJc0ObW3rdg g66QZhaNJxGTIiRRYzYMblMKxq7C9OfiORWT1U3jRrhu0GrktzNl9RiwWCHEiGYxRj RSNlZ+vxj1ldaOJd1c9ht8Pq1bEd/ALtDhwjRfNUgtzklzPWiGyGrCB50RD5WX5QLk 0w0ISrhSMIZwC2KUMT/5dJ5fyCeid2hb2icHUXXPWr499LtDe7I/WYdl8dmOGQ9046 T3TU3qCMk6jgQOq4TzSh8ngjpFOBfwPN2TALt7GJhRI8EhbH/ayqCqpksW4XrXytkG MBe15Y7m3JfKw== X-Nifty-SrcIP: [14.11.160.65] From: TAKAHASHI Yoshio To: bug-gnu-emacs@gnu.org Subject: 29.0.50; pcomplete does not search completion function in parent major mode Date: Sat, 05 Feb 2022 22:37:43 +0900 Message-ID: <87tudd5t94.fsf@yfb02119.nifty.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=210.131.2.76; envelope-from=yfb02119@nifty.com; helo=conuserg-09.nifty.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) hi, Is there any reason that `pcomplete-find-completion-function' does not search a completion function in parent major mode? My use case is: - In org-mode, I define some `org-link-abbrev-alist' enties. I can complete LINK in org-mode buffers, because org-mode defines `pcomplete/org-mode/link' in org-pcomplete.el. - But, in org-journal-mode buffers, that derived from org-mode, LINK completion fails. Nobody defines `pcomplete/org-journal-mode/link'. org-journal-mode will be able to define those pcomplete functions by itself as defalias to org-mode's counterpart. but if p-f-c-f searchs parent, grand parent, ... major mode during find completion function, p-f-c-f can find a completion function in parent major mode, and it will work in derived mode buffers. -- tkh