From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Gmail with emacs Date: Thu, 22 Dec 2011 11:06:55 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1324577206 11779 80.91.229.12 (22 Dec 2011 18:06:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2011 18:06:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 22 19:06:41 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rdn2O-0003RL-BY for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Dec 2011 19:06:40 +0100 Original-Received: from localhost ([::1]:49653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rdn2N-0001LK-Es for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Dec 2011 13:06:39 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rdn2H-0001L5-Hq for help-gnu-emacs@gnu.org; Thu, 22 Dec 2011 13:06:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rdn2F-00075q-Kl for help-gnu-emacs@gnu.org; Thu, 22 Dec 2011 13:06:33 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:34144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rdn2F-00075b-EY for help-gnu-emacs@gnu.org; Thu, 22 Dec 2011 13:06:31 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rdn2B-0003LG-92 for help-gnu-emacs@gnu.org; Thu, 22 Dec 2011 19:06:27 +0100 Original-Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Dec 2011 19:06:27 +0100 Original-Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 22 Dec 2011 19:06:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.24) Gecko/20111103 Thunderbird/3.1.16 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:83245 Archived-At: On 12/21/11 10:21 AM, Steve Prud'Homme wrote: > Ok i try to configure my GNU Emacs to read gmail email. > I saw on a web site that i have to put these line : > > (add-to-list 'gnus-secondary-select-methods '(nnimap "gmail" > (nnimap-address "imap.gmail.com") > (nnimap-server-port 993) > (nnimap-stream ssl)) > > > So I've put it in .emacs > Now I have this error > > Warning (initialization): An error occurred while loading > `/home/sprudhom/.emacs': > > Symbol's value as variable is void: gnus-secondary-select-methods > > To ensure normal operation, you should investigate and remove the > cause of the error in your initialization file. Start Emacs with > the `--debug-init' option to view a complete error backtrace. > > I'm a beginner in emacs mail... can anybody help me with a low level > (rookie) langage. gnus-secondary-select-methods is not yet defined, when you are trying to add the nnimap entry to its default value. So put (require 'gnus) before the (add-to-list 'gnus-secondary-select-methods ...) form, or wrap the add-to-list form in (eval-after-load "gnus" (quote ...)) -- Kevin Rodgers Denver, Colorado, USA