emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/eshell/em-dirs.el,v


From: Vinicius Jose Latorre
Subject: [Emacs-diffs] Changes to emacs/lisp/eshell/em-dirs.el,v
Date: Thu, 08 Nov 2007 17:11:48 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Vinicius Jose Latorre <viniciusjl>      07/11/08 17:11:47

Index: eshell/em-dirs.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/eshell/em-dirs.el,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- eshell/em-dirs.el   26 Jul 2007 05:26:53 -0000      1.21
+++ eshell/em-dirs.el   8 Nov 2007 17:11:47 -0000       1.22
@@ -319,7 +319,7 @@
     (before translate-multiple-dots
            (filename &optional directory) activate)
     (setq filename (eshell-expand-multiple-dots filename)))"
-  (while (string-match "\\.\\.\\(\\.+\\)" path)
+  (while (string-match "\\(?:^\\|/\\)\\.\\.\\(\\.+\\)\\(?:$\\|/\\)" path)
     (let* ((extra-dots (match-string 1 path))
           (len (length extra-dots))
           replace-text)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]