emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 842518a 1/4: Remove some compat code in imap.el


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 842518a 1/4: Remove some compat code in imap.el
Date: Sat, 19 Oct 2019 05:01:48 -0400 (EDT)

branch: master
commit 842518a0dbc1f84705784f9a34ab9dd2cf29015e
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Remove some compat code in imap.el
    
    * lisp/net/imap.el (imap-sasl-auth-p): Remove old-Emacs compat code.
---
 lisp/net/imap.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/net/imap.el b/lisp/net/imap.el
index 71d1918..4601e84 100644
--- a/lisp/net/imap.el
+++ b/lisp/net/imap.el
@@ -904,10 +904,8 @@ t if it successfully authenticates, nil otherwise."
 (declare-function sasl-step-set-data  "sasl" (step data))
 
 (defun imap-sasl-auth-p (buffer)
-  (and (condition-case ()
-          (require 'sasl)
-        (error nil))
-       (sasl-find-mechanism (imap-sasl-make-mechanisms buffer))))
+  (require 'sasl)
+  (sasl-find-mechanism (imap-sasl-make-mechanisms buffer)))
 
 (defun imap-sasl-auth (buffer)
   "Login to server using the SASL method."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]