]> git.eshelyaron.com Git - emacs.git/commitdiff
Respect the :end-of-capability setting
authorWolfgang Jenkner <wjenkner@inode.at>
Fri, 6 Feb 2015 02:43:58 +0000 (13:43 +1100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 6 Feb 2015 02:43:58 +0000 (13:43 +1100)
* lisp/net/network-stream.el (network-stream-open-tls): Respect the
:end-of-capability setting.

lisp/ChangeLog
lisp/net/network-stream.el

index dc85bea0049f0de2085155a994e25d45245a48f7..60746cef3f32cf28aad8d82d445df70612244e74 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-06  Wolfgang Jenkner  <wjenkner@inode.at>
+
+       * net/network-stream.el (network-stream-open-tls): Respect the
+       :end-of-capability setting.
+
 2015-02-05  Artur Malabarba  <bruce.connor.am@gmail.com>
 
        * emacs-lisp/package.el (package--sort-by-dependence): New
index e7b3150b792a7f4ac3b0adce9aad36a69dc7665c..0104fa7dd120916fec7535f7de7016c10e5ec159 100644 (file)
@@ -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)