From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Leung via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#48995: 28.0.50; Within eshell, company completion for cd-less directory-changing wipes out all but the most recent subdirectory Date: Sun, 13 Jun 2021 05:23:18 +0200 (CEST) Message-ID: <1357001210.293856.1623554598367@ichabod.co-bxl> Reply-To: Brian Leung Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8494"; mail-complaints-to="usenet@ciao.gmane.io" To: 48995@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 13 05:24:09 2021 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 1lsGjI-0001ym-K7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Jun 2021 05:24:08 +0200 Original-Received: from localhost ([::1]:39422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsGjH-0001dp-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Jun 2021 23:24:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsGjC-0001dh-F2 for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2021 23:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59118) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsGjC-0000WV-7F for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2021 23:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lsGjC-00007l-4H for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2021 23:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Brian Leung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Jun 2021 03:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48995 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug Gnu Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.1623554614438 (code B ref -1); Sun, 13 Jun 2021 03:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jun 2021 03:23:34 +0000 Original-Received: from localhost ([127.0.0.1]:42431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsGij-000070-P3 for submit@debbugs.gnu.org; Sat, 12 Jun 2021 23:23:34 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsGih-00006r-Tz for submit@debbugs.gnu.org; Sat, 12 Jun 2021 23:23:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsGih-0001Xe-O0 for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2021 23:23:31 -0400 Original-Received: from wilbur.contactoffice.com ([212.3.242.68]:45348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsGic-0008O5-ME for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2021 23:23:31 -0400 Original-Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36]) by wilbur.contactoffice.com (Postfix) with ESMTP id 06078A2B for ; Sun, 13 Jun 2021 05:23:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1623554602; s=20210208-e7xh; d=mailfence.com; i=leungbk@mailfence.com; h=Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:To:Subject:Reply-To:From; l=5064; bh=AIQO3zR/sxcNjveABCXC1cXFgSaSAqbjZQnVlK5euTQ=; b=whdtN+VAukYMWtzBUK5y0WK99mqTt1ESdDQ6R+FHdP7TQq44FEAkqxpZ/3mnFsWX ZWs5i7dyIL9yT5glzNw98zlBrqc14J8OFk1vUkbv4Hesb1mYJtCIUmwWbfItTk8mcLI UuzgC/z4xqpKm5oc/EOGVZ34Xt5XVexhzSzcZPhMz5Edi4cvEShJPRwkN08+Zx8UUZG trqb7GqSk9v83q08IE16L8FGqcAVojzWEuKiQMPA58NE3vkvQXaIGGtoSg69Ahbs/3/ Kdl0TMWOEz6a/NFPbvVHQKEqgete6CLcpoglcv3kqsTPycy4loIxPHw5lNp93aS5TE6 mhnRIf9kEw== X-Priority: 3 X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:225491745 Received-SPF: pass client-ip=212.3.242.68; envelope-from=leungbk@mailfence.com; helo=wilbur.contactoffice.com 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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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" X-ACL-Warn: , Brian Leung Xref: news.gmane.io gmane.emacs.bugs:208404 Archived-At: With an init file like > (require 'company) > (global-company-mode 1) I run > mkdir ~/apple ~/apple/ball ~/apple/ball/caterpillar ~/apple/ball/catnip > emacs -q -l above-init.el and start Eshell in the home directory. At the Eshell prompt, I type > apple/ball/cat and am presented with two candidates for completion in the Company popup. Choosing either one will complete with that subdirectory alone (for example, "catnip/" instead of something like the desired "/home/alice/apple/ball/catnip/"). This issue appears only in Emacs 28; if I perform the same experiment with the latest rev of origin/emacs-27, the completion correctly completes with the full path. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.16.0) Repository revision: 0afab352e02d7070a8ced2af53c1d01217400cdf Repository branch: master System Description: NixOS 21.11 (Porcupine) Configured using: 'configure --prefix=/nix/store/9ywhrly5lb0565d7kz830j339hiwm4hg-emacs-gcc-20210612.0 --disable-build-details --with-modules --with-x-toolkit=gtk3 --with-xft --with-cairo --with-native-compilation' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON 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 $EMACSLOADPATH: value of $EMACSNATIVELOADPATH: /nix/store/qf9ylv3vh988ls6y2fpmm6y4gk9mvka4-emacs-packages-deps/share/emacs/native-lisp:: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Eshell Minor modes in effect: shell-dirtrack-mode: t eshell-prompt-mode: t eshell-hist-mode: t eshell-pred-mode: t eshell-cmpl-mode: t eshell-proc-mode: t eshell-arg-mode: t global-company-mode: t company-mode: t gpm-mouse-mode: t tooltip-mode: t global-eldoc-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 transient-mark-mode: t Load-path shadows: /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/qf9ylv3vh988ls6y2fpmm6y4gk9mvka4-emacs-packages-deps/share/emacs/site-lisp/site-start /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/9ywhrly5lb0565d7kz830j339hiwm4hg-emacs-gcc-20210612.0/share/emacs/site-lisp/site-start Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source password-cache json map text-property-search 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 cl-extra help-mode em-unix em-term term shell ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs esh-var em-cmpl pcomplete comint ansi-color em-basic em-banner em-alias esh-mode eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util company-oddmuse company-keywords company-etags etags fileloop generator xref cl-seq project eieio eieio-core cl-macs eieio-loaddefs ring company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company edmacro kmacro pcase subr-x cl-loaddefs cl-lib t-mouse term/linux jka-compr seq byte-opt gv bytecomp byte-compile cconv disp-table iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-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 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 hashtable-print-readable backquote threads dbusbind inotify 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 109316 9452) (symbols 48 9713 0) (strings 32 31428 1928) (string-bytes 1 1096160) (vectors 16 17532) (vector-slots 8 361930 8072) (floats 8 54 296) (intervals 56 248 0) (buffers 992 12)) -- Mailfence.com Private and secure email