From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: TAKAHASHI Yoshio Newsgroups: gmane.emacs.bugs Subject: bug#53800: 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13912"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: 53800@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 05 14:39:19 2022 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 1nGLHb-0003QX-62 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 14:39:19 +0100 Original-Received: from localhost ([::1]:53704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGLHZ-0002vi-Lx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 08:39:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGLHK-0002va-Ar for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 08:39:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGLHK-0005tm-1b for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 08:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGLHJ-0004lt-T6 for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 08:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: TAKAHASHI Yoshio Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Feb 2022 13:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53800 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164406830718298 (code B ref -1); Sat, 05 Feb 2022 13:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Feb 2022 13:38:27 +0000 Original-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 Original-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 Original-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 Original-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 Original-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] 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-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" Xref: news.gmane.io gmane.emacs.bugs:226070 Archived-At: 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