From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs,gmane.emacs.jabber.general Subject: bug#3767: 23.0.94; Functions in password-cache should be autoloaded Date: Thu, 23 Jul 2009 14:08:17 -0400 Message-ID: References: <87fxd796gu.fsf@stupidchicken.com> Reply-To: Stefan Monnier , 3767@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248373077 29813 80.91.229.12 (23 Jul 2009 18:17:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jul 2009 18:17:57 +0000 (UTC) Cc: Magnus Henoch , emacs-jabber-general@lists.sourceforge.net, 3767@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 23 20:17:50 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MU2rS-0005i6-Pp for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jul 2009 20:17:47 +0200 Original-Received: from localhost ([127.0.0.1]:46972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU2rS-0004kI-1f for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jul 2009 14:17:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MU2rL-0004i7-QE for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 14:17:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU2rF-0004fp-DL for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 14:17:38 -0400 Original-Received: from [199.232.76.173] (port=36256 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU2rF-0004fl-73 for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 14:17:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34973) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MU2rE-00049r-Ax for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 14:17:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NIHTXO030206; Thu, 23 Jul 2009 11:17:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6NIF8nk029591; Thu, 23 Jul 2009 11:15:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 23 Jul 2009 18:15:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3767 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3767-submit@emacsbugs.donarmstrong.com id=B3767.124837250828449 (code B ref 3767); Thu, 23 Jul 2009 18:15:08 +0000 Original-Received: (at 3767) by emacsbugs.donarmstrong.com; 23 Jul 2009 18:08:28 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NI8Nob028428 for <3767@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 11:08:25 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEAGhDaEpFpZx3/2dsb2JhbACBUcBpkF+CUYE8BYcL X-IronPort-AV: E=Sophos;i="4.43,256,1246852800"; d="scan'208";a="42066727" Original-Received: from 69-165-156-119.dsl.teksavvy.com (HELO pastel.home) ([69.165.156.119]) by ironport2-out.teksavvy.com with ESMTP; 23 Jul 2009 14:08:17 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A77E884A3; Thu, 23 Jul 2009 14:08:17 -0400 (EDT) In-Reply-To: <87fxd796gu.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 07 Jul 2009 23:52:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 23 Jul 2009 14:17:38 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29592 gmane.emacs.jabber.general:885 Archived-At: >> I was wondering why jabber.el didn't cache my password, even though I >> set password-cache and password-cache-expiry correctly, and found the >> reason: jabber.el checks whether the running Emacs is new enough to have >> password-cache.el by (fboundp 'password-read), but this function is not >> autoloaded. The problem is masked if you use Gnus. >> >> Thus I propose that at least `password-read' be autoloaded, possibly >> others as well. > I think jabber.el should use the NOERROR argument to `require': > (if (require 'password-cache nil t) > use-password-cache > do-alternative) To provide yet another opinion, I'd personally favor (ignore-errors (require 'password-cache)) or (require 'password-cache nil t) followed later on by (if (fboundp 'password-read) ... ...) -- Stefan