diff options
| author | Stefan Kangas | 2023-09-02 02:31:23 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2023-09-02 02:37:03 +0200 |
| commit | 65dca8db3cd3b76013bfedf73440e322627cb61c (patch) | |
| tree | 11334bde141bccd1e64e5a46585586d116e9dccb | |
| parent | fdf6c164efd0bb467d0d46460161c146e955a48c (diff) | |
| download | emacs-65dca8db3cd3b76013bfedf73440e322627cb61c.tar.gz emacs-65dca8db3cd3b76013bfedf73440e322627cb61c.zip | |
Make url-gateway-broken-resolution obsolete
* lisp/url/url-gw.el (url-gateway-broken-resolution)
(url-gateway-nslookup-program, url-gateway-nslookup-host): Make obsolete.
* doc/misc/url.texi (Broken hostname resolution): Delete commented
out section.
| -rw-r--r-- | doc/misc/url.texi | 34 | ||||
| -rw-r--r-- | etc/NEWS | 9 | ||||
| -rw-r--r-- | lisp/url/url-gw.el | 17 |
3 files changed, 21 insertions, 39 deletions
diff --git a/doc/misc/url.texi b/doc/misc/url.texi index b5a6cb0e6a1..e6636e32507 100644 --- a/doc/misc/url.texi +++ b/doc/misc/url.texi | |||
| @@ -1149,40 +1149,6 @@ If this variable is non-@code{nil} new network connections are never | |||
| 1149 | opened by the URL library. | 1149 | opened by the URL library. |
| 1150 | @end defvar | 1150 | @end defvar |
| 1151 | 1151 | ||
| 1152 | @c @node Broken hostname resolution | ||
| 1153 | @c @subsection Broken Hostname Resolution | ||
| 1154 | |||
| 1155 | @c @cindex hostname resolver | ||
| 1156 | @c @cindex resolver, hostname | ||
| 1157 | @c Some C libraries do not include the hostname resolver routines in | ||
| 1158 | @c their static libraries. If Emacs was linked statically, and was not | ||
| 1159 | @c linked with the resolver libraries, it will not be able to get to any | ||
| 1160 | @c machines off the local network. This is characterized by being able | ||
| 1161 | @c to reach someplace with a raw ip number, but not its hostname | ||
| 1162 | @c (@url{https://129.79.254.191/} works, but | ||
| 1163 | @c @url{https://www.cs.indiana.edu/} doesn't). This used to happen on | ||
| 1164 | @c SunOS4 and Ultrix, but is now probably now rare. If Emacs can't be | ||
| 1165 | @c rebuilt linked against the resolver library, it can use the external | ||
| 1166 | @c @command{nslookup} program instead. | ||
| 1167 | |||
| 1168 | @c @defopt url-gateway-broken-resolution | ||
| 1169 | @c @cindex @code{nslookup} program | ||
| 1170 | @c @cindex program, @code{nslookup} | ||
| 1171 | @c If non-@code{nil}, this variable says to use the program specified by | ||
| 1172 | @c @code{url-gateway-nslookup-program} program to do hostname resolution. | ||
| 1173 | @c @end defopt | ||
| 1174 | |||
| 1175 | @c @defopt url-gateway-nslookup-program | ||
| 1176 | @c The name of the program to do hostname lookup if Emacs can't do it | ||
| 1177 | @c directly. This program should expect a single argument on the command | ||
| 1178 | @c line---the hostname to resolve---and should produce output similar to | ||
| 1179 | @c the standard Unix @command{nslookup} program: | ||
| 1180 | @c @example | ||
| 1181 | @c Name: www.cs.indiana.edu | ||
| 1182 | @c Address: 129.79.254.191 | ||
| 1183 | @c @end example | ||
| 1184 | @c @end defopt | ||
| 1185 | |||
| 1186 | @node History | 1152 | @node History |
| 1187 | @section History | 1153 | @section History |
| 1188 | 1154 | ||
| @@ -719,6 +719,15 @@ Checkdoc now warns if the first line of an Emacs Lisp file does not | |||
| 719 | end with a "-*- lexical-binding: t -*-" cookie. Customize the user | 719 | end with a "-*- lexical-binding: t -*-" cookie. Customize the user |
| 720 | option 'checkdoc-lexical-binding-flag' to nil to disable this warning. | 720 | option 'checkdoc-lexical-binding-flag' to nil to disable this warning. |
| 721 | 721 | ||
| 722 | ** url | ||
| 723 | |||
| 724 | +++ | ||
| 725 | *** 'url-gateway-broken-resolution' is now obsolete. | ||
| 726 | This option was intended for use on SunOS 4.x and Ultrix systems, | ||
| 727 | neither of which have been supported by Emacs since version 23.1. | ||
| 728 | The user option 'url-gateway-nslookup-program' and the function | ||
| 729 | 'url-gateway-nslookup-host' are consequently also obsolete. | ||
| 730 | |||
| 722 | 731 | ||
| 723 | * New Modes and Packages in Emacs 30.1 | 732 | * New Modes and Packages in Emacs 30.1 |
| 724 | 733 | ||
diff --git a/lisp/url/url-gw.el b/lisp/url/url-gw.el index 4d7297f6f2e..568ce8679f5 100644 --- a/lisp/url/url-gw.el +++ b/lisp/url/url-gw.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; url-gw.el --- Gateway munging for URL loading -*- lexical-binding: t; -*- | 1 | ;;; url-gw.el --- Gateway munging for URL loading -*- lexical-binding: t; -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1997-1998, 2004-2023 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1997-2023 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Bill Perry <wmperry@gnu.org> | 5 | ;; Author: Bill Perry <wmperry@gnu.org> |
| 6 | ;; Maintainer: emacs-devel@gnu.org | 6 | ;; Maintainer: emacs-devel@gnu.org |
| @@ -97,21 +97,27 @@ This list will be executed as a command after logging in via telnet." | |||
| 97 | 97 | ||
| 98 | (defcustom url-gateway-broken-resolution nil | 98 | (defcustom url-gateway-broken-resolution nil |
| 99 | "Whether to use nslookup to resolve hostnames. | 99 | "Whether to use nslookup to resolve hostnames. |
| 100 | This should be used when your version of Emacs cannot correctly use DNS, | 100 | This should be used when your version of Emacs cannot correctly |
| 101 | but your machine can. This usually happens if you are running a statically | 101 | use DNS, but your machine can. |
| 102 | linked Emacs under SunOS 4.x." | 102 | |
| 103 | This used to happen on SunOS 4.x and Ultrix when Emacs was linked | ||
| 104 | statically, and also was not linked with the resolver libraries. | ||
| 105 | Those systems are no longer supported by Emacs." | ||
| 103 | :type 'boolean | 106 | :type 'boolean |
| 104 | :group 'url-gateway) | 107 | :group 'url-gateway) |
| 108 | (make-obsolete-variable 'url-gateway-broken-resolution nil "30.1") | ||
| 105 | 109 | ||
| 106 | (defcustom url-gateway-nslookup-program "nslookup" | 110 | (defcustom url-gateway-nslookup-program "nslookup" |
| 107 | "If non-nil then a string naming nslookup program." | 111 | "If non-nil then a string naming nslookup program." |
| 108 | :type '(choice (const :tag "None" :value nil) string) | 112 | :type '(choice (const :tag "None" :value nil) string) |
| 109 | :group 'url-gateway) | 113 | :group 'url-gateway) |
| 114 | (make-obsolete-variable 'url-gateway-nslookup-program nil "30.1") | ||
| 110 | 115 | ||
| 111 | ;; Stolen from ange-ftp | 116 | ;; Stolen from ange-ftp |
| 112 | ;;;###autoload | 117 | ;;;###autoload |
| 113 | (defun url-gateway-nslookup-host (host) | 118 | (defun url-gateway-nslookup-host (host) |
| 114 | "Attempt to resolve the given HOST using nslookup if possible." | 119 | "Attempt to resolve the given HOST using nslookup if possible." |
| 120 | (declare (obsolete nil "30.1")) | ||
| 115 | (interactive "sHost: ") | 121 | (interactive "sHost: ") |
| 116 | (if url-gateway-nslookup-program | 122 | (if url-gateway-nslookup-program |
| 117 | (let ((proc (start-process " *nslookup*" " *nslookup*" | 123 | (let ((proc (start-process " *nslookup*" " *nslookup*" |
| @@ -237,7 +243,8 @@ overriding the value of `url-gateway-method'." | |||
| 237 | 243 | ||
| 238 | ;; If the user told us to do DNS for them, do it. | 244 | ;; If the user told us to do DNS for them, do it. |
| 239 | (if url-gateway-broken-resolution | 245 | (if url-gateway-broken-resolution |
| 240 | (setq host (url-gateway-nslookup-host host))) | 246 | (with-suppressed-warnings ((obsolete url-gateway-nslookup-host)) |
| 247 | (setq host (url-gateway-nslookup-host host)))) | ||
| 241 | 248 | ||
| 242 | ;; This is a clean way to ensure the new process inherits the | 249 | ;; This is a clean way to ensure the new process inherits the |
| 243 | ;; right coding systems in both Emacs and XEmacs. | 250 | ;; right coding systems in both Emacs and XEmacs. |