From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Switch eshell to simple bash-style completion? Date: Sun, 17 Sep 2017 02:55:43 +0200 Message-ID: <86r2v69m9c.fsf@zoho.com> References: <1505607344.30946.2.camel@qlfiles.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1505609781 21205 195.159.176.226 (17 Sep 2017 00:56:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Sep 2017 00:56:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 17 02:56:17 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtNse-0005M6-Cb for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Sep 2017 02:56:16 +0200 Original-Received: from localhost ([::1]:59004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtNsl-0006bR-Qw for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Sep 2017 20:56:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtNsJ-0006as-79 for help-gnu-emacs@gnu.org; Sat, 16 Sep 2017 20:55:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtNsG-0001Uq-3h for help-gnu-emacs@gnu.org; Sat, 16 Sep 2017 20:55:55 -0400 Original-Received: from [195.159.176.226] (port=58498 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dtNsF-0001Qp-Lr for help-gnu-emacs@gnu.org; Sat, 16 Sep 2017 20:55:52 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dtNs6-0004LP-37 for help-gnu-emacs@gnu.org; Sun, 17 Sep 2017 02:55:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:YBpGmmYMpX4Jn+6JMXYTHsJpRmc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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:114293 Archived-At: Christopher Howard wrote: > Hi, I've been enjoying using eshell more and > more, but I can't get used to the default > completion method where it picks the most > recently modified and then cycles through. > Can I make it act like bash and just complete > up to the last unambiguous letter? I see some > relevant looking variables, but am not sure > what to do with them. Probably what you see is `eshell-command-completion-function', and usually when there are alternatives those are given in the help - also, I can't find any - so probably you'll have to implement the bash style yourself :) (Perhaps not as difficult as it sounds if you can find and reuse some similar completion mechanism already in Emacs!) You could just use M-x shell RET if it is just a bash window you are looking for, of course. -- underground experts united http://user.it.uu.se/~embe8573