From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wenshan Ren Newsgroups: gmane.emacs.help Subject: [Emacs LISP] Login freenode using ERC with prompt for password only Date: Sat, 1 Dec 2012 01:21:19 -0800 (PST) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1354353915 22504 80.91.229.3 (1 Dec 2012 09:25:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2012 09:25:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 01 10:25:27 2012 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 1TejK9-0000Fo-01 for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Dec 2012 10:25:25 +0100 Original-Received: from localhost ([::1]:50887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TejJx-0006AM-Eo for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Dec 2012 04:25:13 -0500 Original-Received: by 10.66.85.102 with SMTP id g6mr755717paz.5.1354353680271; Sat, 01 Dec 2012 01:21:20 -0800 (PST) Original-Received: by 10.50.220.231 with SMTP id pz7mr333076igc.8.1354353680000; Sat, 01 Dec 2012 01:21:20 -0800 (PST) Original-Path: usenet.stanford.edu!kr7no10399465pbb.0!news-out.google.com!s9ni21065pbb.0!nntp.google.com!kr7no10399461pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=122.107.221.54; posting-account=gpzUGgoAAABcXbnOmXbweAYtHvxE5KBK Original-NNTP-Posting-Host: 122.107.221.54 User-Agent: G2/1.0 Injection-Date: Sat, 01 Dec 2012 09:21:20 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:195671 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:87992 Archived-At: Hello everyone, I am new to Emacs LISP and trying to write a emacs lisp, which hopefully will enable me to login irc without choosing server/port/nick. After reading "C-h f erc", I end up with (defun my-erc() (erc :server "irc.freenode.net" :port "6667" :nick "mynickname")) If I put `:pass "mypassword"` at the end of the list, it works fine. However, I don't want to put my password in .emacs, so I hope Emacs will ask me for password when needed. With the my-erc function I wrote, erc will login password and I have to identify myself afterwards. Could you give me some hints on solving this? Wenshan