diff options
| author | Peter Breton | 2000-10-05 02:48:41 +0000 |
|---|---|---|
| committer | Peter Breton | 2000-10-05 02:48:41 +0000 |
| commit | 3478046b5a77d90186d35e66613d4cfa89801fe3 (patch) | |
| tree | 860a4ff31a769e662aad1ddef63ccded5c27e126 | |
| parent | 8a677d4fdd85e4275d8aac26254c8fdd090d2ff4 (diff) | |
| download | emacs-3478046b5a77d90186d35e66613d4cfa89801fe3.tar.gz emacs-3478046b5a77d90186d35e66613d4cfa89801fe3.zip | |
(nslookup-font-lock-keywords, ftp-font-lock-keywords,
smbclient-font-lock-keywords): Ignore value of window-system;
always define the keywords
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/net/net-utils.el | 71 |
2 files changed, 40 insertions, 37 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2b3b3477d4d..d6a76f4116a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2000-10-04 Peter Breton <pbreton@ne.mediaone.net> | ||
| 2 | |||
| 3 | * net/net-utils.el (nslookup-font-lock-keywords) | ||
| 4 | (ftp-font-lock-keywords, smbclient-font-lock-keywords): | ||
| 5 | Ignore the value of wqindow-system; always define keywords | ||
| 6 | |||
| 1 | 2000-10-05 Kenichi Handa <handa@etl.go.jp> | 7 | 2000-10-05 Kenichi Handa <handa@etl.go.jp> |
| 2 | 8 | ||
| 3 | * startup.el (fancy-splash-screens): Remove the code for | 9 | * startup.el (fancy-splash-screens): Remove the code for |
diff --git a/lisp/net/net-utils.el b/lisp/net/net-utils.el index 1f05b3f12bf..9f98b7f8091 100644 --- a/lisp/net/net-utils.el +++ b/lisp/net/net-utils.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Author: Peter Breton <pbreton@cs.umb.edu> | 3 | ;; Author: Peter Breton <pbreton@cs.umb.edu> |
| 4 | ;; Created: Sun Mar 16 1997 | 4 | ;; Created: Sun Mar 16 1997 |
| 5 | ;; Keywords: network communications | 5 | ;; Keywords: network communications |
| 6 | ;; Time-stamp: <2000-10-04 01:32:16 pbreton> | 6 | ;; Time-stamp: <2000-10-04 22:39:05 pbreton> |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
| @@ -227,54 +227,51 @@ These options can be used to limit how many ICMP packets are emitted." | |||
| 227 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 227 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 228 | 228 | ||
| 229 | (defconst nslookup-font-lock-keywords | 229 | (defconst nslookup-font-lock-keywords |
| 230 | (and window-system | 230 | (progn |
| 231 | (progn | 231 | (require 'font-lock) |
| 232 | (require 'font-lock) | 232 | (list |
| 233 | (list | 233 | (list nslookup-prompt-regexp 0 font-lock-reference-face) |
| 234 | (list nslookup-prompt-regexp 0 font-lock-reference-face) | 234 | (list "^[A-Za-z0-9 _]+:" 0 font-lock-type-face) |
| 235 | (list "^[A-Za-z0-9 _]+:" 0 font-lock-type-face) | 235 | (list "\\<\\(SOA\\|NS\\|MX\\|A\\|CNAME\\)\\>" |
| 236 | (list "\\<\\(SOA\\|NS\\|MX\\|A\\|CNAME\\)\\>" | 236 | 1 font-lock-keyword-face) |
| 237 | 1 font-lock-keyword-face) | 237 | ;; Dotted quads |
| 238 | ;; Dotted quads | 238 | (list |
| 239 | (list | 239 | (mapconcat 'identity |
| 240 | (mapconcat 'identity | 240 | (make-list 4 "[0-9]+") |
| 241 | (make-list 4 "[0-9]+") | 241 | "\\.") |
| 242 | "\\.") | 242 | 0 font-lock-variable-name-face) |
| 243 | 0 font-lock-variable-name-face) | 243 | ;; Host names |
| 244 | ;; Host names | 244 | (list |
| 245 | (list | 245 | (let ((host-expression "[-A-Za-z0-9]+")) |
| 246 | (let ((host-expression "[-A-Za-z0-9]+")) | 246 | (concat |
| 247 | (concat | 247 | (mapconcat 'identity |
| 248 | (mapconcat 'identity | 248 | (make-list 2 host-expression) |
| 249 | (make-list 2 host-expression) | 249 | "\\.") |
| 250 | "\\.") | 250 | "\\(\\." host-expression "\\)*") |
| 251 | "\\(\\." host-expression "\\)*") | 251 | ) |
| 252 | ) | 252 | 0 font-lock-variable-name-face) |
| 253 | 0 font-lock-variable-name-face) | 253 | )) |
| 254 | ))) | 254 | "Expressions to font-lock for nslookup.") |
| 255 | "Expressions to font-lock for nslookup.") | ||
| 256 | 255 | ||
| 257 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 256 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 258 | ;; FTP goodies | 257 | ;; FTP goodies |
| 259 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 258 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 260 | 259 | ||
| 261 | (defconst ftp-font-lock-keywords | 260 | (defconst ftp-font-lock-keywords |
| 262 | (and window-system | 261 | (progn |
| 263 | (progn | 262 | (require 'font-lock) |
| 264 | (require 'font-lock) | 263 | (list |
| 265 | (list | 264 | (list ftp-prompt-regexp 0 font-lock-reference-face)))) |
| 266 | (list ftp-prompt-regexp 0 font-lock-reference-face))))) | ||
| 267 | 265 | ||
| 268 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 266 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 269 | ;; smbclient goodies | 267 | ;; smbclient goodies |
| 270 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 268 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 271 | 269 | ||
| 272 | (defconst smbclient-font-lock-keywords | 270 | (defconst smbclient-font-lock-keywords |
| 273 | (and window-system | 271 | (progn |
| 274 | (progn | 272 | (require 'font-lock) |
| 275 | (require 'font-lock) | 273 | (list |
| 276 | (list | 274 | (list smbclient-prompt-regexp 0 font-lock-reference-face)))) |
| 277 | (list smbclient-prompt-regexp 0 font-lock-reference-face))))) | ||
| 278 | 275 | ||
| 279 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 276 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 280 | ;; Utility functions | 277 | ;; Utility functions |