From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74410: 31.0.50; completion-at-point doesn't work in custom buffers Date: Wed, 20 Nov 2024 18:31:07 -0500 Message-ID: References: <871pz62v0o.fsf@mail.linkov.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8431"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74410@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 21 00:32:29 2024 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 1tDuBQ-00022D-0X for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Nov 2024 00:32:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDuB6-0003CX-Ax; Wed, 20 Nov 2024 18:32:08 -0500 Original-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 1tDuB1-0003CB-84 for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 18:32:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tDuB0-00067w-Vk for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 18:32:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=R2d3U1IJUGG/MwRShsfxNyw0E4Smx2BvyuRhxmPE3wE=; b=vk9N9RvgOvC7A1sqIltSGBNpStd+Y1h5CqX4pizrdwe8XYQvyFhJRA5fpG/OoKQgFSAxJNSrlCbGjS6xpOn2U+z9RKZwhKrgFE3ft40l16OhtCYU4YlFATvbmc5DgNkBPsuSzVj4cW38aV/JcxF/M2Za19XkfXG2vCxBpAdBmkBHdeRhtNo4J9o3NK1C8pUkDyHV8KKBARzqyKOQMZnpoBGZ0pIZ4Q169TSYyhGCcNzeUG+Ju+Ar5wr1oQWHQnX1QlNuQjtrVNnZfyx0A1IRB9JU2FdlDUUbDJRJdQ8aDEvb113mDfUDZhdNzFxoNu8gndNecJtE1ySIYmDy/jfmgQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDuAz-0006oI-PF for bug-gnu-emacs@gnu.org; Wed, 20 Nov 2024 18:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Nov 2024 23:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74410 X-GNU-PR-Package: emacs Original-Received: via spool by 74410-submit@debbugs.gnu.org id=B74410.173214548226124 (code B ref 74410); Wed, 20 Nov 2024 23:32:01 +0000 Original-Received: (at 74410) by debbugs.gnu.org; 20 Nov 2024 23:31:22 +0000 Original-Received: from localhost ([127.0.0.1]:48258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDuAM-0006nI-E4 for submit@debbugs.gnu.org; Wed, 20 Nov 2024 18:31:22 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:59305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDuAK-0006n5-7z for 74410@debbugs.gnu.org; Wed, 20 Nov 2024 18:31:21 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 59D56100126; Wed, 20 Nov 2024 18:31:13 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1732145468; bh=eQCV2hIYemrCIaZNuuB/Vr9rN2/eHYeRCLfq8m44WFc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=g/q6iT4RWZwDw0VLwgiPGPpwNR//STYmdB2+zyh2nbtP8C4OmjsgszvbqvIcXPbeV ps5fpybNvYK0oa+tQW31AVdIC5PqECYEtQk+/d5U9XraOY9vbQe+iTgLksrH7c3akm ec6qYc3VXoSD9c6kLCdt4IIIIkRyVQpV01ONdxNKFZPJGabeC0G64XffOOBWVJe4EU 1aH54X7jedgUAZirYCaxxDTxVpnMT19vaawQdNyQoeMzor1AxVbTerq4B8WOXwQMfw 6dvRDTcJFuvK7ffoWBMyWTgJdOl0QQyDr6J2ShsaLMyzuiCZ9E7f1+4FRvbiFV/uR1 D17jn100axeUQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 57B0D100042; Wed, 20 Nov 2024 18:31:08 -0500 (EST) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 452C6120317; Wed, 20 Nov 2024 18:31:08 -0500 (EST) In-Reply-To: <871pz62v0o.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 20 Nov 2024 09:57:59 +0200") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295705 Archived-At: > Currently this works only when typing 'M-x completion-at-point RET', > not by 'M-C-i' that is bound to 'widget-complete'. Maybe > 'M-C-i' should be rebound to 'completion-at-point' in widgets? Maybe it would make even more sense to just remove the `widget-complete` binding since M-TAB should already be bound appropriately, but the problem is that we don't know that the code which inserts the widget into a buffer has properly setup the `completion-at-point-functions` hook for `completion-at-point` to work. Maybe we should try and detect when that is not the case and emit a warning if so (with the hope to be able to obsolete `widget-complete` in some future version). Stefan