diff options
| author | Michael Albinus | 2009-01-03 15:00:35 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-01-03 15:00:35 +0000 |
| commit | 36a3859f9bf18c11e5a970b236efd626bba8d4b8 (patch) | |
| tree | 258b76d7e861cc23bed7274fae150aff44580576 | |
| parent | b96e689991dc192612fbe3bcccaa641aae7c1f92 (diff) | |
| download | emacs-36a3859f9bf18c11e5a970b236efd626bba8d4b8.tar.gz emacs-36a3859f9bf18c11e5a970b236efd626bba8d4b8.zip | |
* net/tramp-smb.el (top): Use `tramp-prefix-domain-regexp'.
(tramp-smb-maybe-open-connection): Use `tramp-file-name-*'
methods.
| -rw-r--r-- | lisp/ChangeLog | 26 | ||||
| -rw-r--r-- | lisp/net/tramp-smb.el | 27 |
2 files changed, 36 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 38c3d01cccc..2a38194d096 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,29 @@ | |||
| 1 | 2009-01-03 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/dbus.el (dbus-string-to-byte-array): Handle empty string. | ||
| 4 | |||
| 5 | * net/tramp.el (tramp-local-host-regexp) | ||
| 6 | (tramp-prefix-domain-format) | ||
| 7 | (tramp-prefix-domain-regexp, tramp-domain-regexp) | ||
| 8 | (tramp-user-with-domain-regexp, tramp-prefix-ipv6-format) | ||
| 9 | (tramp-prefix-ipv6-regexp, tramp-ipv6-regexp) | ||
| 10 | (tramp-postfix-ipv6-format, tramp-postfix-ipv6-regexp): New | ||
| 11 | defconst. | ||
| 12 | (tramp-file-name-structure, tramp-file-name-regexp-unified) | ||
| 13 | (tramp-completion-dissect-file-name, tramp-parse-hosts-group) | ||
| 14 | (tramp-dissect-file-name, tramp-make-tramp-file-name) | ||
| 15 | (tramp-completion-make-tramp-file-name): Handle IPv6 addresses. | ||
| 16 | (tramp-handle-insert-file-contents): Fix setting of | ||
| 17 | `buffer-read-only'. | ||
| 18 | (tramp-compute-multi-hops, tramp-local-host-p): Use | ||
| 19 | `tramp-local-host-regexp'. | ||
| 20 | (tramp-file-name-real-user, tramp-file-name-domain): Use | ||
| 21 | `tramp-user-with-domain-regexp'. | ||
| 22 | |||
| 23 | * net/tramp-smb.el (top): Use `tramp-prefix-domain-regexp'. | ||
| 24 | (tramp-smb-maybe-open-connection): Use `tramp-file-name-*' | ||
| 25 | methods. | ||
| 26 | |||
| 1 | 2009-01-03 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> | 27 | 2009-01-03 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> |
| 2 | 28 | ||
| 3 | * proced.el (proced-grammar-alist): Refiner can be a | 29 | * proced.el (proced-grammar-alist): Refiner can be a |
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index af6cf93dd1e..4ce8aa7fce6 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; tramp-smb.el --- Tramp access functions for SMB servers | 1 | ;;; tramp-smb.el --- Tramp access functions for SMB servers |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, | 3 | ;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | ;; 2008 Free Software Foundation, Inc. | 4 | ;; 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Michael Albinus <michael.albinus@gmx.de> | 6 | ;; Author: Michael Albinus <michael.albinus@gmx.de> |
| 7 | ;; Keywords: comm, processes | 7 | ;; Keywords: comm, processes |
| @@ -44,7 +44,7 @@ | |||
| 44 | ;; Add a default for `tramp-default-method-alist'. Rule: If there is | 44 | ;; Add a default for `tramp-default-method-alist'. Rule: If there is |
| 45 | ;; a domain in USER, it must be the SMB method. | 45 | ;; a domain in USER, it must be the SMB method. |
| 46 | (add-to-list 'tramp-default-method-alist | 46 | (add-to-list 'tramp-default-method-alist |
| 47 | `(nil "%" ,tramp-smb-method)) | 47 | `(nil ,tramp-prefix-domain-regexp ,tramp-smb-method)) |
| 48 | 48 | ||
| 49 | ;; Add a default for `tramp-default-user-alist'. Rule: For the SMB method, | 49 | ;; Add a default for `tramp-default-user-alist'. Rule: For the SMB method, |
| 50 | ;; the anonymous user is chosen. | 50 | ;; the anonymous user is chosen. |
| @@ -905,20 +905,13 @@ connection if a previous connection has died for some reason." | |||
| 905 | (executable-find tramp-smb-program)) | 905 | (executable-find tramp-smb-program)) |
| 906 | (error "Cannot find command %s in %s" tramp-smb-program exec-path)) | 906 | (error "Cannot find command %s in %s" tramp-smb-program exec-path)) |
| 907 | 907 | ||
| 908 | (let* ((user (tramp-file-name-user vec)) | 908 | (let* ((user (tramp-file-name-user vec)) |
| 909 | (host (tramp-file-name-host vec)) | 909 | (host (tramp-file-name-host vec)) |
| 910 | (real-user user) | 910 | (real-user (tramp-file-name-real-user vec)) |
| 911 | (real-host host) | 911 | (real-host (tramp-file-name-real-host vec)) |
| 912 | domain port args) | 912 | (domain (tramp-file-name-domain vec)) |
| 913 | 913 | (port (tramp-file-name-port vec)) | |
| 914 | ;; Check for domain ("user%domain") and port ("host#port"). | 914 | args) |
| 915 | (when (and user (string-match "\\(.+\\)%\\(.+\\)" user)) | ||
| 916 | (setq real-user (or (match-string 1 user) user) | ||
| 917 | domain (match-string 2 user))) | ||
| 918 | |||
| 919 | (when (and host (string-match "\\(.+\\)#\\(.+\\)" host)) | ||
| 920 | (setq real-host (or (match-string 1 host) host) | ||
| 921 | port (match-string 2 host))) | ||
| 922 | 915 | ||
| 923 | (if share | 916 | (if share |
| 924 | (setq args (list (concat "//" real-host "/" share))) | 917 | (setq args (list (concat "//" real-host "/" share))) |