X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fwinnt.el;h=0dedb06cac8a05ee5f0de6c78b2cecc661d234c2;hb=9dab7627f5aa4b82bc092df9dacb1c401ced0e5e;hp=b0898a90a7287ed383d9d3d8bd63e495043c7a9f;hpb=2e3e3f9ee27fec50f45c282d71eaddf7c673bc56;p=chise%2Fxemacs-chise.git- diff --git a/lisp/winnt.el b/lisp/winnt.el index b0898a9..0dedb06 100644 --- a/lisp/winnt.el +++ b/lisp/winnt.el @@ -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)