From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Morgan Willcock Newsgroups: gmane.emacs.bugs Subject: bug#73234: 30.0.91; completion-preview-mode doesn't trigger for case-insensitive capf Date: Fri, 13 Sep 2024 20:23:06 +0100 Message-ID: <875xqzicit.fsf@ice9.digital> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40504"; mail-complaints-to="usenet@ciao.gmane.io" Cc: me@eshelyaron.com To: 73234@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 13 21:24:18 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 1spBtx-000AOv-NC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Sep 2024 21:24:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spBtd-0001O5-47; Fri, 13 Sep 2024 15:23:57 -0400 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 1spBtZ-0001Nt-Ms for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2024 15:23:53 -0400 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 1spBtZ-0001zf-Cc for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2024 15:23:53 -0400 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:From:To:Subject; bh=WwQ3P+/o6oyvBN5rjWhJBkQCQn93L7N6S255tpLU9KA=; b=MRkGF8VDuX08zsP05FD7OHY8tUJxwrzUTpbL5YjacpcRVlawniJ/EH3RLzrcjRIrNEf1vsnqS4ZusN1Bdo4UlsxKzhOtz99CWti85ktz6REqgOSp3jB+Z2GGVd+oRz3rlt4X6ZJ9LeFOlApJXAQTmTpg25wDiEUpspkbyb48IddKvWjscWxUdKyf3GquGuu7Az+vOCD40zGHk5aTe/W1fxK3tQDghgfhfsen1mSl9qTRxhbJbeDp0guySjZWINDChSJDRdwlTe6laeKFhgj/P/DnECw9FsO/jBhfnIVYLCfK0BRE+qeZdX1UstLKH84rQtTsAxiEGgd597uh/xHa6Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spBti-0003FD-Kt; Fri, 13 Sep 2024 15:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Morgan Willcock Original-Sender: "Debbugs-submit" Resent-CC: me@eshelyaron.com, bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2024 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73234 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: me@eshelyaron.com Original-Received: via spool by submit@debbugs.gnu.org id=B.172625541912435 (code B ref -1); Fri, 13 Sep 2024 19:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Sep 2024 19:23:39 +0000 Original-Received: from localhost ([127.0.0.1]:44281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spBtK-0003ET-Ks for submit@debbugs.gnu.org; Fri, 13 Sep 2024 15:23:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spBtI-0003EL-Ih for submit@debbugs.gnu.org; Fri, 13 Sep 2024 15:23:37 -0400 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 1spBt8-0001Lt-BL for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2024 15:23:26 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spBt3-0001vr-VS for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2024 15:23:25 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 78BF260003 for ; Fri, 13 Sep 2024 19:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ice9.digital; s=gm1; t=1726255394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=WwQ3P+/o6oyvBN5rjWhJBkQCQn93L7N6S255tpLU9KA=; b=b+EMrkokDM4EjdZMiXUA3pw2pZk0KhGLUfXLi0Ho2HOf715LH4zpirW283PQgReCQnulgL MrF2NDxMhz1aDy0W3NDWEgNnO6DON+7Fxuv6nDuI3t6tT7uhgi6LN26LPi0kmX7gwA3cba QEPhWdQjmlzZBm4OSkqZCX3cjnl46kGK9TFYecYA1Hru1kj29j9zuusWcc0vsK1X+5qtht yA8DM4mZ+5qZDa4EQQCZ6BB1nf6rgJD8xj39oyZ2C0fhK8hCDXBzfGR7LEDrTl834Np4E5 QuRghkZ4JV5XHWi2cc2I0nXHKrQSUUWnqj+/nPhOZf5dZ546yRAJtkvOY24jqw== X-GND-Sasl: morgan@ice9.digital Received-SPF: pass client-ip=217.70.183.195; envelope-from=morgan@ice9.digital; helo=relay3-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291671 Archived-At: I believe there is an issue with completion-preview-mode in that it doesn't seem to find all completions for a case-insensitive completion at point function. Evaluating the code below in `emacs -Q` will put the current buffer into fundamental mode with a case-insensitive completion at point function: (defun test-completion-at-point-function () "Complete the symbol at point." (pcase (bounds-of-thing-at-point 'symbol) (`(,beg . ,end) (list beg end (completion-table-case-fold (completion-table-dynamic (lambda (string) (list "TestSymbol")))))))) (fundamental-mode) (remove-hook 'completion-at-point-functions #'tags-completion-at-point-function) (add-hook 'completion-at-point-functions #'test-completion-at-point-function) (completion-preview-mode 1) Once the code is evaluated: - Typing "tes" into the buffer will not display the completion preview. - The default completion mechanism (as initiated with complete-symbol via C-M-i) will work with no problems, and replace "tes" with the completion "TestSymbol". - Typing "Tes" into the buffer will display the completion preview. I would expect that the completion preview should be displayed for both "tes" and "Tes" since a completion is available to use in both cases. In GNU Emacs 30.0.91 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2024-09-12 built on inspiron Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --with-native-compilation=aot --with-xml2 --with-x-toolkit=lucid' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: server-mode: t global-corfu-mode: t corfu-mode: t jabber-activity-mode: t etags-regen-mode: t which-key-mode: t global-devil-mode: t devil-mode: t erc-ring-mode: t erc-netsplit-mode: t erc-menu-mode: t erc-list-mode: t erc-irccontrols-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t erc-imenu-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-spelling-mode: t erc-track-mode: t erc-match-mode: t erc-autojoin-mode: t erc-networks-mode: t savehist-mode: t minibuffer-electric-default-mode: t minibuffer-depth-indicate-mode: t ido-everywhere: t recentf-mode: t global-display-fill-column-indicator-mode: t display-fill-column-indicator-mode: t global-hl-line-mode: t display-time-mode: t flyspell-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/mwillcock/.emacs.d/custom/powershell.el/powershell hides /home/mwillcock/.emacs.d/custom/powershell /home/mwillcock/.emacs.d/elpa/which-key-3.6.1/which-key hides /usr/local/share/emacs/30.0.91/lisp/which-key /home/mwillcock/.emacs.d/elpa/modus-themes-4.5.0/theme-loaddefs hides /usr/local/share/emacs/30.0.91/lisp/theme-loaddefs Features: (shadow sort ecomplete mail-extr emacsbug cursor-sensor server cal-iso autorevert face-remap init corfu sly sly-completion sly-buttons sly-messages sly-common apropos etags fileloop arc-mode archive-mode hyperspec powershell php-mode mode-local consult-imenu consult php-face php php-project jabber jabber-ourversion hippie-exp hexrgb fsm sgml-mode facemenu srv dns starttls tls goto-addr yaml-mode markdown-mode lua-mode advice edmacro kmacro etags-regen kixtart-docstrings cape kixtart-mode tempo org-msg let-alist color ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-attach htmlize gnus-msg gnus-icalendar icalendar gnus-dired gnus-cite which-key devil delight comp comp-cstr ags-mode speedbar ezimage dframe shadowfile eglot jsonrpc xref flymake diff ert ewoc debug backtrace warnings python project cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs erc-ring erc-netsplit erc-menu erc-list erc-goodies erc-imenu imenu erc-pcomplete erc-button erc-fill erc-stamp erc-sasl erc-sasl-ecdsa-nist256p-challenge erc-sasl-scram-sha-512 erc-sasl-scram-sha-256 erc-sasl-scram-sha-1 erc-sasl-external erc-sasl-plain sasl-scram-sha256 sasl-scram-rfc sasl-scram-sha-1 rfc2104 hex-util sasl sasl-anonymous sasl-login sasl-plain erc-spelling erc-track erc-match erc-join erc erc-backend erc-networks erc-common erc-compat compat erc-loaddefs ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util vc-git diff-mode track-changes vc-dispatcher org-indent oc-basic cl-extra ol-eww eww url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 gnus-sum ol-docview doc-view filenotify jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi appt diary-lib diary-loaddefs org-capture ob-shell ob-plantuml ob-dot org-goto org-clock comp-run comp-common org-duration org-agenda org-element org-persist org-id org-element-ast inline avl-tree generator org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie treesit executable ob-comint org-pcomplete org-list org-footnote org-faces org-entities noutline outline ob-emacs-lisp ob-core ob-eval org-version org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs thingatpt org-compat org-macs autoinsert compile bookmark savehist crm minibuf-eldef mb-depth ido tramp-cache time-stamp tramp-sh tramp rx trampver tramp-integration files-x tramp-message tramp-compat xdg format-spec tramp-loaddefs recentf tree-widget shell pcomplete comint ansi-osc ansi-color ring easy-mmode display-fill-column-indicator hl-line time gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus nnheader range cus-edit pp cus-load wid-edit dictionary external-completion dictionary-connection flyspell ispell shr pixel-fill kinsoku url-file svg xml dom modus-vivendi-theme modus-themes mm-view mml-smime smime gnutls dig smtpmail message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader epg-config help-mode dabbrev find-func cal-menu calendar cal-loaddefs desktop frameset pcase cape-autoloads consult-autoloads corfu-autoloads delight-autoloads do-at-point-autoloads fsm-autoloads htmlize-autoloads lua-mode-autoloads markdown-mode-autoloads modus-themes-autoloads package-lint-autoloads php-mode-autoloads rainbow-mode-autoloads renpy-mode-autoloads sly-autoloads totp-auth-autoloads base32-autoloads info vertico-autoloads wgrep-autoloads which-key-autoloads yaml-mode-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 1662552 108846) (symbols 48 50603 5) (strings 32 260961 5577) (string-bytes 1 7128489) (vectors 16 148988) (vector-slots 8 2543291 190764) (floats 8 781 818) (intervals 56 123265 150) (buffers 984 21))