Commit 28f5da6d authored by Ted Zlatanov's avatar Ted Zlatanov
Browse files

(open-tls-stream): Remove unneeded buffer contents when opening the connection.

parent 781b4af6
2013-06-05 Teodor Zlatanov <>
* net/tls.el (open-tls-stream): Remove unneeded buffer contents up
to point when opening the connection.
Suggested by João Távora <> in
2013-06-05 Stefan Monnier <>
* subr.el (load-history-regexp, load-history-filename-element)
......@@ -286,7 +286,10 @@ NOT trusted. Accept anyway? " host)))))
(format "Host name in certificate doesn't \
match `%s'. Connect anyway? " host))))))
(setq done nil)
(delete-process process)))
(delete-process process))
;; Delete all the informational messages that could confuse
;; future uses of `buffer'.
(delete-region (point-min) (point)))
(message "Opening TLS connection to `%s'...%s"
host (if done "done" "failed"))
(when use-temp-buffer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment