From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gary Oberbrunner Newsgroups: gmane.emacs.bugs Subject: bug#53490: 29.0.50; Completion in shell mode fails to complete "then" keyword Date: Sun, 23 Jan 2022 21:31:56 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e0533905d64ac69c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11651"; mail-complaints-to="usenet@ciao.gmane.io" To: 53490@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 24 03:33:13 2022 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 1nBpAO-0002pR-2G for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jan 2022 03:33:12 +0100 Original-Received: from localhost ([::1]:46920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBpAM-0006Nt-TP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 21:33:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBpAF-0006Nh-CJ for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 21:33:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48705) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBpAE-0003Ar-MH for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 21:33:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBpAE-0004Zm-Bw for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 21:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gary Oberbrunner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jan 2022 02:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53490 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164299155017533 (code B ref -1); Mon, 24 Jan 2022 02:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jan 2022 02:32:30 +0000 Original-Received: from localhost ([127.0.0.1]:41608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBp9h-0004Yi-Ao for submit@debbugs.gnu.org; Sun, 23 Jan 2022 21:32:29 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:48990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBp9e-0004Ya-L3 for submit@debbugs.gnu.org; Sun, 23 Jan 2022 21:32:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBp9e-0006Hp-Em for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 21:32:26 -0500 Original-Received: from [2a00:1450:4864:20::52b] (port=36412 helo=mail-ed1-x52b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBp9X-00036b-Ec for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 21:32:25 -0500 Original-Received: by mail-ed1-x52b.google.com with SMTP id l5so36831372edv.3 for ; Sun, 23 Jan 2022 18:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oberbrunner.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=GEra0LDB25S2Q16aCSnvKnZYxjgsfiUa8ll7WKAKui4=; b=fAUvwSrNQ0ZnHsXqocLfRVZG9ozAUpNRqnvl5hMn9akSKsPAcZI2fCxBou8GwDdxeg 7RRkSjz9RmJYz9Jzo6h5JopTYotwJHaWKaaCA2KXW40uyItpW98FuMgy5zGvT915NlqJ odSonbGEgNYXPSFamEFRoIQG7MYvfpqgkmX47Hw0pV5CJvD8eqV1gNAQMPLzDrgCOomg yDKcmK02A9TmrANFLjqqLsRmVVc8Dh5m7BdrgRSlnAUIqpGc3dtHYxYgW3HDojPiM85j fvpgY1pspEla03RykSqyP1BI8SmefSK+8m3sNjIgqkgqG4DM/O+ND6vVVaj/MEqdwqAP xHSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GEra0LDB25S2Q16aCSnvKnZYxjgsfiUa8ll7WKAKui4=; b=P29OJUugzXkDxFlUcNLUmuavks8JRb2p8521U/Zq9WpJUufBuoxwSEg0QOHseIPIef KEldApjyx5wniET34ZZbO05Nl0eoTfs6qIvXRlrmitvXowmZdT7bpTlGfIf4uFYKrJWk o6tDiC0ZrWdABIRUX0ft8+cg4GXnVsgfnxi6zEMS1hWDev4pPZc92vw5f+gdAkUVXzuW QhTBvQrYL3gYf4zd0vHfomRb5B1cIwuKfZ5DjVVheQHB1PcqGgrdqMqi5V+Q714xAgP0 zfnbhhpjp81i5WG/Y2XRMVTfk8rpqtiIEPCi+HpsNCerng9l+IhTv+8FK1vC6894Jj8U ugBw== X-Gm-Message-State: AOAM532MWU3id3yC7qj8u812nLyFcnmi3YWOXv/eqmflhADepTL3g/tl LFx1gPzrG+deeP8aVvYiPGrQsCnTNOA6E5eeICw2003Bx87lqg== X-Google-Smtp-Source: ABdhPJyIdIaPuC3w2XHxAE4ycqy+zCLtx3YGv83C2CwWOFpREQBbxoi4WyPZ4V1U5T0krrLBpz6SQEpDmjM18ms1Bq4= X-Received: by 2002:a05:6402:1693:: with SMTP id a19mr14047720edv.247.1642991536062; Sun, 23 Jan 2022 18:32:16 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52b (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=garyo@oberbrunner.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" Xref: news.gmane.io gmane.emacs.bugs:224986 Archived-At: --000000000000e0533905d64ac69c Content-Type: text/plain; charset="UTF-8" Completion in shell mode fails to find a simple "then" keyword as a possible completion. Instead, it just lists some executables on the $PATH starting with the completion text. Those are fine, but I would expect the "then" keyword to be among the completion possibilities. This is using Emacs build from master on 2022-01-18, Linux Ubuntu 20.04 running in WSL in Windows 11. To reproduce: * Start emacs -Q * Type C-x C-f foo.sh * Type "if true; the" * Type M-: (completion-help-at-point) Actual Results: (your results will vary; these are executables beginning with "the" on my $PATH): In this buffer, type RET to select the completion near point. Possible completions are: themecpl.dll themeservice.dll themeui.dll Expected results: the keyword "then" should be among the suggested completion candidates. In GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2022-01-18 built on tower1 Repository revision: f558c35a93de16f21c6a23c8af42fcbc4a617e08 Repository branch: master System Description: Ubuntu 20.04.3 LTS Configured using: 'configure --prefix=/usr/local --with-native-compilation --with-json 'CFLAGS=-O3 -mtune=native -march=native -fomit-frame-pointer' --without-makeinfo' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_ALL: value of $LC_COLLATE: C value of $LANG: en_US.utf-8 locale-coding-system: utf-8-unix Major mode: Shell-script Minor modes in effect: sh-electric-here-document-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils pcase edebug backtrace pp cl-print misearch multi-isearch jka-compr find-func cl-extra shortdoc text-property-search seq completion thingatpt help-fns radix-tree help-mode cl-loaddefs cl-lib sh-script smie executable term/xterm xterm gv subr-x byte-opt bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd 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 cl-generic 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 simple abbrev obarray cl-preloaded nadvice button 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 lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 90451 9251) (symbols 48 7360 1) (strings 32 24333 2637) (string-bytes 1 760555) (vectors 16 12189) (vector-slots 8 267044 6243) (floats 8 75 399) (intervals 56 555 0) (buffers 992 16)) -- Gary --000000000000e0533905d64ac69c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Completion in shell mode fails to find a simple "then= " keyword as a
possible completion. Instead, it just lists some exe= cutables on the
$PATH starting with the completion text. Those are fine,= but I would
expect the "then" keyword to be among the complet= ion possibilities.

