From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jgombos Newsgroups: gmane.emacs.help Subject: commandline-invoked functions are broken in pwsafe.el Date: Thu, 17 Sep 2009 11:33:21 -0700 (PDT) Message-ID: <25492218.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253269474 26214 80.91.229.12 (18 Sep 2009 10:24:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 10:24:34 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 12:24:27 2009 Return-path: Envelope-to: geh-help-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 1MoadW-0004hR-8f for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 12:24:18 +0200 Original-Received: from localhost ([127.0.0.1]:44823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoadV-0000Ms-Ce for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 06:24:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoLnN-0001ku-Nb for help-gnu-emacs@gnu.org; Thu, 17 Sep 2009 14:33:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoLnI-0001jd-8K for Help-gnu-emacs@gnu.org; Thu, 17 Sep 2009 14:33:28 -0400 Original-Received: from [199.232.76.173] (port=40177 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoLnI-0001ja-34 for Help-gnu-emacs@gnu.org; Thu, 17 Sep 2009 14:33:24 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:60880) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoLnH-00067L-5F for Help-gnu-emacs@gnu.org; Thu, 17 Sep 2009 14:33:23 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MoLnF-0004WT-A3 for Help-gnu-emacs@gnu.org; Thu, 17 Sep 2009 11:33:21 -0700 X-Nabble-From: nabble.forum.jog@spamgourmet.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 18 Sep 2009 06:23:37 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68257 Archived-At: I want to launch emacs and have it immediately launch into pwsafe-mode. My .emacs file properly loads the pwsafe.el file, so that when I type M-x pwsafe, everything works. But when I run this on the CLI: emacs -f pwsafe the output message is: command-line-1: Wrong number of arguments: (lambda (force) "Major mode to interact with the command line password safe pwsafe. Queries the passwords from the password safe and displays them in the buffer *pwsafe-list*. The following keys are defined: \\{pwsafe-list-mode-map}" (interactive "P") (if (and (not force) (not (string= (buffer-name) "*pwsafe-list*")) (get-buffer "*pwsafe-list*")) (pop-to-buffer "*pwsafe-list*") (let ((database-file-name (pwsafe-current-database-name))) (if (file-exists-p database-file-name) (if pwsafe-use-long-listing (pwsafe-run (quote list) "-l" "-f" database-file-name) (pwsafe-run (quote list) "-f" database-file-name)) (when (yes-or-no-p (format "pwsafe database %s does not exist - create it? " database-file-name)) (pwsafe-createdb) (with-current-buffer (get-buffer "*pwsafe*") (delete-region (point-min) (point-max))) (pwsafe-list-passwords)))))), 0 mouse-minibuffer-check: Minibuffer window is not active [2 times] Any ideas how to fix or workaround? -- View this message in context: http://www.nabble.com/commandline-invoked-functions-are-broken-in-pwsafe.el-tp25492218p25492218.html Sent from the Emacs - Help mailing list archive at Nabble.com.