From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.help Subject: correct way to anticipate decryption failures Date: Wed, 16 Sep 2015 00:48:14 +0200 Message-ID: <87y4g78fkh.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1442357337 31899 80.91.229.3 (15 Sep 2015 22:48:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 22:48:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 16 00:48:46 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zbz1n-0004il-Ma for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Sep 2015 00:48:43 +0200 Original-Received: from localhost ([::1]:46260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbz1m-0001Lc-Rz for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 18:48:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbz1b-0001LW-VW for help-gnu-emacs@gnu.org; Tue, 15 Sep 2015 18:48:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbz1X-0007RE-Uj for help-gnu-emacs@gnu.org; Tue, 15 Sep 2015 18:48:31 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbz1X-0007R6-Nh for help-gnu-emacs@gnu.org; Tue, 15 Sep 2015 18:48:27 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zbz1V-0004JG-Ge for help-gnu-emacs@gnu.org; Wed, 16 Sep 2015 00:48:25 +0200 Original-Received: from tsn109-201-154-180.dyn.nltelcom.net ([109.201.154.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Sep 2015 00:48:25 +0200 Original-Received: from rasmus by tsn109-201-154-180.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Sep 2015 00:48:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: tsn109-201-154-180.dyn.nltelcom.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAArCAMAAAAJzfvtAAAAPFBMVEX39/fS1NifoZ9gYFoZ Ghna5O1/p4JUOSup3LWTqeShXDLCajpmcNh3jNxOT59+oeDE8Lpoo2J8xnGIyXCo3RooAAACK0lE QVRIx4VWC7LDIAgU8J+YRL3/XR/YJs9Y09JMp+OwsIsBqtTdAIm0GBGA+mXGOvEkJEvEPx1+9+fQ hGBONCBj/LM7srsZzoLT7jk8zThzFnzw788RL7DhSBN/rfuaoIugLnp2gnDuxp4WhwEAjBjX7oMV 6Zu/cYtbQ0ophNBAVsNQH1Q9AuOyBbWuKQhm3w3ruAtw6hYBl7iqwACVkiQMu7nJGBMqYaTSG8AP Z+l9zFgEiFGvak0MCAIQKaFzYvBdMsbYJLwAfN3JKNj+U7ixyhSZkQCC2tmUaagNL0Zjkd8SEqNU CjuzEiErXTUd3ntwcVuFJDN/iW5fOyd8ERhfR5awbmviKjEpEZEaEU4ZmlaiT0YolTHwuoMQVNqZ WQsw0QxukRO42ii8tIsoNqO0HRgtsa+CMQDi3igGCaNtr9l4YoAZBwMjwvam0lf1sLnwqz1vyfOu uzuHUmu1meYT5eTeibb1KJkxedbccFKhq9kgH744yr4c06GC5yQ542H1uerIOY5phnsqMEeVT87Z zijBf9M1EYClHIf3OdeSyzcJrR/gYL0SvzEqBWYSoOs4cfe18hMj1WmGvi1Ji3/hyJUYUPzxNUEb e75kzyNLPV3z0Peoyb9LEacTeZxLTOrtBnZ6yTQOIuWGyTEKsJ/TWD8uNLDTeU+TKI3+sDl6hIP5 IsMvOw7uU1n5Lzvuf4uaa4v+XLwGzz1Nbb0T/lztjNnaPwHn7LzSf8IxFWG39VlGAAAAAElFTkSu QmCC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:NqtMFBaaUT1oZyC4AoMRr5wO0N8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107218 Archived-At: Hi, What is the correct way to handle decryption errors when using auth-source? I have something like, (auth-source-search :host "worldwide.net" :user "rasmus" :max 1 :require '(:user :secret)) This throws a decryption error when I haven't plugged in my (physical) security token. Depending on the arguments, sometimes this is called at init time causing my daemon window to vanish, which is sort of annoying. Should I ignore-errors or is there a better way to test if I'm currently able to decrypt .authinfo.gpg? Could I re-throw the warning without it being an error? Thanks, Rasmus -- ツ