aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-11-19 06:24:36 +0000
committerRichard M. Stallman2001-11-19 06:24:36 +0000
commit9d551c66b1f1e34c84ff2d508a554d573aff1699 (patch)
treecf4ae133af368ebb3d56e60a6b07b5545429de11
parentc2988498965503ba210043abca8928d96e6aabd8 (diff)
downloademacs-9d551c66b1f1e34c84ff2d508a554d573aff1699.tar.gz
emacs-9d551c66b1f1e34c84ff2d508a554d573aff1699.zip
(network-connection-service-abbrev-alist): New variable.
-rw-r--r--lisp/net/net-utils.el16
1 files changed, 11 insertions, 5 deletions
diff --git a/lisp/net/net-utils.el b/lisp/net/net-utils.el
index f0e091ccc7f..aa9596b02eb 100644
--- a/lisp/net/net-utils.el
+++ b/lisp/net/net-utils.el
@@ -624,7 +624,13 @@ If your system's ping continues until interrupted, you can try setting
624 (cons 'rlogin 513) 624 (cons 'rlogin 513)
625 ) 625 )
626 "Alist of services and associated TCP port numbers. 626 "Alist of services and associated TCP port numbers.
627This list in not complete.") 627This list is not complete.")
628
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.")
628 634
629;; Workhorse macro 635;; Workhorse macro
630(defmacro run-network-program (process-name host port 636(defmacro run-network-program (process-name host port
@@ -804,10 +810,10 @@ from SEARCH-STRING. With argument, prompt for whois server."
804 (let ((network-abbrev-table 810 (let ((network-abbrev-table
805 (or 811 (or
806 (assoc service network-connection-service-abbrev-alist) 812 (assoc service network-connection-service-abbrev-alist)
807 (and (rassoc service network-connection-service-alist) 813 (and (rassoc service network-connection-service-alist)
808 (assoc 814 (assoc
809 (elt (rassoc service network-connection-service-alist) 0) 815 (elt (rassoc service network-connection-service-alist) 0)
810 network-connection-service-abbrev-alist))))) 816 network-connection-service-abbrev-alist)))))
811 (make-local-variable 'network-connection-host) 817 (make-local-variable 'network-connection-host)
812 (setq network-connection-host host) 818 (setq network-connection-host host)
813 (make-local-variable 'network-connection-service) 819 (make-local-variable 'network-connection-service)