From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: jonetsu Newsgroups: gmane.emacs.help Subject: Re: eshell TAB completion for executable files ? Date: Thu, 20 Jun 2019 14:07:51 -0400 Message-ID: <20190620140751.003ecdce@mistral> References: <20190620100804.79f65cba@mistral> <87wohgmh6f.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="230994"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 20 20:28:56 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1he1nr-000xvu-T8 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Jun 2019 20:28:56 +0200 Original-Received: from localhost ([::1]:52090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1he1np-0002jp-Tv for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Jun 2019 14:28:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42871) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1he1cC-0004es-Qr for help-gnu-emacs@gnu.org; Thu, 20 Jun 2019 14:16:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1he1TU-0006hf-Re for help-gnu-emacs@gnu.org; Thu, 20 Jun 2019 14:07:53 -0400 Original-Received: from pmta21.teksavvy.com ([76.10.157.36]:17900) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1he1TU-0006hB-Kt for help-gnu-emacs@gnu.org; Thu, 20 Jun 2019 14:07:52 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2F+AQA0ygtd/0Tb1BhlHQEBBQEHBQGBV?= =?us-ascii?q?gUBCwGCFkeBJyiEFoh7jAo1AY4jEYt2CQEBAToBAgEBhDoCAgEBAoJcJjcGDgE?= =?us-ascii?q?DAQEBBAEBAQEFAgJpikOFTAEEASMzFRMLCAMJEQIFDQETAgIPSBmFDQMOD6dCg?= =?us-ascii?q?TGIBSFLgUYiaigBi3SBP0CEIz6FDAIDgj2CNiIEk1qWFQmCE4FqiUCDX4RFJwy?= =?us-ascii?q?CHIcLg1GKOaYgI4FYcBU7gmyCTReOPCYwgQIBBgEBARUIEwUFAQGLXQ0XgiwBA?= =?us-ascii?q?Q?= X-IPAS-Result: =?us-ascii?q?A2F+AQA0ygtd/0Tb1BhlHQEBBQEHBQGBVgUBCwGCFkeBJyi?= =?us-ascii?q?EFoh7jAo1AY4jEYt2CQEBAToBAgEBhDoCAgEBAoJcJjcGDgEDAQEBBAEBAQEFA?= =?us-ascii?q?gJpikOFTAEEASMzFRMLCAMJEQIFDQETAgIPSBmFDQMOD6dCgTGIBSFLgUYiaig?= =?us-ascii?q?Bi3SBP0CEIz6FDAIDgj2CNiIEk1qWFQmCE4FqiUCDX4RFJwyCHIcLg1GKOaYgI?= =?us-ascii?q?4FYcBU7gmyCTReOPCYwgQIBBgEBARUIEwUFAQGLXQ0XgiwBAQ?= X-IronPort-AV: E=Sophos;i="5.62,397,1554782400"; d="scan'208";a="95320707" Original-Received: from 24-212-219-68.cable.teksavvy.com (HELO mistral) ([24.212.219.68]) by smtp.teksavvy.com with ESMTP; 20 Jun 2019 14:07:51 -0400 In-Reply-To: <87wohgmh6f.fsf@telefonica.net> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.36 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120992 Archived-At: On Thu, 20 Jun 2019 17:04:40 +0200 =C3=93scar Fuentes wrote: > It should. Please describe how to reproduce the problem starting with >=20 > emacs -Q >=20 > Which OS are you using? Linux. Although with 'emacs -Q' it works fine. So there must be something somewhere in the .emacs file that's altering this behaviour. I've added yesterday a snippet in order to have a better prompt in eshell. By better I mean that when it's located in a folder whose path is quite long, I'd like to have the cursor right at the first column and not way down to the right, sometimes unseen. So took the following from the emacs wiki: (defmacro with-face (str &rest properties) `(propertize ,str 'face (list ,@properties))) (defun shk-eshell-prompt () (let ((header-bg "")) (concat (with-face (concat (eshell/pwd) " ") :background header-bg) ;; (with-face (format-time-string "(%Y-%m-%d %H:%M) " (current-time)) :background header-bg :foreground "#888") (with-face (or (ignore-errors (format "(%s)" (vc-responsible-backend default-directory))) "") :background header-bg) (with-face "\n" :background header-bg) ;; (with-face user-login-name :foreground "white") ;; "@" ;; (with-face "localhost" :foreground "green") (if (=3D (user-uid) 0) (with-face " #" :foreground "red") "%") " "))) (setq eshell-prompt-function 'shk-eshell-prompt) (setq eshell-highlight-prompt nil) Of which I commented out some things I did not want and also redefined header-bg from a white colour to nothing. Commenting out that snippet and retesting, the behaviour becomes as expected. So there's something in that snippet that "kills" the completion feature regarding executable files. It will complete with C source file of the same name, but not with the executable. I'm certainly no expert, far from it, in lisp and emacs so I can't see what that could be.