Mercurial > emacs
comparison lisp/net/tramp.el @ 101020:d2bdff7dc5f1
* net/tramp.el: Revert previous patch. `last-command-char' is
used in code used only for XEmacs, where it is different from
`last-command-event'.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Fri, 09 Jan 2009 08:13:44 +0000 |
parents | 5aa3a4e05089 |
children | 986acdda4aac |
comparison
equal
deleted
inserted
replaced
101019:f883a64629e1 | 101020:d2bdff7dc5f1 |
---|---|
3736 (if (and (symbol-value 'minibuffer-electric-file-name-behavior) | 3736 (if (and (symbol-value 'minibuffer-electric-file-name-behavior) |
3737 (tramp-tramp-file-p (buffer-substring))) | 3737 (tramp-tramp-file-p (buffer-substring))) |
3738 ;; We don't need to handle `last-input-event', because | 3738 ;; We don't need to handle `last-input-event', because |
3739 ;; due to the key map we know it must be ?/ or ?~. | 3739 ;; due to the key map we know it must be ?/ or ?~. |
3740 (let ((s (concat (buffer-substring (point-min) (point)) | 3740 (let ((s (concat (buffer-substring (point-min) (point)) |
3741 (string last-command-event)))) | 3741 (string last-command-char)))) |
3742 (delete-region (point-min) (point)) | 3742 (delete-region (point-min) (point)) |
3743 (insert (substitute-in-file-name s)) | 3743 (insert (substitute-in-file-name s)) |
3744 (setq ad-return-value last-command-event)) | 3744 (setq ad-return-value last-command-char)) |
3745 ad-do-it)))) | 3745 ad-do-it)))) |
3746 | 3746 |
3747 '(minibuffer-electric-separator | 3747 '(minibuffer-electric-separator |
3748 minibuffer-electric-tilde))) | 3748 minibuffer-electric-tilde))) |
3749 | 3749 |