diff options
| author | Michael Albinus | 2013-03-25 10:16:31 +0100 |
|---|---|---|
| committer | Michael Albinus | 2013-03-25 10:16:31 +0100 |
| commit | 4430bd53998ea752ce99b1c25384cf7cfabcef88 (patch) | |
| tree | 491703f4653c1adf7ac86c228f01e1d9e0867232 | |
| parent | 89468837dbba9ae8c1bb662ade79670eeb97e65c (diff) | |
| download | emacs-4430bd53998ea752ce99b1c25384cf7cfabcef88.tar.gz emacs-4430bd53998ea752ce99b1c25384cf7cfabcef88.zip | |
* net/tramp.el (tramp-drop-volume-letter): Make it an ordinary
defun. Defining it as defalias could introduce too eager
byte-compiler optimization. (Bug#14030)
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 19 |
2 files changed, 12 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bd4f0494123..d843e0fa703 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-03-25 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-drop-volume-letter): Make it an ordinary | ||
| 4 | defun. Defining it as defalias could introduce too eager | ||
| 5 | byte-compiler optimization. (Bug#14030) | ||
| 6 | |||
| 1 | 2013-03-25 Chong Yidong <cyd@gnu.org> | 7 | 2013-03-25 Chong Yidong <cyd@gnu.org> |
| 2 | 8 | ||
| 3 | * iswitchb.el (iswitchb-read-buffer): Fix typo. | 9 | * iswitchb.el (iswitchb-read-buffer): Fix typo. |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index e392116d157..c4c8efcbfe8 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1565,23 +1565,16 @@ FILE must be a local file name on a connection identified via VEC." | |||
| 1565 | (tramp-compat-font-lock-add-keywords | 1565 | (tramp-compat-font-lock-add-keywords |
| 1566 | 'emacs-lisp-mode '("\\<with-tramp-connection-property\\>")) | 1566 | 'emacs-lisp-mode '("\\<with-tramp-connection-property\\>")) |
| 1567 | 1567 | ||
| 1568 | (defalias 'tramp-drop-volume-letter | 1568 | (defun tramp-drop-volume-letter (name) |
| 1569 | (if (memq system-type '(cygwin windows-nt)) | 1569 | "Cut off unnecessary drive letter from file NAME. |
| 1570 | (lambda (name) | ||
| 1571 | "Cut off unnecessary drive letter from file NAME. | ||
| 1572 | The functions `tramp-*-handle-expand-file-name' call `expand-file-name' | 1570 | The functions `tramp-*-handle-expand-file-name' call `expand-file-name' |
| 1573 | locally on a remote file name. When the local system is a W32 system | 1571 | locally on a remote file name. When the local system is a W32 system |
| 1574 | but the remote system is Unix, this introduces a superfluous drive | 1572 | but the remote system is Unix, this introduces a superfluous drive |
| 1575 | letter into the file name. This function removes it." | 1573 | letter into the file name. This function removes it." |
| 1576 | (save-match-data | 1574 | (save-match-data |
| 1577 | (if (string-match "\\`[a-zA-Z]:/" name) | 1575 | (if (string-match "\\`[a-zA-Z]:/" name) |
| 1578 | (replace-match "/" nil t name) | 1576 | (replace-match "/" nil t name) |
| 1579 | name))) | 1577 | name))) |
| 1580 | |||
| 1581 | 'identity)) | ||
| 1582 | |||
| 1583 | (if (featurep 'xemacs) | ||
| 1584 | (defalias 'tramp-drop-volume-letter 'identity)) | ||
| 1585 | 1578 | ||
| 1586 | (defun tramp-cleanup (vec) | 1579 | (defun tramp-cleanup (vec) |
| 1587 | "Cleanup connection VEC, but keep the debug buffer." | 1580 | "Cleanup connection VEC, but keep the debug buffer." |