diff options
| author | Richard M. Stallman | 1995-06-16 01:25:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-16 01:25:53 +0000 |
| commit | d99671d7b9265ec3719af578f5578d5bae994699 (patch) | |
| tree | be667f284969407fedb5f18f12cd2c5ec564fe3a | |
| parent | 35d6dd87feea8ef2057910098aadae6f5316fdee (diff) | |
| download | emacs-d99671d7b9265ec3719af578f5578d5bae994699.tar.gz emacs-d99671d7b9265ec3719af578f5578d5bae994699.zip | |
(grep-null-device): Set to "NUL".
(grep-regexp-alist): Match entries with drive letters.
(save-to-unix-hook,revert-from-unix-hook): Defined.
(using-unix-filesystems): Defined.
(window-frame): Unaliased.
| -rw-r--r-- | lisp/w32-fns.el | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el index 3ce4aedcc60..7790d5178f8 100644 --- a/lisp/w32-fns.el +++ b/lisp/w32-fns.el | |||
| @@ -63,6 +63,13 @@ | |||
| 63 | ;; Use ";" instead of ":" as a path separator (from files.el). | 63 | ;; Use ";" instead of ":" as a path separator (from files.el). |
| 64 | (setq path-separator ";") | 64 | (setq path-separator ";") |
| 65 | 65 | ||
| 66 | ;; Set the null device (for compile.el). | ||
| 67 | (setq grep-null-device "NUL") | ||
| 68 | |||
| 69 | ;; Set the grep regexp to match entries with drive letters. | ||
| 70 | (setq grep-regexp-alist | ||
| 71 | '(("^\\(\\([a-zA-Z]:\\)?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 3))) | ||
| 72 | |||
| 66 | ;; Taken from dos-fn.el ... don't want all that's in the file, maybe | 73 | ;; Taken from dos-fn.el ... don't want all that's in the file, maybe |
| 67 | ;; separate it out someday. | 74 | ;; separate it out someday. |
| 68 | 75 | ||
| @@ -123,8 +130,30 @@ against the file name, and TYPE is nil for text, t for binary.") | |||
| 123 | ;;; To set the default file type on new files. | 130 | ;;; To set the default file type on new files. |
| 124 | (add-hook 'find-file-not-found-hooks 'find-file-not-found-set-buffer-file-type) | 131 | (add-hook 'find-file-not-found-hooks 'find-file-not-found-set-buffer-file-type) |
| 125 | 132 | ||
| 133 | ;;; For using attached Unix filesystems. | ||
| 134 | (defun save-to-unix-hook () | ||
| 135 | (save-excursion | ||
| 136 | (setq buffer-file-type t)) | ||
| 137 | nil) | ||
| 138 | |||
| 139 | (defun revert-from-unix-hook () | ||
| 140 | (save-excursion | ||
| 141 | (setq buffer-file-type (find-buffer-file-type (buffer-file-name)))) | ||
| 142 | nil) | ||
| 143 | |||
| 144 | ;; Really should provide this capability at the drive letter granularity. | ||
| 145 | (defun using-unix-filesystems (flag) | ||
| 146 | (if flag | ||
| 147 | (progn | ||
| 148 | (add-hook 'write-file-hooks 'save-to-unix-hook) | ||
| 149 | (add-hook 'write-contents-hooks 'save-to-unix-hook) | ||
| 150 | (add-hook 'after-save-hook 'revert-from-unix-hook)) | ||
| 151 | (progn | ||
| 152 | (remove-hook 'write-file-hooks 'save-to-unix-hook) | ||
| 153 | (remove-hook 'write-contents-hooks 'save-to-unix-hook) | ||
| 154 | (remove-hook 'after-save-hook 'revert-from-unix-hook)))) | ||
| 155 | |||
| 126 | ;;; Fix interface to (X-specific) mouse.el | 156 | ;;; Fix interface to (X-specific) mouse.el |
| 127 | (defalias 'window-frame 'ignore) | ||
| 128 | (defalias 'x-set-selection 'ignore) | 157 | (defalias 'x-set-selection 'ignore) |
| 129 | (fset 'x-get-selection '(lambda (&rest rest) "")) | 158 | (fset 'x-get-selection '(lambda (&rest rest) "")) |
| 130 | (fmakunbound 'font-menu-add-default) | 159 | (fmakunbound 'font-menu-add-default) |