This is using Emacs build from master on 2022-01-= 18, Linux Ubuntu
20.04 running in WSL in Windows 11.

To reproduce= :

* Start emacs -Q
* Type C-x C-f foo.sh
* Type "if true;= the"
* Type M-: (completion-help-at-point)

Actual Results: = (your results will vary; these are executables
beginning with "the&= quot; on my $PATH):

=C2=A0 In this buffer, type RET to select the co= mpletion near point.

=C2=A0 Possible completions are:
=C2=A0 them= ecpl.dll
=C2=A0 themeservice.dll
=C2=A0 themeui.dll

Expected r= esults: the keyword "then" should be among the suggested
compl= etion candidates.

In GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu= , GTK+ Version 3.24.20, cairo version 1.16.0)
=C2=A0of 2022-01-18 built = on tower1
Repository revision: f558c35a93de16f21c6a23c8af42fcbc4a617e08<= br>Repository branch: master
System Description: Ubuntu 20.04.3 LTS
<= br>Configured using:
=C2=A0'configure --prefix=3D/usr/local --with-n= ative-compilation --with-json
=C2=A0'CFLAGS=3D-O3 -mtune=3Dnative -m= arch=3Dnative -fomit-frame-pointer'
=C2=A0--without-makeinfo'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GP= M GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML= 2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP S= OUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB

= Important settings:
=C2=A0 value of $LC_ALL:
=C2=A0 value of $LC_COL= LATE: C
=C2=A0 value of $LANG: en_US.utf-8
=C2=A0 locale-coding-syste= m: utf-8-unix

Major mode: Shell-script

Minor modes in effect:=
=C2=A0 sh-electric-here-document-mode: t
=C2=A0 tooltip-mode: t
= =C2=A0 global-eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric= -indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 globa= l-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode= : t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 in= dent-tabs-mode: t
=C2=A0 transient-mark-mode: t

Load-path shadows= :
None found.

Features:
(shadow sort mail-extr emacsbug messag= e mailcap yank-media rmc puny
dired dired-loaddefs rfc822 mml mml-sec pa= ssword-cache epa derived epg
rfc6068 epg-config gnus-util time-date mm-d= ecode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailhe= ader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils p= case edebug backtrace
pp cl-print misearch multi-isearch jka-compr find-= func cl-extra shortdoc
text-property-search seq completion thingatpt hel= p-fns radix-tree
help-mode cl-loaddefs cl-lib sh-script smie executable = term/xterm xterm
gv subr-x byte-opt bytecomp byte-compile cconv iso-tran= sl tooltip eldoc
paren electric uniquify ediff-hook vc-hooks lisp-float-= type elisp-mode
mwheel term/x-win x-win term/common-win x-dnd tool-bar d= nd fontset image
regexp-opt fringe tabulated-list replace newcomment tex= t-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow is= earch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax f= ont-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8= -lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese euc= jp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic india= n
cyrillic chinese composite emoji-zwj charscript charprop case-tableepa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
= button loaddefs faces cus-face macroexp files window text-properties
ove= rlay sha1 md5 base64 format env code-pages mule custom widget keymap
has= htable-print-readable backquote threads dbusbind inotify lcms2
dynamic-s= etting system-font-setting font-render-setting cairo
move-toolbar gtk x-= toolkit x multi-tty make-network-process
native-compile emacs)

Me= mory information:
((conses 16 90451 9251)
=C2=A0(symbols 48 7360 1)=C2=A0(strings 32 24333 2637)
=C2=A0(string-bytes 1 760555)
=C2=A0(= vectors 16 12189)
=C2=A0(vector-slots 8 267044 6243)
=C2=A0(floats 8 = 75 399)
=C2=A0(intervals 56 555 0)
=C2=A0(buffers 992 16))
--
Gary
--000000000000e0533905d64ac69c--