all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Trey Jackson <tjackson@ichips.intel.com>
Cc: tjackson@ichips.intel.com
Subject: shell-replace-by-expanded-directory bug when expanding =1/<TAB>
Date: Thu, 2 May 2002 16:36:25 -0700	[thread overview]
Message-ID: <200205022336.QAA24731@dttlx120.pdx.intel.com> (raw)

This bug report will be sent to the Free Software Foundation,
 not to your local site managers!!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

In GNU Emacs 20.7.1 (i686-pc-linux-gnu, X toolkit)
 of Mon Oct 30 2000 on filc0021
configured using `configure  --prefix=/usr/intel/pkgs/emacs/20.7'

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

In shell mode, when you have a directory stack, the dirstack
completion introduces an extra slash.  e.g.  '=1/jou<TAB>' expands to
'/tmp/inv4_opt//jou' when it should expand to '/tmp/inv4_opt/jou' - at 
least if it's supposed to act all like tcsh.


Here's actual footage:

,----------------
| [dttlx120] inv4_opt 6> pushd
| ~ /tmp/inv4_opt 
| [dttlx120] ~ 7> ls /tmp/inv4_opt//jour
`----------------

A patch (two characters added) can be found at the end of this file.
Note: I patched the 21.1 version - because the bug is in that version as well. 
I just happen to run 20.7 on a regular basis.  The fix works in both versions.


Thanks.


TJ

Recent input:
h d l tab backspace tab backspace tab backspace C-a 
C-k l s return c d SPC i n v 4 _ o p t return l s return 
p u s h d return l s SPC = 1 / j o u r tab tab M-b 
C-a C-e C-a C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f 
C-f C-f C-f C-f C-f C-f C-f C-e M-x e m a c SPC r e 
SPC p o backspace backspace backspace backspace backspace 
backspace backspace backspace backspace backspace backspace 
r e p o tab r t tab return

Recent messages:
Completing file name...
Loading ange-ftp...
Loading ange-ftp...done
No completions of /jour
Beginning of buffer
Making completion list...
Loading view...
Loading view...done
Loading emacsbug...
Loading emacsbug...done





-------------------------------------------------------------------
*** /usr/intel/pkgs/emacs/21.1/share/emacs/21.1/lisp/shell.el	Sat Jul 14 04:21:08 2001
--- shell.patched.el	Thu May  2 16:31:49 2002
***************
*** 996,1002 ****
  	(let ((stack (cons default-directory shell-dirstack))
  	      (index (cond ((looking-at "=-/?")
  			    (length shell-dirstack))
! 			   ((looking-at "=\\([0-9]+\\)")
  			    (string-to-number
  			     (buffer-substring
  			      (match-beginning 1) (match-end 1)))))))
--- 996,1002 ----
  	(let ((stack (cons default-directory shell-dirstack))
  	      (index (cond ((looking-at "=-/?")
  			    (length shell-dirstack))
! 			   ((looking-at "=\\([0-9]+\\)/?")
  			    (string-to-number
  			     (buffer-substring
  			      (match-beginning 1) (match-end 1)))))))

             reply	other threads:[~2002-05-02 23:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-02 23:36 Trey Jackson [this message]
2002-05-04  3:36 ` shell-replace-by-expanded-directory bug when expanding =1/<TAB> Richard Stallman

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=200205022336.QAA24731@dttlx120.pdx.intel.com \
    --to=tjackson@ichips.intel.com \
    /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.