aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris <[email protected]>2010-11-09 20:13:21 -0800
committerGlenn Morris <[email protected]>2010-11-09 20:13:21 -0800
commit17731c39b249ec0e40ece1e18ed120ff4031568c (patch)
tree539d7fec2ccafe25793455c4f6f7244118d7d9f6
parent9228bbd3458f4b827a01bb2a4d28b3f77f6d3ac5 (diff)
net-utils system-type trivia.
* lisp/net/net-utils.el (net-utils-remove-ctl-m): Use memq for system-types. (ping-program-options): Remove non-existent `linux' system-type.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/net/net-utils.el6
2 files changed, 5 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f5b45fda92..19500be1a7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
2010-11-10 Glenn Morris <[email protected]>
+ * net/net-utils.el (net-utils-remove-ctl-m): Use memq for system-types.
+ (ping-program-options): Remove non-existent `linux' system-type.
+
* startup.el (package-initialize): Update declaration.
* textmodes/remember.el (remember-time-to-seconds): Remove.
diff --git a/lisp/net/net-utils.el b/lisp/net/net-utils.el
index b69c571ddf..60829f300b 100644
--- a/lisp/net/net-utils.el
+++ b/lisp/net/net-utils.el
@@ -55,8 +55,7 @@
:group 'comm
:version "20.3")
-(defcustom net-utils-remove-ctl-m
- (member system-type (list 'windows-nt 'msdos))
+(defcustom net-utils-remove-ctl-m (memq system-type '(windows-nt msdos))
"If non-nil, remove control-Ms from output."
:group 'net-utils
:type 'boolean)
@@ -82,7 +81,7 @@
;; On GNU/Linux and Irix, the system's ping program seems to send packets
;; indefinitely unless told otherwise
(defcustom ping-program-options
- (and (memq system-type (list 'linux 'gnu/linux 'irix))
+ (and (memq system-type '(gnu/linux irix))
(list "-c" "4"))
"Options for the ping program.
These options can be used to limit how many ICMP packets are emitted."
@@ -889,5 +888,4 @@ from SEARCH-STRING. With argument, prompt for whois server."
(provide 'net-utils)
-;; arch-tag: 97119e91-9edb-4376-838b-bf7058fa1314
;;; net-utils.el ends here