all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: richard@rswheeldon.com
To: bug-gnu-emacs@gnu.org
Subject: Shell-mode: File completion breaks editing previous commands
Date: Fri, 4 Apr 2008 12:39:53 +0100	[thread overview]
Message-ID: <18422.5001.19000.358870@lusitania.rswheeldon.com> (raw)


Emacs shell mode allows editing of previous commands. These can then
be executed by pressing return. Shell mode also allows tab completion
to expand filenames. These do not work together. If we try to modify
a previously executed command (to re-execute it with different params)
and attempt to use filename completion, the beginning of the command
is lost.

For example, the following sequence:

touch foo bar
echo bar
Edit the echo command to "touch foo bar" and press return.

produces the following output:

% touch foo bar
% echo bar foo 
foo
% foo 
bash: ./foo: Permission denied
% 

This behaviour worked under Emacs 21.

Richard


In GNU Emacs 22.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-03-31 on belgrano
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--with-x' '--without-sound''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: en_GB.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Shell

Minor modes in effect:
  shell-dirtrack-mode: t
  delete-selection-mode: t
  pc-selection-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:

SPC SPC SPC SPC SPC SPC SPC <escape> x s h e l l <return> 
t o u c h SPC f o o b a <backspace> <backspace> SPC 
b a r <return> e c h o SPC f o <tab> <return> <up> 
<up> <right> <right> <right> <right> <right> b a <tab> 
<return> <escape> x <up> <up> <return>

Recent messages:
Completed
Completing file name...
Completed
Making completion list... [2 times]
Loading emacsbug...done
Mark set [2 times]
Completing file name...
Completed
Completing file name...
Completed





         reply	other threads:[~2008-04-04 11:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87tzig9es5.fsf@stupidchicken.com>
     [not found] ` <18424.40053.181304.491320@lusitania.rswheeldon.com>
2008-04-07  5:10   ` Shell-mode: File completion breaks editing previous commands Chong Yidong
2008-04-07  9:18     ` Andreas Röhler
2008-04-09 11:29     ` Bob Rogers
2011-09-11  5:23       ` bug#114: " Lars Magne Ingebrigtsen
2011-09-25 13:27         ` Lars Magne Ingebrigtsen
2011-09-26 15:04           ` richard
2011-09-26 19:40             ` Lars Magne Ingebrigtsen
2011-10-03 21:12               ` Glenn Morris
2011-10-04  0:57                 ` Stefan Monnier
2011-10-04  1:51                   ` Glenn Morris
2011-10-04  2:14                   ` Stefan Monnier
2011-10-04  2:21                     ` Glenn Morris
2011-10-12  4:30                       ` Stefan Monnier
2008-04-04 11:39                         ` richard [this message]
2011-10-12  5:27                           ` Glenn Morris
2011-10-12 12:39                             ` Stefan Monnier
2011-10-17 16:34                               ` Stefan Monnier
2008-04-09  5:22 Devon Sean McCullough

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18422.5001.19000.358870@lusitania.rswheeldon.com \
    --to=richard@rswheeldon.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.