From: Wolfgang Jenkner Date: Fri, 6 Feb 2015 02:43:58 +0000 (+1100) Subject: Respect the :end-of-capability setting X-Git-Tag: emacs-25.0.90~2008^2~88 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bc4996520a3919bfc52e6fd95f6a0cb7c4c085aa;p=emacs.git Respect the :end-of-capability setting * lisp/net/network-stream.el (network-stream-open-tls): Respect the :end-of-capability setting. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dc85bea0049..60746cef3f3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-02-06 Wolfgang Jenkner + + * net/network-stream.el (network-stream-open-tls): Respect the + :end-of-capability setting. + 2015-02-05 Artur Malabarba * emacs-lisp/package.el (package--sort-by-dependence): New diff --git a/lisp/net/network-stream.el b/lisp/net/network-stream.el index e7b3150b792..0104fa7dd12 100644 --- a/lisp/net/network-stream.el +++ b/lisp/net/network-stream.el @@ -374,10 +374,12 @@ asynchronously, if possible." (when (re-search-forward eoc nil t) (goto-char (match-beginning 0)) (delete-region (point-min) (line-beginning-position)))) - (let* ((capability-command (plist-get parameters :capability-command))) + (let ((capability-command (plist-get parameters :capability-command)) + (eo-capa (or (plist-get parameters :end-of-capability) + eoc))) (list stream (network-stream-get-response stream start eoc) - (network-stream-command stream capability-command eoc) + (network-stream-command stream capability-command eo-capa) 'tls)))))) (defun network-stream-open-shell (name buffer host service parameters)