From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Oscar Najera Newsgroups: gmane.emacs.bugs Subject: bug#25399: [PATCH] Date: Sun, 08 Jan 2017 19:17:43 +0100 Message-ID: <87r34d4drs.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483901599 7567 195.159.176.226 (8 Jan 2017 18:53:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2017 18:53:19 +0000 (UTC) To: 25399@debbugs.gnu.org, tzz@lifelogs.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 08 19:53:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQIaa-0000kn-JO for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jan 2017 19:53:08 +0100 Original-Received: from localhost ([::1]:34497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQIae-0005lr-Vy for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jan 2017 13:53:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQIaZ-0005lk-IN for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:53:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQIaU-0002Jc-OT for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:53:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59949) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQIaU-0002JY-KX for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cQIaU-0006N3-Ef for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Oscar Najera Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jan 2017 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Ted Zlatanov Original-Received: via spool by submit@debbugs.gnu.org id=B.148390153424418 (code B ref -1); Sun, 08 Jan 2017 18:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jan 2017 18:52:14 +0000 Original-Received: from localhost ([127.0.0.1]:47115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQIZi-0006Ll-Gf for submit@debbugs.gnu.org; Sun, 08 Jan 2017 13:52:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQI2Y-0003kZ-3E for submit@debbugs.gnu.org; Sun, 08 Jan 2017 13:17:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQI2S-0000zZ-0g for submit@debbugs.gnu.org; Sun, 08 Jan 2017 13:17:53 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37490) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cQI2R-0000zU-Td for submit@debbugs.gnu.org; Sun, 08 Jan 2017 13:17:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQI2Q-0000LJ-M9 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:17:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQI2N-0000yf-Jy for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:17:50 -0500 Original-Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:35046) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQI2N-0000y0-DA for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:17:47 -0500 Original-Received: by mail-wm0-x229.google.com with SMTP id a197so78099542wmd.0 for ; Sun, 08 Jan 2017 10:17:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=LbyF2GpqEWeEYLOBIywGgwlwXgRUmVTZGC57g/lrB9k=; b=JCMvKNXmZ4nNwrkuogJhyt4MkfJFZ6TqZo0/LuyqpJqGZo+EKMir35q4aWnqIJ2/t8 HGIIjcmAL3R/p2rC9AUoEO7p3b0LKy5w5qZqOTimyfQLfwBrYDG9JCGznKI6uTS0shSU zFbH+3ylJpoxlAgyBMEwW5NOWa++AY34PQQmJF2dDInEmGK7LC3HF40lmCdLdNLgNZC6 DNQb33O+WdlLoKSXktNDx2ygvZUe45pUs44gJWAjTzk/6WS+YnJHZc52BfjqEtkyPTnj 3Rtwiyk0zR1TcjTysYAeujFQO75fXfWZMIZXalnT+iuSEGUJfubyK+ehKTgVrVV9uXMt 5G3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=LbyF2GpqEWeEYLOBIywGgwlwXgRUmVTZGC57g/lrB9k=; b=p//ctNPdbX2NeK6PjcCh+2TBqvkWIZfsrj6sAUS1ZosPv56t+XvhbFN4/8GxvhvYMa oFn0zPKBoZ0MiE6KEIYXB2CBxD4QFTFgHnDcdoGuni9eg9OICUc5CNIwHM49CeHg4rTv 834A9Zvpx1U2uW6Pf8VG+WOc0lVPuW8HT/jeosAMvdaKJ8Yj+e7kNiG3mP6g1zqPw3z8 p5DSaFH+U5hvx+WeyNBvFMVFhnlGxKhkOeez8XrrIKq/a415054k9TmB+auS/WVIUq0A orF47UFC+YJOiG3B8AOabHNNIRHowDQPVzLC0O3WTBQPlDBt5fTKWQ+KSufKvqdVtYPE Q3ew== X-Gm-Message-State: AIkVDXJzA2fwBnwumHCu8smpFwOqoXYeouMqdqfh6i24PPbkgEQ0d7sA2QL530FrFS3xGg== X-Received: by 10.28.7.1 with SMTP id 1mr754895wmh.73.1483899464864; Sun, 08 Jan 2017 10:17:44 -0800 (PST) Original-Received: from titan-arch-m (224.23.140.77.rev.sfr.net. [77.140.23.224]) by smtp.googlemail.com with ESMTPSA id c133sm14718104wme.12.2017.01.08.10.17.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Jan 2017 10:17:43 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sun, 08 Jan 2017 13:52:12 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127913 Archived-At: Hello, I tried to use the auth-source-user-and-password function with the user argument, but it always returns a list of nil. Looking at the code I see that the argument is not used in the auth-source-search but that a fixed string "yourusername" is used. With this patch I obtain the correct behavior. Thank you for your attention, Best regards, Oscar --- lisp/auth-source.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/auth-source.el b/lisp/auth-source.el index c26935fcc9..7402ab21d7 100644 --- a/lisp/auth-source.el +++ b/lisp/auth-source.el @@ -2129,7 +2129,7 @@ MODE can be \"login\" or \"password\"." (if user (auth-source-search :host host - :user "yourusername" + :user user :max 1 :require '(:user :secret) :create nil)