diff options
| author | Lars Magne Ingebrigtsen | 2012-03-22 19:42:12 +0100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2012-03-22 19:42:12 +0100 |
| commit | c676576a42ae6f2593948ae5786a01cad71e9bf5 (patch) | |
| tree | 3c37c45e5f2dd511ef7267dbf63c3ddfd5847710 | |
| parent | 126f3d39bba8e2f1e30dfb63fff45de541a9d46f (diff) | |
| download | emacs-c676576a42ae6f2593948ae5786a01cad71e9bf5.tar.gz emacs-c676576a42ae6f2593948ae5786a01cad71e9bf5.zip | |
Fix starttls-related error message under Windows
* net/network-stream.el (network-stream-open-starttls): Make error
message under Windows be less misleading.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/network-stream.el | 15 |
2 files changed, 15 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8ac8b4d94b6..488d9d4229f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * net/network-stream.el (network-stream-open-starttls): Make error | ||
| 4 | message under Windows be less misleading. | ||
| 5 | |||
| 1 | 2012-03-22 Liang Wang <netcasper@gmail.com> (tiny change) | 6 | 2012-03-22 Liang Wang <netcasper@gmail.com> (tiny change) |
| 2 | 7 | ||
| 3 | * progmodes/etags.el (etags-list-tags): Only use tags which goto-func | 8 | * progmodes/etags.el (etags-list-tags): Only use tags which goto-func |
diff --git a/lisp/net/network-stream.el b/lisp/net/network-stream.el index 8730e875ea0..7a3d47ef1d1 100644 --- a/lisp/net/network-stream.el +++ b/lisp/net/network-stream.el | |||
| @@ -302,11 +302,16 @@ functionality. | |||
| 302 | (if (or (null starttls-command) | 302 | (if (or (null starttls-command) |
| 303 | starttls-available) | 303 | starttls-available) |
| 304 | "Server does not support TLS" | 304 | "Server does not support TLS" |
| 305 | (concat "Emacs does not support TLS, and no external `" | 305 | ;; See `starttls-available-p'. If this predicate |
| 306 | (if starttls-use-gnutls | 306 | ;; changes to allow running under Windows, the error |
| 307 | starttls-gnutls-program | 307 | ;; message below should be amended. |
| 308 | starttls-program) | 308 | (if (memq system-type '(windows-nt ms-dos)) |
| 309 | "' program was found"))) | 309 | (concat "Emacs does not support TLS") |
| 310 | (concat "Emacs does not support TLS, and no external `" | ||
| 311 | (if starttls-use-gnutls | ||
| 312 | starttls-gnutls-program | ||
| 313 | starttls-program) | ||
| 314 | "' program was found")))) | ||
| 310 | (delete-process stream) | 315 | (delete-process stream) |
| 311 | (setq stream nil)) | 316 | (setq stream nil)) |
| 312 | ;; Return value: | 317 | ;; Return value: |