annotate lisp/w32-fns.el @ 12952:0ad88e6d8ef1

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