annotate lisp/w32-fns.el @ 15125:4dc406e38d68

(dos_get_modifiers): Restore missing comment terminator. (getdefdir): Rewrite to call `_fixpath' instead of `intdos'. (run_msdos_command) [DJGPP > 1]: Work around some MSDOS command-line restrictions by running shell commands via `system' instead of `spawnve'.
author Richard M. Stallman <rms@gnu.org>
date Wed, 01 May 1996 23:25:33 +0000
parents 11a97fb4cb84
children 72a1f82a6748
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15003
11a97fb4cb84 Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 14446
diff changeset
1 ;;; winnt.el --- Lisp routines for Windows NT.
14169
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 14121
diff changeset
2
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 ;; Copyright (C) 1994 Free Software Foundation, Inc.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5 ;; Author: Geoff Voelker (voelker@cs.washington.edu)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 ;; This file is part of GNU Emacs.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 ;; it under the terms of the GNU General Public License as published by
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 ;; the Free Software Foundation; either version 2, or (at your option)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 ;; any later version.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 ;; GNU Emacs is distributed in the hope that it will be useful,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 ;; GNU General Public License for more details.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
14169
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 14121
diff changeset
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 14121
diff changeset
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
83f275dcd93a Update FSF's address.
Erik Naggum <erik@naggum.no>
parents: 14121
diff changeset
22 ;; Boston, MA 02111-1307, USA.
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 ;;; Commentary:
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 ;; (August 12, 1993)
11399
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
27 ;; Created.
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28
11399
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
29 ;; (November 21, 1994)
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
30 ;; [C-M-backspace] defined.
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
31 ;; mode-line-format defined to show buffer file type.
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
32 ;; audio bell initialized.
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 ;;; Code:
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 ;; Map delete and backspace
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 (define-key function-key-map [backspace] "\177")
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 (define-key function-key-map [delete] "\C-d")
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 (define-key function-key-map [M-backspace] [?\M-\177])
11399
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
40 (define-key function-key-map [C-M-backspace] [\C-\M-delete])
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
41
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
42 ;; Show file type (text or binary) on modeline
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
43 (setq-default mode-line-format
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
44 (list (purecopy "")
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
45 'mode-line-modified
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
46 'mode-line-buffer-identification
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
47 (purecopy " ")
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
48 'global-mode-string
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
49 (purecopy " %[(")
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
50 (purecopy "%t:")
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
51 'mode-name 'mode-line-process 'minor-mode-alist
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
52 (purecopy "%n")
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
53 (purecopy ")%]--")
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
54 (purecopy '(line-number-mode "L%l--"))
14446
bdff3ee6ee93 (mode-line-format): Include column-number-mode.
Richard M. Stallman <rms@gnu.org>
parents: 14169
diff changeset
55 (purecopy '(column-number-mode "C%c--"))
11399
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
56 (purecopy '(-3 . "%p"))
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
57 (purecopy "-%-")))
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59 ;; Ignore case on file-name completion
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60 (setq completion-ignore-case t)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 ;; The cmd.exe shell uses the "/c" switch instead of the "-c" switch
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
63 ;; for executing its command line argument (from simple.el).
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 (setq shell-command-switch "/c")
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65
11743
824f238e0c64 (path-separator): Set to ";".
Richard M. Stallman <rms@gnu.org>
parents: 11399
diff changeset
66 ;; Use ";" instead of ":" as a path separator (from files.el).
824f238e0c64 (path-separator): Set to ";".
Richard M. Stallman <rms@gnu.org>
parents: 11399
diff changeset
67 (setq path-separator ";")
824f238e0c64 (path-separator): Set to ";".
Richard M. Stallman <rms@gnu.org>
parents: 11399
diff changeset
68
12254
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
69 ;; Set the null device (for compile.el).
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
70 (setq grep-null-device "NUL")
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
71
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
72 ;; Set the grep regexp to match entries with drive letters.
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
73 (setq grep-regexp-alist
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
74 '(("^\\(\\([a-zA-Z]:\\)?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 3)))
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
75
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76 ;; Taken from dos-fn.el ... don't want all that's in the file, maybe
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 ;; separate it out someday.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 (defvar file-name-buffer-file-type-alist
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 '(
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 ("[:/].*config.sys$" . nil) ; config.sys text
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82 ("\\.elc$" . t) ; emacs stuff
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 ("\\.\\(obj\\|exe\\|com\\|lib\\|sys\\|chk\\|out\\|bin\\|ico\\|pif\\)$" . t)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 ; MS-Dos stuff
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 ("\\.\\(arc\\|zip\\|pak\\|lzh\\|zoo\\)$" . t)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 ; Packers
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 ("\\.\\(a\\|o\\|tar\\|z\\|gz\\|taz\\)$" . t)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 ; Unix stuff
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 ("\\.tp[ulpw]$" . t)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 ; Borland Pascal stuff
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 ("[:/]tags$" . t)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 ; Emacs TAGS file
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 )
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 "*Alist for distinguishing text files from binary files.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 Each element has the form (REGEXP . TYPE), where REGEXP is matched
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 against the file name, and TYPE is nil for text, t for binary.")
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 (defun find-buffer-file-type (filename)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 (let ((alist file-name-buffer-file-type-alist)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 (found nil)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 (code nil))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 (let ((case-fold-search t))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 (setq filename (file-name-sans-versions filename))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 (while (and (not found) alist)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105 (if (string-match (car (car alist)) filename)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106 (setq code (cdr (car alist))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 found t))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108 (setq alist (cdr alist))))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109 (if found
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 (cond((memq code '(nil t)) code)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 ((and (symbolp code) (fboundp code))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 (funcall code filename)))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113 default-buffer-file-type)))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115 (defun find-file-binary (filename)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116 "Visit file FILENAME and treat it as binary."
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 (interactive "FFind file binary: ")
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 (let ((file-name-buffer-file-type-alist '(("" . t))))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119 (find-file filename)))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
121 (defun find-file-text (filename)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122 "Visit file FILENAME and treat it as a text file."
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
123 (interactive "FFind file text: ")
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
124 (let ((file-name-buffer-file-type-alist '(("" . nil))))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
125 (find-file filename)))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
126
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
127 (defun find-file-not-found-set-buffer-file-type ()
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
128 (save-excursion
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129 (set-buffer (current-buffer))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 (setq buffer-file-type (find-buffer-file-type (buffer-file-name))))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 nil)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 ;;; To set the default file type on new files.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134 (add-hook 'find-file-not-found-hooks 'find-file-not-found-set-buffer-file-type)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135
12254
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
136 ;;; For using attached Unix filesystems.
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
137 (defun save-to-unix-hook ()
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
138 (save-excursion
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
139 (setq buffer-file-type t))
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
140 nil)
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
141
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
142 (defun revert-from-unix-hook ()
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
143 (save-excursion
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
144 (setq buffer-file-type (find-buffer-file-type (buffer-file-name))))
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
145 nil)
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
146
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
147 ;; Really should provide this capability at the drive letter granularity.
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
148 (defun using-unix-filesystems (flag)
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
149 (if flag
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
150 (progn
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
151 (add-hook 'write-file-hooks 'save-to-unix-hook)
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
152 (add-hook 'after-save-hook 'revert-from-unix-hook))
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
153 (progn
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
154 (remove-hook 'write-file-hooks 'save-to-unix-hook)
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
155 (remove-hook 'after-save-hook 'revert-from-unix-hook))))
cf9fbf172b0d (grep-null-device): Set to "NUL".
Richard M. Stallman <rms@gnu.org>
parents: 11743
diff changeset
156
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157 ;;; Fix interface to (X-specific) mouse.el
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158 (defalias 'x-set-selection 'ignore)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159 (fset 'x-get-selection '(lambda (&rest rest) ""))
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160 (fmakunbound 'font-menu-add-default)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161 (global-unset-key [C-down-mouse-1])
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162 (global-unset-key [C-down-mouse-2])
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
163 (global-unset-key [C-down-mouse-3])
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
164
11399
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
165 ;;; Set to a system sound if you want a fancy bell.
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
166 (set-message-beep nil)
f322675d5c53 Key [C-M-backspace] defined.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
167
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168 ;;; winnt.el ends here