diff options
| author | Michael Albinus | 2007-12-18 21:02:53 +0000 |
|---|---|---|
| committer | Michael Albinus | 2007-12-18 21:02:53 +0000 |
| commit | 9fa0d3aabb61dc96512fdf83e832ebb4d3686eaa (patch) | |
| tree | c866ae5f16d7dc8f146b56527d52e683c90ad5ba | |
| parent | d2f795854ea4d0eb76b470779e38e5f8a23e9847 (diff) | |
| download | emacs-9fa0d3aabb61dc96512fdf83e832ebb4d3686eaa.tar.gz emacs-9fa0d3aabb61dc96512fdf83e832ebb4d3686eaa.zip | |
* 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 <rgm@gnu.org>.
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/files.el | 3 | ||||
| -rw-r--r-- | lisp/net/tramp-compat.el | 7 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 14 |
4 files changed, 29 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f427ca3c9a1..73c2ffce9e5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2007-12-18 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * files.el (cd-absolute): Set `list-buffers-directory' in order to | ||
| 4 | show correct path in buffer list. | ||
| 5 | |||
| 6 | * net/tramp.el (tramp-open-connection-setup-interactive-shell) | ||
| 7 | (tramp-find-shell): Send only single prompt setting commands, in | ||
| 8 | order to avoid double-prompt. | ||
| 9 | |||
| 10 | * net/tramp-compat.el (top): Require cl only when compiling. | ||
| 11 | Reported by Glenn Morris <rgm@gnu.org>. | ||
| 12 | |||
| 1 | 2007-12-18 Thien-Thi Nguyen <ttn@gnuvola.org> | 13 | 2007-12-18 Thien-Thi Nguyen <ttn@gnuvola.org> |
| 2 | 14 | ||
| 3 | * progmodes/cc-vars.el (defcustom-c-stylevar): Eval VAL. | 15 | * progmodes/cc-vars.el (defcustom-c-stylevar): Eval VAL. |
diff --git a/lisp/files.el b/lisp/files.el index 581864f6f46..0aec833445d 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -633,7 +633,8 @@ Directories are separated by occurrences of `path-separator' | |||
| 633 | (error "%s is not a directory" dir) | 633 | (error "%s is not a directory" dir) |
| 634 | (error "%s: no such directory" dir)) | 634 | (error "%s: no such directory" dir)) |
| 635 | (if (file-executable-p dir) | 635 | (if (file-executable-p dir) |
| 636 | (setq default-directory dir) | 636 | (setq default-directory dir |
| 637 | list-buffers-directory dir) | ||
| 637 | (error "Cannot cd to %s: Permission denied" dir)))) | 638 | (error "Cannot cd to %s: Permission denied" dir)))) |
| 638 | 639 | ||
| 639 | (defun cd (dir) | 640 | (defun cd (dir) |
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el index 19d25f43515..b63b8c1e2fb 100644 --- a/lisp/net/tramp-compat.el +++ b/lisp/net/tramp-compat.el | |||
| @@ -29,10 +29,13 @@ | |||
| 29 | 29 | ||
| 30 | ;;; Code: | 30 | ;;; Code: |
| 31 | 31 | ||
| 32 | (eval-and-compile | 32 | (eval-when-compile |
| 33 | 33 | ||
| 34 | ;; Pacify byte-compiler. | 34 | ;; Pacify byte-compiler. |
| 35 | (require 'cl) | 35 | (require 'cl)) |
| 36 | |||
| 37 | (eval-and-compile | ||
| 38 | |||
| 36 | (require 'custom) | 39 | (require 'custom) |
| 37 | 40 | ||
| 38 | ;; Load the appropriate timer package. | 41 | ;; Load the appropriate timer package. |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 95959b15a7c..b81c4e04f81 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -78,7 +78,7 @@ | |||
| 78 | (when (featurep 'tramp-compat) | 78 | (when (featurep 'tramp-compat) |
| 79 | (unload-feature 'tramp-compat 'force)))) | 79 | (unload-feature 'tramp-compat 'force)))) |
| 80 | 80 | ||
| 81 | (require 'format-spec) ;from Gnus 5.8, also in tar ball | 81 | (require 'format-spec) ; from Gnus 5.8, also in tar ball |
| 82 | ;; As long as password.el is not part of (X)Emacs, it shouldn't | 82 | ;; As long as password.el is not part of (X)Emacs, it shouldn't |
| 83 | ;; be mandatory | 83 | ;; be mandatory |
| 84 | (if (featurep 'xemacs) | 84 | (if (featurep 'xemacs) |
| @@ -5365,11 +5365,14 @@ file exists and nonzero exit status otherwise." | |||
| 5365 | ;; as well. | 5365 | ;; as well. |
| 5366 | (tramp-send-command | 5366 | (tramp-send-command |
| 5367 | vec | 5367 | vec |
| 5368 | (format "PROMPT_COMMAND=''; PS1='%s%s%s'; PS2=''; PS3=''" | 5368 | (format "PS1='%s%s%s'" |
| 5369 | tramp-rsh-end-of-line | 5369 | tramp-rsh-end-of-line |
| 5370 | tramp-end-of-output | 5370 | tramp-end-of-output |
| 5371 | tramp-rsh-end-of-line) | 5371 | tramp-rsh-end-of-line) |
| 5372 | t) | 5372 | t) |
| 5373 | (tramp-send-command vec "PS2=''" t) | ||
| 5374 | (tramp-send-command vec "PS3=''" t) | ||
| 5375 | (tramp-send-command vec "PROMPT_COMMAND=''" t) | ||
| 5373 | (tramp-message vec 5 "Setting remote shell prompt...done")) | 5376 | (tramp-message vec 5 "Setting remote shell prompt...done")) |
| 5374 | (t (tramp-message | 5377 | (t (tramp-message |
| 5375 | vec 5 "Remote `%s' groks tilde expansion, good" | 5378 | vec 5 "Remote `%s' groks tilde expansion, good" |
| @@ -5638,7 +5641,7 @@ process to set up. VEC specifies the connection." | |||
| 5638 | (tramp-send-command | 5641 | (tramp-send-command |
| 5639 | vec | 5642 | vec |
| 5640 | (format | 5643 | (format |
| 5641 | "exec env 'ENV=' 'PROMPT_COMMAND=' 'PS1=$ ' PS2='' PS3='' %s" | 5644 | "exec env ENV='' PROMPT_COMMAND='' PS1='$ ' PS2='' PS3='' %s" |
| 5642 | (tramp-get-method-parameter | 5645 | (tramp-get-method-parameter |
| 5643 | (tramp-file-name-method vec) 'tramp-remote-sh)) | 5646 | (tramp-file-name-method vec) 'tramp-remote-sh)) |
| 5644 | t) | 5647 | t) |
| @@ -5665,11 +5668,14 @@ process to set up. VEC specifies the connection." | |||
| 5665 | ;; regarded as prompt already. | 5668 | ;; regarded as prompt already. |
| 5666 | (tramp-send-command | 5669 | (tramp-send-command |
| 5667 | vec | 5670 | vec |
| 5668 | (format "PROMPT_COMMAND=''; PS1='%s%s%s'; PS2=''; PS3=''" | 5671 | (format "PS1='%s%s%s'" |
| 5669 | tramp-rsh-end-of-line | 5672 | tramp-rsh-end-of-line |
| 5670 | tramp-end-of-output | 5673 | tramp-end-of-output |
| 5671 | tramp-rsh-end-of-line) | 5674 | tramp-rsh-end-of-line) |
| 5672 | t) | 5675 | t) |
| 5676 | (tramp-send-command vec "PS2=''" t) | ||
| 5677 | (tramp-send-command vec "PS3=''" t) | ||
| 5678 | (tramp-send-command vec "PROMPT_COMMAND=''" t) | ||
| 5673 | 5679 | ||
| 5674 | ;; Try to set up the coding system correctly. | 5680 | ;; Try to set up the coding system correctly. |
| 5675 | ;; CCC this can't be the right way to do it. Hm. | 5681 | ;; CCC this can't be the right way to do it. Hm. |