From: John Wiegley Date: Fri, 27 May 2005 02:11:39 +0000 (+0000) Subject: (eshell-complete-parse-arguments): If the character before a space at X-Git-Tag: emacs-pretest-22.0.90~9507 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=34204d803d55e8126575b53368de1826c33253fc;p=emacs.git (eshell-complete-parse-arguments): If the character before a space at the end of a line is \, assume the space is part of the last argument rather than a final argument separator. --- diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el index 695a9fb4ed8..5f529b07991 100644 --- a/lisp/eshell/em-cmpl.el +++ b/lisp/eshell/em-cmpl.el @@ -370,7 +370,8 @@ to writing a completion function." (setq args (nthcdr (1+ l) args) posns (nthcdr (1+ l) posns)))) (assert (= (length args) (length posns))) - (when (and args (eq (char-syntax (char-before end)) ? )) + (when (and args (eq (char-syntax (char-before end)) ? ) + (not (eq (char-before (1- end)) ?\\))) (nconc args (list "")) (nconc posns (list (point)))) (cons (mapcar