aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-12-24 20:18:36 +0000
committerRichard M. Stallman2001-12-24 20:18:36 +0000
commit96c01bd4e39e89cb72d9c246b09016e9e364c1ba (patch)
tree4ba0c8cc38858373aac4c0f69a553bad8605f4bc
parent85c7ceaa019c314cab8425e0a1cf25e6a3348c52 (diff)
downloademacs-96c01bd4e39e89cb72d9c246b09016e9e364c1ba.tar.gz
emacs-96c01bd4e39e89cb72d9c246b09016e9e364c1ba.zip
(ftp-mode-abbrev-table): Don't define it.
(nslookup-mode-abbrev-table): Don't define it. (smbclient-mode-abbrev-table): Don't define it. (ftp-mode): Don't use ftp-mode-abbrev-table; don't enable Abbrev mode. (nslookup-mode, smbclient-mode): Likewise. (network-connection-service-abbrev-alist): Variable deleted. (network-connection-mode-setup): Don't set up abbrev table.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/net/net-utils.el48
2 files changed, 12 insertions, 44 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f9d4a44e93b..6da4344d587 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -7,6 +7,14 @@
7 7
82001-12-24 Richard M. Stallman <rms@gnu.org> 82001-12-24 Richard M. Stallman <rms@gnu.org>
9 9
10 * net/net-utils.el (ftp-mode-abbrev-table): Don't define it.
11 (nslookup-mode-abbrev-table): Don't define it.
12 (smbclient-mode-abbrev-table): Don't define it.
13 (ftp-mode): Don't use ftp-mode-abbrev-table; don't enable Abbrev mode.
14 (nslookup-mode, smbclient-mode): Likewise.
15 (network-connection-service-abbrev-alist): Variable deleted.
16 (network-connection-mode-setup): Don't set up abbrev table.
17
10 * faces.el (minibuffer-prompt): New face. 18 * faces.el (minibuffer-prompt): New face.
11 (minibuffer-prompt-properties): Add `face' property. 19 (minibuffer-prompt-properties): Add `face' property.
12 20
diff --git a/lisp/net/net-utils.el b/lisp/net/net-utils.el
index aa9596b02eb..057e8cbee0b 100644
--- a/lisp/net/net-utils.el
+++ b/lisp/net/net-utils.el
@@ -456,24 +456,12 @@ If your system's ping continues until interrupted, you can try setting
456 (set 456 (set
457 (make-local-variable 'font-lock-defaults) 457 (make-local-variable 'font-lock-defaults)
458 '((nslookup-font-lock-keywords))) 458 '((nslookup-font-lock-keywords)))
459 (setq local-abbrev-table nslookup-mode-abbrev-table)
460 (abbrev-mode t)
461 (setq comint-prompt-regexp nslookup-prompt-regexp) 459 (setq comint-prompt-regexp nslookup-prompt-regexp)
462 (setq comint-input-autoexpand t) 460 (setq comint-input-autoexpand t)
463 ) 461 )
464 462
465(define-key nslookup-mode-map "\t" 'comint-dynamic-complete) 463(define-key nslookup-mode-map "\t" 'comint-dynamic-complete)
466 464
467(define-abbrev nslookup-mode-abbrev-table "e" "exit")
468(define-abbrev nslookup-mode-abbrev-table "f" "finger")
469(define-abbrev nslookup-mode-abbrev-table "h" "help")
470(define-abbrev nslookup-mode-abbrev-table "lse" "lserver")
471(define-abbrev nslookup-mode-abbrev-table "q" "exit")
472(define-abbrev nslookup-mode-abbrev-table "r" "root")
473(define-abbrev nslookup-mode-abbrev-table "s" "set")
474(define-abbrev nslookup-mode-abbrev-table "se" "server")
475(define-abbrev nslookup-mode-abbrev-table "v" "viewer")
476
477;;;###autoload 465;;;###autoload
478(defun dig (host) 466(defun dig (host)
479 "Run dig program." 467 "Run dig program."
@@ -526,15 +514,8 @@ If your system's ping continues until interrupted, you can try setting
526 (default-value 'comint-output-filter-functions)) 514 (default-value 'comint-output-filter-functions))
527 (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt 515 (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt
528 nil t)) 516 nil t))
529 (setq local-abbrev-table ftp-mode-abbrev-table)
530 (abbrev-mode t)
531 ) 517 )
532 518
533(define-abbrev ftp-mode-abbrev-table "q" "quit")
534(define-abbrev ftp-mode-abbrev-table "g" "get")
535(define-abbrev ftp-mode-abbrev-table "p" "prompt")
536(define-abbrev ftp-mode-abbrev-table "anon" "anonymous")
537
538;; Occasionally useful 519;; Occasionally useful
539(define-key ftp-mode-map "\t" 'comint-dynamic-complete) 520(define-key ftp-mode-map "\t" 'comint-dynamic-complete)
540 521
@@ -585,12 +566,8 @@ If your system's ping continues until interrupted, you can try setting
585 (default-value 'comint-output-filter-functions)) 566 (default-value 'comint-output-filter-functions))
586 (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt 567 (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt
587 nil t)) 568 nil t))
588 (setq local-abbrev-table smbclient-mode-abbrev-table)
589 (abbrev-mode t)
590 ) 569 )
591 570
592(define-abbrev smbclient-mode-abbrev-table "q" "quit")
593
594 571
595;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 572;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
596;; Network Connections 573;; Network Connections
@@ -626,12 +603,6 @@ If your system's ping continues until interrupted, you can try setting
626 "Alist of services and associated TCP port numbers. 603 "Alist of services and associated TCP port numbers.
627This list is not complete.") 604This list is not complete.")
628 605
629(defvar network-connection-service-abbrev-alist nil
630 "Alist of (SERVICE . ABBREVTABLE) for various network services.
631SERVICE can be either a symbol or a number appearing in
632`network-connection-service-alist'. ABBREVTABLE is the abbrev table
633to use in buffers that talk to that network service.")
634
635;; Workhorse macro 606;; Workhorse macro
636(defmacro run-network-program (process-name host port 607(defmacro run-network-program (process-name host port
637 &optional initial-string) 608 &optional initial-string)
@@ -807,21 +778,10 @@ from SEARCH-STRING. With argument, prompt for whois server."
807 ) 778 )
808 779
809(defun network-connection-mode-setup (host service) 780(defun network-connection-mode-setup (host service)
810 (let ((network-abbrev-table 781 (make-local-variable 'network-connection-host)
811 (or 782 (setq network-connection-host host)
812 (assoc service network-connection-service-abbrev-alist) 783 (make-local-variable 'network-connection-service)
813 (and (rassoc service network-connection-service-alist) 784 (setq network-connection-service service)))
814 (assoc
815 (elt (rassoc service network-connection-service-alist) 0)
816 network-connection-service-abbrev-alist)))))
817 (make-local-variable 'network-connection-host)
818 (setq network-connection-host host)
819 (make-local-variable 'network-connection-service)
820 (setq network-connection-service service)
821 (and network-abbrev-table
822 (setq local-abbrev-table (cdr network-abbrev-table))
823 (abbrev-mode t)
824 )))
825 785
826;;;###autoload 786;;;###autoload
827(defun network-connection-to-service (host service) 787(defun network-connection-to-service (host service)