>>>>> "Daniel" == Daniel Pittman <[EMAIL PROTECTED]> writes: > Point of view, really. &rest accepts zero or more arguments, &optional > accepts zero or one. It makes little difference if you only ignore them. But since the argument is ignored and since no argument is passed when used interactively (since the interactive spec only says (interactive)) and since this function is only called interactively, I'd say: kill it. Also, you can get rid of the `call-interactively' redundancy, and move those closing parens where they belong. Oh, and symbols should be quoted with `..' rather than '..' so that they are recognized in *Help* buffers. (define-key global-map "\M-`" (lambda () "Use `tramp-compile' if in a tramp buffer, `compile' otherwise." (interactive) (call-interactively (if (tramp-tramp-file-p buffer-file-name) 'tramp-compile 'compile)))) -- Stefan
- Re: tramp-aware bindings Daniel Pittman
- Re: tramp-aware bindings Tom_Roche
- addendum to tramp-aware bindings Tom_Roche
- Re: tramp-aware bindings Daniel Pittman
- Re: tramp-aware bindings Tom_Roche
- found a clue! was: tramp-aware bindings Tom_Roche
- Re: found a clue! was: tramp-aware binding... Daniel Pittman
- Re: tramp-aware bindings Daniel Pittman
- cleaner tramp-aware bindings Tom_Roche
- Re: cleaner tramp-aware bindings Daniel Pittman
- compilation, version control, was: cleaner... Stefan Monnier
- compilation, version control, was: cleaner... Tom_Roche
- Re: compilation, version control, was: cle... Kai Großjohann
- problem with remote version control Tom_Roche
- Re: problem with remote version control Kai Großjohann
- remote VC, profiles Tom_Roche
- Re: remote VC, profiles Kai Großjohann
- Re: compilation, version control, was: cle... Skip Montanaro
- Re: compilation, version control, was: cle... Stefan Monnier
- password reading, was: tramp-2.9 Tom_Roche
- Re: password reading, was: tramp-2.9 Kai Großjohann