aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-11-09 20:24:47 -0800
committerGlenn Morris2010-11-09 20:24:47 -0800
commit72bc50c0291f14945d49f8bd39f19a75c95f26e3 (patch)
tree86f7edd55df6fda94297d9a694be53099393ec5b
parent17731c39b249ec0e40ece1e18ed120ff4031568c (diff)
downloademacs-72bc50c0291f14945d49f8bd39f19a75c95f26e3.tar.gz
emacs-72bc50c0291f14945d49f8bd39f19a75c95f26e3.zip
system-type related trivia.
* lisp/cedet/semantic/bovine/c.el: Test system-type with memq. * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres, cperl-write-tags): No recent Emacs supports system-type `emx'. * lisp/progmodes/ada-xref.el (is-windows): Rename to ada-on-ms-windows. (ada-command-separator, ada-default-prj-properties) (ada-find-any-references): Update for above name change. * lisp/dirtrack.el (dirtrack-directory-function) (dirtrack-canonicalize-function): * lisp/filecache.el (file-cache-completion-ignore-case) (file-cache-case-fold-search, file-cache-ignore-case): * lisp/term.el (serial-port-is-file-p): Cosmetic change. * lisp/emulation/viper-init.el (viper-ms-style-os-p): Doc fix. Remove non-existent `windows-95' system-type. * lisp/dired.el (dired-chown-program): Remove non-existent `linux' system-type. * lisp/locate.el: Comment.
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/cedet/ChangeLog4
-rw-r--r--lisp/cedet/semantic/bovine/c.el4
-rw-r--r--lisp/dired.el2
-rw-r--r--lisp/dirtrack.el5
-rw-r--r--lisp/emulation/viper-init.el12
-rw-r--r--lisp/filecache.el7
-rw-r--r--lisp/locate.el2
-rw-r--r--lisp/progmodes/ada-xref.el10
-rw-r--r--lisp/progmodes/cperl-mode.el5
-rw-r--r--lisp/term.el2
11 files changed, 46 insertions, 25 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 19500be1a7f..2ab7e98c7dd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,23 @@
12010-11-10 Glenn Morris <rgm@gnu.org> 12010-11-10 Glenn Morris <rgm@gnu.org>
2 2
3 * progmodes/cperl-mode.el (cperl-find-pods-heres, cperl-write-tags):
4 No recent Emacs supports system-type `emx'.
5
6 * progmodes/ada-xref.el (is-windows): Rename to ada-on-ms-windows.
7 (ada-command-separator, ada-default-prj-properties)
8 (ada-find-any-references): Update for above name change.
9
10 * dirtrack.el (dirtrack-directory-function)
11 (dirtrack-canonicalize-function):
12 * filecache.el (file-cache-completion-ignore-case)
13 (file-cache-case-fold-search, file-cache-ignore-case):
14 * term.el (serial-port-is-file-p): Cosmetic change.
15
16 * emulation/viper-init.el (viper-ms-style-os-p): Doc fix.
17 Remove non-existent `windows-95' system-type.
18 * dired.el (dired-chown-program): Remove non-existent `linux'
19 system-type.
20
3 * net/net-utils.el (net-utils-remove-ctl-m): Use memq for system-types. 21 * net/net-utils.el (net-utils-remove-ctl-m): Use memq for system-types.
4 (ping-program-options): Remove non-existent `linux' system-type. 22 (ping-program-options): Remove non-existent `linux' system-type.
5 23
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index d225d8d15fe..8f5daf1ea22 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,3 +1,7 @@
12010-11-10 Glenn Morris <rgm@gnu.org>
2
3 * semantic/bovine/c.el: Test system-type with memq.
4
12010-11-09 Glenn Morris <rgm@gnu.org> 52010-11-09 Glenn Morris <rgm@gnu.org>
2 6
3 * semantic/lex.el (semantic-lex-ignore-comments, semantic-flex): 7 * semantic/lex.el (semantic-lex-ignore-comments, semantic-flex):
diff --git a/lisp/cedet/semantic/bovine/c.el b/lisp/cedet/semantic/bovine/c.el
index 2bac420a1c5..1b441a27d2b 100644
--- a/lisp/cedet/semantic/bovine/c.el
+++ b/lisp/cedet/semantic/bovine/c.el
@@ -94,8 +94,8 @@ NOTE: In process of obsoleting this."
94;; Compiler options need to show up after path setup, but before 94;; Compiler options need to show up after path setup, but before
95;; the preprocessor section. 95;; the preprocessor section.
96 96
97(when (member system-type '(gnu gnu/linux darwin cygwin)) 97(if (memq system-type '(gnu gnu/linux darwin cygwin))
98 (semantic-gcc-setup)) 98 (semantic-gcc-setup))
99 99
100;;; Pre-processor maps 100;;; Pre-processor maps
101;; 101;;
diff --git a/lisp/dired.el b/lisp/dired.el
index 04ba6083c21..bd3fb531d77 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -73,7 +73,7 @@ If nil, `dired-listing-switches' is used.")
73;;;###autoload 73;;;###autoload
74(defvar dired-chown-program 74(defvar dired-chown-program
75 (purecopy 75 (purecopy
76 (if (memq system-type '(hpux usg-unix-v irix linux gnu/linux cygwin)) 76 (if (memq system-type '(hpux usg-unix-v irix gnu/linux cygwin))
77 "chown" 77 "chown"
78 (if (file-exists-p "/usr/sbin/chown") 78 (if (file-exists-p "/usr/sbin/chown")
79 "/usr/sbin/chown" 79 "/usr/sbin/chown"
diff --git a/lisp/dirtrack.el b/lisp/dirtrack.el
index 4e29c51fa75..7a43459f536 100644
--- a/lisp/dirtrack.el
+++ b/lisp/dirtrack.el
@@ -144,7 +144,7 @@ be on a single line."
144 :type 'string) 144 :type 'string)
145 145
146(defcustom dirtrack-directory-function 146(defcustom dirtrack-directory-function
147 (if (memq system-type (list 'ms-dos 'windows-nt 'cygwin)) 147 (if (memq system-type '(ms-dos windows-nt cygwin))
148 'dirtrack-windows-directory-function 148 'dirtrack-windows-directory-function
149 'file-name-as-directory) 149 'file-name-as-directory)
150 "Function to apply to the prompt directory for comparison purposes." 150 "Function to apply to the prompt directory for comparison purposes."
@@ -152,7 +152,7 @@ be on a single line."
152 :type 'function) 152 :type 'function)
153 153
154(defcustom dirtrack-canonicalize-function 154(defcustom dirtrack-canonicalize-function
155 (if (memq system-type (list 'ms-dos 'windows-nt 'cygwin)) 155 (if (memq system-type '(ms-dos windows-nt cygwin))
156 'downcase 'identity) 156 'downcase 'identity)
157 "Function to apply to the default directory for comparison purposes." 157 "Function to apply to the default directory for comparison purposes."
158 :group 'dirtrack 158 :group 'dirtrack
@@ -269,5 +269,4 @@ function `dirtrack-debug-mode' to turn on debugging output."
269 269
270(provide 'dirtrack) 270(provide 'dirtrack)
271 271
272;; arch-tag: 168de071-be88-4937-aff6-2aba9f328d5a
273;;; dirtrack.el ends here 272;;; dirtrack.el ends here
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el
index 9f7b473c67a..5af96922171 100644
--- a/lisp/emulation/viper-init.el
+++ b/lisp/emulation/viper-init.el
@@ -1,7 +1,7 @@
1;;; viper-init.el --- some common definitions for Viper 1;;; viper-init.el --- some common definitions for Viper
2 2
3;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
4;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Author: Michael Kifer <kifer@cs.stonybrook.edu> 6;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
7;; Package: viper 7;; Package: viper
@@ -63,9 +63,10 @@
63(defun viper-window-display-p () 63(defun viper-window-display-p ()
64 (and (viper-device-type) (not (memq (viper-device-type) '(tty stream pc))))) 64 (and (viper-device-type) (not (memq (viper-device-type) '(tty stream pc)))))
65 65
66(defcustom viper-ms-style-os-p (memq system-type 66(defcustom viper-ms-style-os-p
67 '(ms-dos windows-nt windows-95)) 67 (memq system-type (if (featurep 'emacs) '(ms-dos windows-nt)
68 "Tells if Emacs is running under an MS-style OS: ms-dos, windows-nt, W95." 68 '(ms-dos windows-nt windows-95)))
69 "Non-nil if Emacs is running under an MS-style OS: MS-DOS, or MS-Windows."
69 :type 'boolean 70 :type 'boolean
70 :tag "Is it Microsoft-made OS?" 71 :tag "Is it Microsoft-made OS?"
71 :group 'viper-misc) 72 :group 'viper-misc)
@@ -996,5 +997,4 @@ on a dumb terminal."
996;; eval: (put 'viper-deflocalvar 'lisp-indent-hook 'defun) 997;; eval: (put 'viper-deflocalvar 'lisp-indent-hook 'defun)
997;; End: 998;; End:
998 999
999;; arch-tag: 4efa2416-1fcb-4690-be10-1a2a0248d250
1000;;; viper-init.el ends here 1000;;; viper-init.el ends here
diff --git a/lisp/filecache.el b/lisp/filecache.el
index b4b1e8bd954..51b7ce59b1e 100644
--- a/lisp/filecache.el
+++ b/lisp/filecache.el
@@ -207,7 +207,7 @@ should be t."
207 :group 'file-cache) 207 :group 'file-cache)
208 208
209(defcustom file-cache-completion-ignore-case 209(defcustom file-cache-completion-ignore-case
210 (if (memq system-type (list 'ms-dos 'windows-nt 'cygwin)) 210 (if (memq system-type '(ms-dos windows-nt cygwin))
211 t 211 t
212 completion-ignore-case) 212 completion-ignore-case)
213 "If non-nil, file-cache completion should ignore case. 213 "If non-nil, file-cache completion should ignore case.
@@ -216,7 +216,7 @@ Defaults to the value of `completion-ignore-case'."
216 :group 'file-cache) 216 :group 'file-cache)
217 217
218(defcustom file-cache-case-fold-search 218(defcustom file-cache-case-fold-search
219 (if (memq system-type (list 'ms-dos 'windows-nt 'cygwin)) 219 (if (memq system-type '(ms-dos windows-nt cygwin))
220 t 220 t
221 case-fold-search) 221 case-fold-search)
222 "If non-nil, file-cache completion should ignore case. 222 "If non-nil, file-cache completion should ignore case.
@@ -225,7 +225,7 @@ Defaults to the value of `case-fold-search'."
225 :group 'file-cache) 225 :group 'file-cache)
226 226
227(defcustom file-cache-ignore-case 227(defcustom file-cache-ignore-case
228 (memq system-type (list 'ms-dos 'windows-nt 'cygwin)) 228 (memq system-type '(ms-dos windows-nt cygwin))
229 "Non-nil means ignore case when checking completions in the file cache. 229 "Non-nil means ignore case when checking completions in the file cache.
230Defaults to nil on DOS and Windows, and t on other systems." 230Defaults to nil on DOS and Windows, and t on other systems."
231 :type 'boolean 231 :type 'boolean
@@ -687,5 +687,4 @@ match REGEXP."
687 687
688(provide 'filecache) 688(provide 'filecache)
689 689
690;; arch-tag: 433d3ca4-4af2-47ce-b2cf-1f727460f538
691;;; filecache.el ends here 690;;; filecache.el ends here
diff --git a/lisp/locate.el b/lisp/locate.el
index f58b95710e2..4e8925665ca 100644
--- a/lisp/locate.el
+++ b/lisp/locate.el
@@ -97,7 +97,7 @@
97;; (defadvice dired-make-relative (before set-no-error activate) 97;; (defadvice dired-make-relative (before set-no-error activate)
98;; "For locate mode and Windows, don't return errors" 98;; "For locate mode and Windows, don't return errors"
99;; (if (and (eq major-mode 'locate-mode) 99;; (if (and (eq major-mode 'locate-mode)
100;; (memq system-type (list 'windows-nt 'ms-dos))) 100;; (memq system-type '(windows-nt ms-dos)))
101;; (ad-set-arg 2 t) 101;; (ad-set-arg 2 t)
102;; )) 102;; ))
103;; 103;;
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el
index ceda645e682..36e297182cf 100644
--- a/lisp/progmodes/ada-xref.el
+++ b/lisp/progmodes/ada-xref.el
@@ -167,7 +167,7 @@ This has the same syntax as in the project file (with variable substitution)."
167Otherwise, ask the user for the name of the project file to use." 167Otherwise, ask the user for the name of the project file to use."
168 :type 'boolean :group 'ada) 168 :type 'boolean :group 'ada)
169 169
170(defconst is-windows (memq system-type (quote (windows-nt))) 170(defconst ada-on-ms-windows (memq system-type '(windows-nt))
171 "True if we are running on Windows.") 171 "True if we are running on Windows.")
172 172
173(defcustom ada-tight-gvd-integration nil 173(defcustom ada-tight-gvd-integration nil
@@ -222,7 +222,7 @@ Used to go back to these positions.")
222On Windows systems using `cmdproxy.exe' as the shell, 222On Windows systems using `cmdproxy.exe' as the shell,
223we need to use `/d' or the drive is never changed.") 223we need to use `/d' or the drive is never changed.")
224 224
225(defvar ada-command-separator (if is-windows " && " "\n") 225(defvar ada-command-separator (if ada-on-ms-windows " && " "\n")
226 "Separator to use between multiple commands to `compile' or `start-process'. 226 "Separator to use between multiple commands to `compile' or `start-process'.
227`cmdproxy.exe' doesn't recognize multiple-line commands, so we have to use 227`cmdproxy.exe' doesn't recognize multiple-line commands, so we have to use
228\"&&\" for now.") 228\"&&\" for now.")
@@ -768,7 +768,7 @@ is non-nil, prompt the user to select one. If none are found, return
768 'comp_opt ada-prj-default-comp-opt 768 'comp_opt ada-prj-default-comp-opt
769 'cross_prefix "" 769 'cross_prefix ""
770 'debug_cmd (concat ada-prj-default-debugger 770 'debug_cmd (concat ada-prj-default-debugger
771 " ${main}" (if is-windows ".exe")) ;; FIXME: don't need .exe? 771 " ${main}" (if ada-on-ms-windows ".exe")) ;; FIXME: don't need .exe?
772 'debug_post_cmd (list nil) 772 'debug_post_cmd (list nil)
773 'debug_pre_cmd (list (concat ada-cd-command " ${build_dir}")) 773 'debug_pre_cmd (list (concat ada-cd-command " ${build_dir}"))
774 'gnatmake_opt ada-prj-default-gnatmake-opt 774 'gnatmake_opt ada-prj-default-gnatmake-opt
@@ -782,7 +782,7 @@ is non-nil, prompt the user to select one. If none are found, return
782 'make_cmd (list ada-prj-default-make-cmd) ;; FIXME: should not a list 782 'make_cmd (list ada-prj-default-make-cmd) ;; FIXME: should not a list
783 'obj_dir (list ".") 783 'obj_dir (list ".")
784 'remote_machine "" 784 'remote_machine ""
785 'run_cmd (list (concat "./${main}" (if is-windows ".exe"))) 785 'run_cmd (list (concat "./${main}" (if ada-on-ms-windows ".exe")))
786 ;; FIXME: should not a list 786 ;; FIXME: should not a list
787 ;; FIXME: don't need .exe? 787 ;; FIXME: don't need .exe?
788 'src_dir (list ".") 788 'src_dir (list ".")
@@ -1016,7 +1016,7 @@ existing buffer `*gnatfind*', if there is one."
1016 ;; processed (gnatfind \"+\":...). 1016 ;; processed (gnatfind \"+\":...).
1017 (let* ((quote-entity 1017 (let* ((quote-entity
1018 (if (= (aref entity 0) ?\") 1018 (if (= (aref entity 0) ?\")
1019 (if is-windows 1019 (if ada-on-ms-windows
1020 (concat "\\\"" (substring entity 1 -1) "\\\"") 1020 (concat "\\\"" (substring entity 1 -1) "\\\"")
1021 (concat "'\"" (substring entity 1 -1) "\"'")) 1021 (concat "'\"" (substring entity 1 -1) "\"'"))
1022 entity)) 1022 entity))
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index fca09145839..6f8c1261510 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -3803,7 +3803,8 @@ the sections using `cperl-pod-head-face', `cperl-pod-face',
3803 indentable t)) 3803 indentable t))
3804 ;; Need to remove face as well... 3804 ;; Need to remove face as well...
3805 (goto-char min) 3805 (goto-char min)
3806 (and (eq system-type 'emx) 3806 ;; 'emx not supported by Emacs since at least 21.1.
3807 (and (featurep 'xemacs) (eq system-type 'emx)
3807 (eq (point) 1) 3808 (eq (point) 1)
3808 (let ((case-fold-search t)) 3809 (let ((case-fold-search t))
3809 (looking-at "extproc[ \t]")) ; Analogue of #! 3810 (looking-at "extproc[ \t]")) ; Analogue of #!
@@ -7038,7 +7039,7 @@ Use as
7038 (or topdir 7039 (or topdir
7039 (setq topdir default-directory)) 7040 (setq topdir default-directory))
7040 (let ((tags-file-name "TAGS") 7041 (let ((tags-file-name "TAGS")
7041 (case-fold-search (eq system-type 'emx)) 7042 (case-fold-search (and (featurep 'xemacs) (eq system-type 'emx)))
7042 xs rel tm) 7043 xs rel tm)
7043 (save-excursion 7044 (save-excursion
7044 (cond (inbuffer nil) ; Already there 7045 (cond (inbuffer nil) ; Already there
diff --git a/lisp/term.el b/lisp/term.el
index 464ff40c23c..9c511592165 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -4223,7 +4223,7 @@ Return t if this is a Unix-based system, where serial ports are
4223files, such as /dev/ttyS0. 4223files, such as /dev/ttyS0.
4224Return nil if this is Windows or DOS, where serial ports have 4224Return nil if this is Windows or DOS, where serial ports have
4225special identifiers such as COM1." 4225special identifiers such as COM1."
4226 (not (member system-type (list 'windows-nt 'cygwin 'ms-dos)))) 4226 (not (memq system-type '(windows-nt cygwin ms-dos))))
4227 4227
4228(defvar serial-name-history 4228(defvar serial-name-history
4229 (if (serial-port-is-file-p) 4229 (if (serial-port-is-file-p)