From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.devel Subject: widget-complete and C-g to hide *Completions* Date: Tue, 12 Jan 2021 21:19:13 -0300 Message-ID: <5ffe3c83.1c69fb81.8b3eb.1997@mx.google.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="29911"; 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 Wed Jan 13 01:23: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 1kzTws-0007ht-0e for ged-emacs-devel@m.gmane-mx.org; Wed, 13 Jan 2021 01:23:42 +0100 Original-Received: from localhost ([::1]:36976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzTwq-00043B-Sv for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Jan 2021 19:23:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzTsh-00080e-Oo for emacs-devel@gnu.org; Tue, 12 Jan 2021 19:19:24 -0500 Original-Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:40313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzTsc-0001Se-8e for emacs-devel@gnu.org; Tue, 12 Jan 2021 19:19:23 -0500 Original-Received: by mail-qk1-x736.google.com with SMTP id z11so157147qkj.7 for ; Tue, 12 Jan 2021 16:19:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:from:to:subject:date:mime-version; bh=+UvM2xakL4lg6Ziqqw5+v7eRkZFqhsqvIJP/Fuh2Apo=; b=mNLlG0aup+gv23fsQIRu/ccZ57txKwShAbtxxC6e/EIuNplZbn8vxf6Hg16HVGXsGq g2y5ZZSo0HUlAnWc2VUnTa4E3qbGItsl8eVMLjBtBfMr1LnIwCj52UFeawYfggXjX2w+ amMvOv8e4Imwtft9auEDnM5UPRE5pxjkUgbt7rsyyaV0HZq2cPtRHxIjsGhXYkH18HVJ i6IDu6cgmASmH0MzI6/XMCrORqbU0z8j7//LUNUIIbuwPu0pcymNUcpl0d6YezH2iSGM FkQ/gFSWRwupBMlFXOlJlsKgpeOAS32wMlniwjDKxEU4jyLpmq9W2iZ9v157PgU0vH3E gn3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:subject:date:mime-version; bh=+UvM2xakL4lg6Ziqqw5+v7eRkZFqhsqvIJP/Fuh2Apo=; b=jODBbCMeRG8kgJguhnoZSHrg+O5EekbBluaXceVGiMGwPoSfsOH+fur1bQdqF3s7br /KQKLRQHKyxqDr42ze7A8hHuT4iYeRN1njaQkSKEjoX4wBj8CVSpbcb3h6RZOtrkfIg2 tVtwmEPx15d8J6hZdaX3AKfaNw/19iNOKL1yA6AowOgLforUxt96CaCi9PyherLJxxjM PHVrDwyh1Mlj2kgozMkwGA//9hzsAaMFhZsbnymdVvqt3xsdM4/AZhrzWcU155gkoydA kr3GtEXwDiQETXdnfGJX35HBUNEy3mCoSzetG8PCGL2wBBcixjEHmTcZtRFKo8o3jZ9d IAHQ== X-Gm-Message-State: AOAM533U2mXyYnd64cdxnP4r+CW2kKrfn2PirY6idEAUQOWHBXlOW5t4 g90FKmU2jv0hbatsh6ZVrJPU+H07Uqg= X-Google-Smtp-Source: ABdhPJwttuW6mTVirQodsVPdhOdKcDrMBlh4BehA+YmW5FOri2LhbLT24CWibfIDhZP7XYgQWNnMLA== X-Received: by 2002:a05:620a:125b:: with SMTP id a27mr2325612qkl.372.1610497156668; Tue, 12 Jan 2021 16:19:16 -0800 (PST) Original-Received: from tbb-desktop ([201.213.132.172]) by smtp.gmail.com with ESMTPSA id q3sm228139qkq.118.2021.01.12.16.19.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Jan 2021 16:19:15 -0800 (PST) X-Google-Original-Message-ID: <87h7nlvgce.fsf@maurooaranda@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::736; envelope-from=maurooaranda@gmail.com; helo=mail-qk1-x736.google.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, 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.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:263026 Archived-At: When in some mode like emacs-lisp-mode, after the *Completions* buffer pops up, typing C-g will hide it (at least in emacs -Q). But when using widget-complete, which uses completion-in-region instead of completion-at-point, that doesn't happen. Test case would be like this: (defcustom foo "black" "..." :group 'emacs :type 'color) Eval and then M-x customize-option RET foo Move to the color widget and type C-k to erase the value. Then write something like "bl" and type C-M-i, to get the *Completions* buffer, with values "black", "blue", at least, hopefully. Type C-g: Quitting doesn't hide *Completions*, like in other modes (e.g., emacs-lisp-mode). I'd like to know why the use of completion-in-region in widget-complete doesn't turn on completion-in-region-mode, and what would be the steps to make that happen, but I got lost quickly in the completion code, so perhaps someone else can take a look. Is it required that completion-in-region-mode-predicate is non-nil? That is not documented, but the code seems to expect that.