# HG changeset patch # User Michael Albinus # Date 1198011773 0 # Node ID e99e230d7eb350122ee0dbfecc4d8799bbc2ceb2 # Parent 0c95db530576cfc3e59c2e21bb2f109897e2d4d3 * files.el (cd-absolute): Set `list-buffers-directory' in order to show correct path in buffer list. * net/tramp.el (tramp-open-connection-setup-interactive-shell) (tramp-find-shell): Send only single prompt setting commands, in order to avoid double-prompt. * net/tramp-compat.el (top): Require cl only when compiling. Reported by Glenn Morris . diff -r 0c95db530576 -r e99e230d7eb3 lisp/ChangeLog --- a/lisp/ChangeLog Tue Dec 18 09:21:28 2007 +0000 +++ b/lisp/ChangeLog Tue Dec 18 21:02:53 2007 +0000 @@ -1,3 +1,15 @@ +2007-12-18 Michael Albinus + + * files.el (cd-absolute): Set `list-buffers-directory' in order to + show correct path in buffer list. + + * net/tramp.el (tramp-open-connection-setup-interactive-shell) + (tramp-find-shell): Send only single prompt setting commands, in + order to avoid double-prompt. + + * net/tramp-compat.el (top): Require cl only when compiling. + Reported by Glenn Morris . + 2007-12-18 Thien-Thi Nguyen * progmodes/cc-vars.el (defcustom-c-stylevar): Eval VAL. diff -r 0c95db530576 -r e99e230d7eb3 lisp/files.el --- a/lisp/files.el Tue Dec 18 09:21:28 2007 +0000 +++ b/lisp/files.el Tue Dec 18 21:02:53 2007 +0000 @@ -633,7 +633,8 @@ (error "%s is not a directory" dir) (error "%s: no such directory" dir)) (if (file-executable-p dir) - (setq default-directory dir) + (setq default-directory dir + list-buffers-directory dir) (error "Cannot cd to %s: Permission denied" dir)))) (defun cd (dir) diff -r 0c95db530576 -r e99e230d7eb3 lisp/net/tramp-compat.el --- a/lisp/net/tramp-compat.el Tue Dec 18 09:21:28 2007 +0000 +++ b/lisp/net/tramp-compat.el Tue Dec 18 21:02:53 2007 +0000 @@ -29,10 +29,13 @@ ;;; Code: +(eval-when-compile + + ;; Pacify byte-compiler. + (require 'cl)) + (eval-and-compile - ;; Pacify byte-compiler. - (require 'cl) (require 'custom) ;; Load the appropriate timer package. diff -r 0c95db530576 -r e99e230d7eb3 lisp/net/tramp.el --- a/lisp/net/tramp.el Tue Dec 18 09:21:28 2007 +0000 +++ b/lisp/net/tramp.el Tue Dec 18 21:02:53 2007 +0000 @@ -78,7 +78,7 @@ (when (featurep 'tramp-compat) (unload-feature 'tramp-compat 'force)))) -(require 'format-spec) ;from Gnus 5.8, also in tar ball +(require 'format-spec) ; from Gnus 5.8, also in tar ball ;; As long as password.el is not part of (X)Emacs, it shouldn't ;; be mandatory (if (featurep 'xemacs) @@ -5365,11 +5365,14 @@ ;; as well. (tramp-send-command vec - (format "PROMPT_COMMAND=''; PS1='%s%s%s'; PS2=''; PS3=''" + (format "PS1='%s%s%s'" tramp-rsh-end-of-line tramp-end-of-output tramp-rsh-end-of-line) t) + (tramp-send-command vec "PS2=''" t) + (tramp-send-command vec "PS3=''" t) + (tramp-send-command vec "PROMPT_COMMAND=''" t) (tramp-message vec 5 "Setting remote shell prompt...done")) (t (tramp-message vec 5 "Remote `%s' groks tilde expansion, good" @@ -5638,7 +5641,7 @@ (tramp-send-command vec (format - "exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' PS2='' PS3='' %s" + "exec env ENV='' PROMPT_COMMAND='' PS1='$ ' PS2='' PS3='' %s" (tramp-get-method-parameter (tramp-file-name-method vec) 'tramp-remote-sh)) t) @@ -5665,11 +5668,14 @@ ;; regarded as prompt already. (tramp-send-command vec - (format "PROMPT_COMMAND=''; PS1='%s%s%s'; PS2=''; PS3=''" + (format "PS1='%s%s%s'" tramp-rsh-end-of-line tramp-end-of-output tramp-rsh-end-of-line) t) + (tramp-send-command vec "PS2=''" t) + (tramp-send-command vec "PS3=''" t) + (tramp-send-command vec "PROMPT_COMMAND=''" t) ;; Try to set up the coding system correctly. ;; CCC this can't be the right way to do it. Hm.