diff options
| author | Pavel Janík | 2001-07-16 12:23:00 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-07-16 12:23:00 +0000 |
| commit | e8af40eed41d6c61ea6a0649512c4b09afcb1bfa (patch) | |
| tree | 588654cb6c38a93c432bfae53ccbf36569e3cf23 /lisp/net | |
| parent | 4cba8c0bdcce038e6966aab82d08859d796e69d0 (diff) | |
| download | emacs-e8af40eed41d6c61ea6a0649512c4b09afcb1bfa.tar.gz emacs-e8af40eed41d6c61ea6a0649512c4b09afcb1bfa.zip | |
Some fixes to follow coding conventions.
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/browse-url.el | 6 | ||||
| -rw-r--r-- | lisp/net/net-utils.el | 4 | ||||
| -rw-r--r-- | lisp/net/quickurl.el | 4 | ||||
| -rw-r--r-- | lisp/net/snmp-mode.el | 8 | ||||
| -rw-r--r-- | lisp/net/webjump.el | 12 | ||||
| -rw-r--r-- | lisp/net/zone-mode.el | 6 |
6 files changed, 23 insertions, 17 deletions
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 3b516c26692..cebdb2fdcda 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; browse-url.el --- Pass a URL to a WWW browser | 1 | ;;; browse-url.el --- pass a URL to a WWW browser |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 | 3 | ;; Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| @@ -1012,13 +1012,13 @@ used instead of `browse-url-new-window-flag'." | |||
| 1012 | (switch-to-buffer buf))) | 1012 | (switch-to-buffer buf))) |
| 1013 | (if (eq (following-char) ?_) | 1013 | (if (eq (following-char) ?_) |
| 1014 | (cond ((eq browse-url-lynx-input-field 'warn) | 1014 | (cond ((eq browse-url-lynx-input-field 'warn) |
| 1015 | (error "Please move out of the input field first.")) | 1015 | (error "Please move out of the input field first")) |
| 1016 | ((eq browse-url-lynx-input-field 'avoid) | 1016 | ((eq browse-url-lynx-input-field 'avoid) |
| 1017 | (while (and (eq (following-char) ?_) (> n 0)) | 1017 | (while (and (eq (following-char) ?_) (> n 0)) |
| 1018 | (term-send-down) ; down arrow | 1018 | (term-send-down) ; down arrow |
| 1019 | (sit-for browse-url-lynx-input-delay)) | 1019 | (sit-for browse-url-lynx-input-delay)) |
| 1020 | (if (eq (following-char) ?_) | 1020 | (if (eq (following-char) ?_) |
| 1021 | (error "Cannot move out of the input field, sorry."))))) | 1021 | (error "Cannot move out of the input field, sorry"))))) |
| 1022 | (term-send-string proc (concat "g" ; goto | 1022 | (term-send-string proc (concat "g" ; goto |
| 1023 | "\C-u" ; kill default url | 1023 | "\C-u" ; kill default url |
| 1024 | url | 1024 | url |
diff --git a/lisp/net/net-utils.el b/lisp/net/net-utils.el index 579123a5dd3..f0e091ccc7f 100644 --- a/lisp/net/net-utils.el +++ b/lisp/net/net-utils.el | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | ;;; net-utils.el --- Network functions | 1 | ;;; net-utils.el --- network functions |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Peter Breton <pbreton@cs.umb.edu> | 5 | ;; Author: Peter Breton <pbreton@cs.umb.edu> |
| 6 | ;; Created: Sun Mar 16 1997 | 6 | ;; Created: Sun Mar 16 1997 |
| 7 | ;; Keywords: network communications | 7 | ;; Keywords: network communications |
| 8 | ;; Time-stamp: <2000-10-04 22:39:05 pbreton> | 8 | ;; Time-stamp: <2001-07-15 00:34:52 pavel> |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
diff --git a/lisp/net/quickurl.el b/lisp/net/quickurl.el index 4076c5ae7f2..0751aec4286 100644 --- a/lisp/net/quickurl.el +++ b/lisp/net/quickurl.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; quickurl.el --- Insert an URL based on text at point in buffer. | 1 | ;;; quickurl.el --- insert an URL based on text at point in buffer |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1999,2000,2001 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1999,2000,2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -7,7 +7,7 @@ | |||
| 7 | ;; Created: 1999-05-28 | 7 | ;; Created: 1999-05-28 |
| 8 | ;; Keywords: hypermedia | 8 | ;; Keywords: hypermedia |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| 12 | ;; GNU Emacs is free software; you can redistribute it and/or modify | 12 | ;; GNU Emacs is free software; you can redistribute it and/or modify |
| 13 | ;; it under the terms of the GNU General Public License as published by | 13 | ;; it under the terms of the GNU General Public License as published by |
diff --git a/lisp/net/snmp-mode.el b/lisp/net/snmp-mode.el index 8753cceda25..227eccd4757 100644 --- a/lisp/net/snmp-mode.el +++ b/lisp/net/snmp-mode.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; snmp-mode.el --- SNMP & SNMPv2 MIB major mode. | 1 | ;;; snmp-mode.el --- SNMP & SNMPv2 MIB major mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1995,1998 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1995,1998 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -22,6 +22,8 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 22 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 23 | ;; Boston, MA 02111-1307, USA. | 23 | ;; Boston, MA 02111-1307, USA. |
| 24 | 24 | ||
| 25 | ;;; Commentary: | ||
| 26 | |||
| 25 | ;; INTRODUCTION | 27 | ;; INTRODUCTION |
| 26 | ;; ------------ | 28 | ;; ------------ |
| 27 | ;; This package provides a major mode for editing SNMP MIBs. It | 29 | ;; This package provides a major mode for editing SNMP MIBs. It |
| @@ -82,6 +84,8 @@ | |||
| 82 | ;; Enabling global-font-lock-mode is also sufficient. | 84 | ;; Enabling global-font-lock-mode is also sufficient. |
| 83 | ;; | 85 | ;; |
| 84 | 86 | ||
| 87 | ;;; Code: | ||
| 88 | |||
| 85 | ;;;---------------------------------------------------------------------------- | 89 | ;;;---------------------------------------------------------------------------- |
| 86 | ;; | 90 | ;; |
| 87 | ;; Customize these: | 91 | ;; Customize these: |
| @@ -713,4 +717,4 @@ controls whether case is significant." | |||
| 713 | 717 | ||
| 714 | (provide 'snmp-mode) | 718 | (provide 'snmp-mode) |
| 715 | 719 | ||
| 716 | ;; snmp-mode.el ends here | 720 | ;;; snmp-mode.el ends here |
diff --git a/lisp/net/webjump.el b/lisp/net/webjump.el index c55a12c45e8..53e97ae8f1b 100644 --- a/lisp/net/webjump.el +++ b/lisp/net/webjump.el | |||
| @@ -287,14 +287,14 @@ Please submit bug reports and other feedback to the author, Neil W. Van Dyke | |||
| 287 | ((symbolp expr) | 287 | ((symbolp expr) |
| 288 | (if (fboundp expr) | 288 | (if (fboundp expr) |
| 289 | (funcall expr name) | 289 | (funcall expr name) |
| 290 | (error "WebJump URL function \"%s\" undefined." | 290 | (error "WebJump URL function \"%s\" undefined" |
| 291 | expr))) | 291 | expr))) |
| 292 | (t (error "WebJump URL expression for \"%s\" invalid." | 292 | (t (error "WebJump URL expression for \"%s\" invalid" |
| 293 | name))))))) | 293 | name))))))) |
| 294 | 294 | ||
| 295 | (defun webjump-builtin (expr name) | 295 | (defun webjump-builtin (expr name) |
| 296 | (if (< (length expr) 1) | 296 | (if (< (length expr) 1) |
| 297 | (error "WebJump URL builtin for \"%s\" empty." name)) | 297 | (error "WebJump URL builtin for \"%s\" empty" name)) |
| 298 | (let ((builtin (aref expr 0))) | 298 | (let ((builtin (aref expr 0))) |
| 299 | (cond | 299 | (cond |
| 300 | ((eq builtin 'mirrors) | 300 | ((eq builtin 'mirrors) |
| @@ -307,12 +307,12 @@ Please submit bug reports and other feedback to the author, Neil W. Van Dyke | |||
| 307 | ((eq builtin 'simple-query) | 307 | ((eq builtin 'simple-query) |
| 308 | (webjump-builtin-check-args expr name 3) | 308 | (webjump-builtin-check-args expr name 3) |
| 309 | (webjump-do-simple-query name (aref expr 1) (aref expr 2) (aref expr 3))) | 309 | (webjump-do-simple-query name (aref expr 1) (aref expr 2) (aref expr 3))) |
| 310 | (t (error "WebJump URL builtin \"%s\" for \"%s\" invalid." | 310 | (t (error "WebJump URL builtin \"%s\" for \"%s\" invalid" |
| 311 | builtin name))))) | 311 | builtin name))))) |
| 312 | 312 | ||
| 313 | (defun webjump-builtin-check-args (expr name count) | 313 | (defun webjump-builtin-check-args (expr name count) |
| 314 | (or (= (length expr) (1+ count)) | 314 | (or (= (length expr) (1+ count)) |
| 315 | (error "WebJump URL builtin \"%s\" for \"%s\" needs %d args." | 315 | (error "WebJump URL builtin \"%s\" for \"%s\" needs %d args" |
| 316 | (aref expr 0) name count))) | 316 | (aref expr 0) name count))) |
| 317 | 317 | ||
| 318 | (defun webjump-choose-mirror (name urls) | 318 | (defun webjump-choose-mirror (name urls) |
| @@ -400,4 +400,4 @@ Please submit bug reports and other feedback to the author, Neil W. Van Dyke | |||
| 400 | 400 | ||
| 401 | (provide 'webjump) | 401 | (provide 'webjump) |
| 402 | 402 | ||
| 403 | ;; webjump.el ends here | 403 | ;;; webjump.el ends here |
diff --git a/lisp/net/zone-mode.el b/lisp/net/zone-mode.el index 2a534d8a6d0..d1528aa1794 100644 --- a/lisp/net/zone-mode.el +++ b/lisp/net/zone-mode.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; zone-mode.el -- major mode for editing DNS zone files. | 1 | ;;; zone-mode.el --- major mode for editing DNS zone files |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1998 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1998 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -22,6 +22,8 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 22 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 23 | ;; Boston, MA 02111-1307, USA. | 23 | ;; Boston, MA 02111-1307, USA. |
| 24 | 24 | ||
| 25 | ;;; Commentary: | ||
| 26 | |||
| 25 | ;;; | 27 | ;;; |
| 26 | ;;; See the comments in ``define-derived-mode zone-mode'' | 28 | ;;; See the comments in ``define-derived-mode zone-mode'' |
| 27 | ;;; (the last function in this file) | 29 | ;;; (the last function in this file) |
| @@ -52,7 +54,7 @@ | |||
| 52 | ((not (string= old-date cur-date)) | 54 | ((not (string= old-date cur-date)) |
| 53 | "00") ;; reset sequeence number | 55 | "00") ;; reset sequeence number |
| 54 | ((>= old-seq-num 99) | 56 | ((>= old-seq-num 99) |
| 55 | (error "Serial number's sequenece cannot increment beyond 99.")) | 57 | (error "Serial number's sequenece cannot increment beyond 99")) |
| 56 | (t | 58 | (t |
| 57 | (format "%02d" (1+ old-seq-num))))) | 59 | (format "%02d" (1+ old-seq-num))))) |
| 58 | (old-serial (concat old-date old-seq)) | 60 | (old-serial (concat old-date old-seq)) |