From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: improve gud-gdb completion Date: Wed, 28 Jul 2021 10:50:20 -0400 Message-ID: <87czr2wl03.fsf@md5i.com> References: <86r1fi4jd3.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22863"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 28 17:01:42 2021 Return-path: Envelope-to: ged-emacs-devel@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 1m8l40-0005hO-LY for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Jul 2021 17:01:40 +0200 Original-Received: from localhost ([::1]:57918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8l3z-0000rt-7W for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Jul 2021 11:01:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8l2G-0008M1-TH for emacs-devel@gnu.org; Wed, 28 Jul 2021 10:59:52 -0400 Original-Received: from md5i.com ([75.151.244.229]:41388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8l2F-0004xb-6o for emacs-devel@gnu.org; Wed, 28 Jul 2021 10:59:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:References:Message-ID:Date:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=j3pwBaqwpVPfTrUY34wxvCmsWSkBXwYUktXRk1X0GPY=; b=iMFdbSJKFn/kD61A0fqjIr4N4k MWWWrjuAVbhVVNWIkvomr+Zct849zM9RnG0FkNCSKuPZStKYoH91NSoBvPpjCipI2pMXrvcekU8WO U2rAZIueOTFgsjKFMKfkXCrZt; Original-Received: from abode ([192.168.177.1] helo=miko) by md5i.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1m8l2D-000PZf-L9; Wed, 28 Jul 2021 10:59:49 -0400 In-Reply-To: <86r1fi4jd3.fsf@stephe-leake.org> (Stephen Leake's message of "Wed, 28 Jul 2021 07:13:12 -0700") Received-SPF: pass client-ip=75.151.244.229; envelope-from=mwd@md5i.com; helo=md5i.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271750 Archived-At: Stephen Leake writes: > I'd like to improve completion in gud-gdb. > > Currently, it completes on names in the buffer being debugged, but it > doesn't include "." in the name, so if I'm trying to print > "Incremental_Parser.Parse_Errors.Length", it only completes to > "Incremental_Parser". > > However, I can't figure out exactly what elisp code is harvesting names > from the buffer. > > TAB is bound to completion-at-point. > > completion-at-point-functions is > (gud-gdb-completion-at-point comint-completion-at-point t) > > (default-value 'completion-at-point-functions) is > (tags-completion-at-point-function) > > None of those completion functions look at the text in buffers. > > What am I missing? Are you certain that it looks at the text in buffers at all? If you look at gud-gdb-completions, you'll see that it uses gdb's completion mechanism based on symbols in the binary. -- Michael Welsh Duggan (md5i@md5i.com)