From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#31765: 26.1; Can't define alias for git in eshell Date: Sat, 9 Jun 2018 00:08:55 -0300 Message-ID: References: <87vaask6mj.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1528513688 11497 195.159.176.226 (9 Jun 2018 03:08:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2018 03:08:08 +0000 (UTC) To: 31765@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 09 05:08:04 2018 Return-path: Envelope-to: geb-bug-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 1fRUEV-0002vD-Ov for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2018 05:08:04 +0200 Original-Received: from localhost ([::1]:38845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRUGc-0004cG-TL for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jun 2018 23:10:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRUGS-0004c9-Mp for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2018 23:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRUGR-0007T9-3U for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2018 23:10:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRUGQ-0007Sw-UY for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2018 23:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fRUGQ-000352-Md for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2018 23:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jun 2018 03:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31765 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152851376911797 (code B ref -1); Sat, 09 Jun 2018 03:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jun 2018 03:09:29 +0000 Original-Received: from localhost ([127.0.0.1]:40188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRUFt-00034C-5n for submit@debbugs.gnu.org; Fri, 08 Jun 2018 23:09:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fRUFs-000340-1E for submit@debbugs.gnu.org; Fri, 08 Jun 2018 23:09:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRUFk-0006z0-R9 for submit@debbugs.gnu.org; Fri, 08 Jun 2018 23:09:22 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fRUFk-0006ya-Mk for submit@debbugs.gnu.org; Fri, 08 Jun 2018 23:09:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRUFi-0004Vj-Gl for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2018 23:09:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRUFg-0006wb-TK for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2018 23:09:18 -0400 Original-Received: from mail-io0-x22d.google.com ([2607:f8b0:4001:c06::22d]:47086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRUFg-0006wN-OQ for bug-gnu-emacs@gnu.org; Fri, 08 Jun 2018 23:09:16 -0400 Original-Received: by mail-io0-x22d.google.com with SMTP id d22-v6so18019969iof.13 for ; Fri, 08 Jun 2018 20:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=mGMmw9Yy3d4A2HtiRfPzVfsPxadBJTrztl19DH9doUs=; b=Kqe3Rzxq03i26VpK93vsIFnzBqZa4s4jCRHEOz0FbZfNIa41fBccttB5U1MLHYl1q8 Sj+BkEV2ErMOv1bmEkvyT8K5+WDBLUDgYKOESIGiWK2Te95HW0U7D44qVOEHgj6v9dFh 5QJUM3Vs5EQK/M7lAxsTQ3D53ctJQP3CJLjpGME+VgJLHasi5EdvzkK8Y1thTxoKKYZY 3VSuNWakMxhy1KwUn/5/78M4HJO3jK9VCW/Tq8LYfO5ZEwqg3pabYKYvXusI9MnU4wo6 pAtWhKgdYnoBBQ4fpHx6/ASmssv0yWr6GwukF5YnQoIKGOjxeAkRvEcnMUUo4cpSZPz7 8gvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=mGMmw9Yy3d4A2HtiRfPzVfsPxadBJTrztl19DH9doUs=; b=ZoUlm+Sz1Yd2XbMYTcrmrqOVKJm+D09ub/2NnHiheqJ9QcnPOQDzujsJd70ETn0v8H PIefkmeyK2QLQc/VU/oh4CP1p+weLu7Gzk8YQLWcGMPsYo52jiqBUM570aJcHFQw225i hm1JNCYNNJfDgB6GVNtHFyOptnRw2dc1unLQN6b9HefXyFIJABCtNI589izPUX3hDBeU M5mnhXqDsMixx9F5AykjvC1RcdxyOBxrYzSeekJrHHOzGoHBuwlOTBIqkdty+lEF6+1L ehNEMndOz7c+WlNxuU0gJS6Iob8mwk4tIrNEc0sBXVfbMiSB4eoliJaMlkaH5dCn7J7x Q9qQ== X-Gm-Message-State: APt69E3Kb9oLb3DJH9yrwmaDIfR6w4CTlRQo8Z/eGFVm0JLV+mj9jovG FwnypnYTRPaFhwFNaXxmEeILiSxz8369tWyWd5exDA== X-Google-Smtp-Source: ADUXVKKcMGUzzH+n7eEkrHR0cWzcmO6d+09Kto1cAkrbY4T1gAXiSVW6OGRPZ92MP5D8+dMAbOHbgRhtlrgDejFGGoA= X-Received: by 2002:a6b:2b10:: with SMTP id r16-v6mr7235430ior.204.1528513755869; Fri, 08 Jun 2018 20:09:15 -0700 (PDT) Original-Received: by 2002:a02:97bb:0:0:0:0:0 with HTTP; Fri, 8 Jun 2018 20:08:55 -0700 (PDT) In-Reply-To: <87vaask6mj.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147219 Archived-At: I found out that defining the alias as alias g 'git $*' works. The documentation is unclear in this regard. See for example: https://www.gnu.org/software/emacs/manual/html_node/eshell/Aliases.html It seems to imply that, like in bash, arguments following the alias will be passed to the aliased command as usual. On Fri, Jun 8, 2018 at 11:59 PM, Carlos Pita wrote: > Try > > alias g git > > then > > g log > > or whatever inside a git repo. It always show the git help page, as in a > faulty git invocation. > > --- > > In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) > of 2018-05-29 built on juergen > Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 > System Description: Manjaro Linux > > Recent messages: > History item: 1 > Completion function pcomplete-completions-at-point uses a deprecated calling convention > Saving file /home/carlos/.emacs.d/eshell/alias... > Wrote /home/carlos/.emacs.d/eshell/alias > History item: 128 > History item: 127 > History item: 126 > No completions of /u > Saving file /home/carlos/.emacs.d/eshell/alias... > Wrote /home/carlos/.emacs.d/eshell/alias > > Configured using: > 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib > --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules > 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong > -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 > LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' > > Configured features: > XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY > ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS > GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 > > Important settings: > value of $LC_MONETARY: en_US.UTF-8 > value of $LC_NUMERIC: en_US.UTF-8 > value of $LC_TIME: en_US.UTF-8 > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix > > Major mode: Eshell > > Minor modes in effect: > diff-auto-refine-mode: t > pyvenv-mode: t > shell-dirtrack-mode: t > winner-mode: t > show-paren-mode: t > ido-ubiquitous-mode: t > ido-everywhere: t > global-company-mode: t > company-mode: t > global-eldoc-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 > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs > rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode > mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail pp cl-print > em-rebind em-smart em-tramp vc-git em-unix em-term term disp-table ehelp > em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl > em-basic em-banner em-alias display-line-numbers checkdoc flymake-proc > flymake warnings doom-themes-org cl-extra yasnippet elec-pair > highlight-indentation help-fns radix-tree help-mode elpy > find-file-in-project ivy delsel ivy-overlay ffap thingatpt windmove > diff-mode easy-mmode elpy-shell pyvenv esh-var esh-io esh-cmd esh-opt > esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util > elpy-profile elpy-django elpy-refactor subr-x python tramp-sh tramp > tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete > parse-time format-spec advice json map grep compile comint ansi-color > files-x company-oddmuse company-keywords company-etags etags xref > project company-gtags company-dabbrev-code company-dabbrev company-files > company-capf company-cmake company-xcode company-clang company-semantic > company-eclim company-template company-css company-nxml company-bbdb > doom-tomorrow-night-theme doom-themes doom-themes-common winner ring > paren ido-completing-read+ memoize s cus-edit minibuf-eldef ido gnus > nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums > mail-utils mm-util mail-prsvr wid-edit company edmacro kmacro pcase > cus-start cus-load finder-inf info package easymenu epg-config > url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs > eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp > byte-compile cconv cl-loaddefs cl-lib server time-date mule-util 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 menu-bar rfn-eshadow isearch timer > select scroll-bar mouse jit-lock font-lock syntax facemenu font-core > term/tty-colors frame 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 minibuffer cl-preloaded nadvice loaddefs > button faces cus-face macroexp files text-properties overlay sha1 md5 > base64 format env code-pages mule custom widget hashtable-print-readable > backquote dbusbind inotify lcms2 dynamic-setting system-font-setting > font-render-setting move-toolbar gtk x-toolkit x multi-tty > make-network-process emacs) > > Memory information: > ((conses 16 476026 39124) > (symbols 48 35670 2) > (miscs 40 110 213) > (strings 32 89797 2087) > (string-bytes 1 2456578) > (vectors 16 56718) > (vector-slots 8 960760 10308) > (floats 8 205 261) > (intervals 56 1299 126) > (buffers 992 15))