GNU bug report logs - #26229
shell-mode: input echo suppression doesn't work for 'fish' shell

Previous Next

Package: emacs;

Reported by: Manuel Uberti <manuel.uberti <at> inventati.org>

Date: Thu, 23 Mar 2017 20:25:02 UTC

Severity: minor

Found in version 26.0.50

Full log


View this message in rfc822 format

From: John Mastro <john.b.mastro <at> gmail.com>
To: 26229 <at> debbugs.gnu.org
Cc: Manuel Uberti <manuel.uberti <at> inventati.org>
Subject: bug#26229: 26.0.50; shell-mode: turning off input echoing
Date: Thu, 23 Mar 2017 14:27:50 -0700
Manuel Uberti <manuel.uberti <at> inventati.org> wrote:
> After opening Emacs with emacs -Q, in scratch buffer I evaluate this:
>
> (setq comint-process-echoes t)
>
> Then:
>
> - M-x shell
> - ls RET
>
> Output:
>
> ~ % ls
> ~ % ls --color=auto --group-directories-first
> bin/        languagetool/  Pictures/    reveal.js/  tmp/

The `comint-process-echoes' variable is buffer-local, so you need to set
it in the shell buffer. Something like this should work:

    (defun my-init-shell-mode ()
      (setq comint-process-echoes t))

    (with-eval-after-load 'shell
      (add-hook 'shell-mode-hook #'my-init-shell-mode))

Hope that helps

        John




This bug report was last modified 8 years and 29 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.