X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fwinnt.el;h=79352869f57b60098931a85ab9445a9451cb514c;hb=7dab7b51695fabb282b96b7f177049d0b801c3fb;hp=b0898a90a7287ed383d9d3d8bd63e495043c7a9f;hpb=2e3e3f9ee27fec50f45c282d71eaddf7c673bc56;p=chise%2Fxemacs-chise.git- diff --git a/lisp/winnt.el b/lisp/winnt.el index b0898a9..7935286 100644 --- a/lisp/winnt.el +++ b/lisp/winnt.el @@ -1,4 +1,4 @@ -;;; winnt.el --- Lisp routines for Windows NT. +;;; winnt.el --- Lisp routines for MS Windows. ;; Copyright (C) 1994 Free Software Foundation, Inc. @@ -39,11 +39,14 @@ ;; #### Oh if we had an alist of shells and their command switches. (setq shell-command-switch "/c") -;; For appending suffixes to directories and files in shell completions. -(defun nt-shell-mode-hook () - (setq comint-completion-addsuffix '("\\" . " ") - comint-process-echoes t)) -(add-hook 'shell-mode-hook 'nt-shell-mode-hook) +;; For appending suffixes to directories and files in shell +;; completions. This screws up cygwin users so we leave it out for +;; now. Uncomment this if you only ever want to use cmd. + +;(defun nt-shell-mode-hook () +; (setq comint-completion-addsuffix '("\\" . " ") +; comint-process-echoes t)) +;(add-hook 'shell-mode-hook 'nt-shell-mode-hook) ;; Use ";" instead of ":" as a path separator (from files.el). (setq path-separator ";") @@ -76,7 +79,7 @@ before calling this function. You can redefine this for customization. See also `auto-save-file-name-p'." (let ((name (original-make-auto-save-file-name)) (start 0)) - ;; destructively replace occurences of * or ? with $ + ;; destructively replace occurrences of * or ? with $ (while (string-match "[?*]" name start) (aset name (match-beginning 0) ?$) (setq start (1+ (match-end 0)))) @@ -88,7 +91,7 @@ See also `auto-save-file-name-p'." (defun nt-quote-args-verbatim (args) "Copy ARG list verbatim, separating each arg with space." - (mapconcat 'identity args " ")) + (mapconcat #'identity args " ")) (defun nt-quote-args-prefix-quote (prefix args) (mapconcat (lambda (str)