From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: dabbrev-select-buffers-function project aware. Date: Mon, 17 Jan 2022 18:59:46 +0100 Message-ID: <87czkq5jli.fsf@Ergus.mail-host-address-is-not-set> References: <87czkq5jli.fsf.ref@Ergus.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38440"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 17 19:02:35 2022 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 1n9WKv-0009pM-HO for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Jan 2022 19:02:33 +0100 Original-Received: from localhost ([::1]:56272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9WKu-0004l0-BH for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Jan 2022 13:02:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9WJ1-0003Ry-7k for emacs-devel@gnu.org; Mon, 17 Jan 2022 13:00:36 -0500 Original-Received: from sonic314-14.consmr.mail.bf2.yahoo.com ([74.6.132.124]:44824) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9WIz-00072R-Hp for emacs-devel@gnu.org; Mon, 17 Jan 2022 13:00:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1642442431; bh=BPC9Ff7c6I3dRAgw6fYg3FiDynwqLeUPoAGtvhalRzI=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=dAwRGKKXYnOt7wgQMTCP4EvgAV+igOEoDNSn3XhGIT/N900luy1YFhSKL9aX7m3lVoJxnVWgpYMbldkr4Mdhd7Te//xe4u87LtNnNgpTmgAm+k25y2PX2nBbWy31yfgHG0qkWCTxZGMlPiaEwyhXoJaBcAbCQw5/l27MbHyUfDTPN6c9HDrUfSKrG8UfIoTQv8c2i3M+khM8fblcDIGBUu619O7knhs7lp5HK4ujgPWMZrdVEcTC0n3dHwGPtBI9W3vw5/02rI2t14of5CLVCR6QCNNhnCf+xoxaKBAlNTTEMLCgFDtdh+Xw8NuPpG8bl/Dl4KzzOB+g7OhyB/dFPA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1642442431; bh=cwMC+LpAucHlfW2J5p1aDAp2ZHqE5H6EwZXaxHQaaOj=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=GHYutzRMOC9oicCg2TQ3qC52OkY/h3OnyhgovwfVaHDuG1vPfJvCTAn3xQ2azKw6lUWI9YaXaufTefXWFwyUkPw75CcedQdyEu66sSv7R7gPNx8QxnjRPlzctrfwf/bFVP2e0pEifeNcq7RVz6B2Bc6zorsRRB08M1f7cayA1PIG2ewDQMhIpnrdBul+Qw6EFr/B8aVF5SXTKrnJp6j1KX4bEyRUlvKOL5GtVBphgyfi0OjVqPgD7RtmoqIF63ultpw4q3kfa3LEIReeXsMHWDNzGo7/fKrl8ulPIYMZCr0ajHDWemgr+0uVLMhr4MRgFgstM5G1hTkTDEptzPGtyg== X-YMail-OSG: kikLb48VM1m7Jt2zxP5BMudqWd0k_qIfegxUE6ZWbfTz5gEh42rbWj65OH4GPiN jEkjgktuF2n1w2hZFLzb0Q5oGXyta5_PhKq6Mhd2pUbPwaiQiG6WkcHwsLsG4PQXYEfvuI9cnhqN LUBY.bDsk_jBC.iaBEooLiykVkY5wz49jKRvXE9AWxISPs4sXEFXVERBVG19yBsXT3.rHc_bmKMc R2ro.SmegX_xrKzDPPvnIIuyIoxjBM4yUGgFUk42WLu1xY66kjcDSUdfTBIpc4zqaOB50dbF0ebz HMbBfwjxzlN6DmQewU3PqTo5T9.TMSIaqVJZMFxXXHcIPI.rvMoPiEA9L542RquIdohQQsakUp_k C9FGRBc.RH84jLtp3WgkK0cts0gmVO1ssvJPdbdkrcxpUU79orovO56CgnLIRt8h7coe7QOr08al vx.lORp4uYYpVKgKbApb9.j4OuRcirr_7nCAqEaS2OZxhgA8jLGqR_SQ2fdDPr23MEQfRtBcRZbs GEeuClOBWnn2iadV2dEem6I7e1TAe3nNdUJjm64tuLbEBnp7oYJ8z50r0Aml_qP1TN6Pmd7MiKgK IhP1jNhbUQbvrPs1288rMBuzYAP5J_mbjTgBJoQZWm6FCGg73_E21OVdf.DLhGwdxocOkDAR0Rcg dlgBAeWbOh9pUWVzJ77vkFshkxzv.LzIHc.6QBVdcjJisn3CFNswNnOr5LjfXLzeD.CdFbgIZ77y 1Zlh_t8e7gx3lTYpEPa3v8alTv.Aq_MKd2z8hjlZWXbFlObxl3MYB.cRvAL9Y5VrYjEWxYgMpgx6 6yOIgtWP_CTLUAQhZzFg2gMsMqPtftaub9YkuAaqp4 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Mon, 17 Jan 2022 18:00:31 +0000 Original-Received: by kubenode519.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 303817f087c77144cb294c0dea38b7b6; Mon, 17 Jan 2022 18:00:30 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.19594 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.132.124; envelope-from=spacibba@aol.com; helo=sonic314-14.consmr.mail.bf2.yahoo.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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.29 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:284891 Archived-At: Hi: I am trying to limit dabbrev to know about current project context qhen there is project-root. I am trying to implement a function to substitute `dabbrev--same-major-mode-p`, to add an extra condition to check if both buffers are in the same project. But some time in the past I reported some performance issue that was fixed, but I am wondering if this addition may worst instead of improve performance for dabbrev completion. Do we recommend anything special? Best, Ergus