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: Switching to a buffer in .emacs does not work Date: Wed, 22 May 2013 08:13:59 -0600 Message-ID: References: <87bo84wyfs.fsf@Aspire.decebal.nl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369232049 22872 80.91.229.3 (22 May 2013 14:14:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 May 2013 14:14:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 22 16:14:08 2013 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 1Uf9np-0004fM-Ur for geh-help-gnu-emacs@m.gmane.org; Wed, 22 May 2013 16:14:06 +0200 Original-Received: from localhost ([::1]:36201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9np-0007nN-Gv for geh-help-gnu-emacs@m.gmane.org; Wed, 22 May 2013 10:14:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9nJ-0007MC-5V for help-gnu-emacs@gnu.org; Wed, 22 May 2013 10:13:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf9nC-0002TS-MO for help-gnu-emacs@gnu.org; Wed, 22 May 2013 10:13:33 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf9nC-0002Sx-F6 for help-gnu-emacs@gnu.org; Wed, 22 May 2013 10:13:26 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uf9nA-0004FR-3t for help-gnu-emacs@gnu.org; Wed, 22 May 2013 16:13:24 +0200 Original-Received: from 65-100-146-215.hlrn.qwest.net ([65.100.146.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 May 2013 16:13:24 +0200 Original-Received: from kevin.d.rodgers by 65-100-146-215.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 May 2013 16:13:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 65-100-146-215.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <87bo84wyfs.fsf@Aspire.decebal.nl> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:90981 Archived-At: On 5/21/13 2:04 AM, Cecil Westerhof wrote: > In my .emacs I have: > (gnus) > (switch-to-buffer "*Group*") > > But when starting emacs Gnus is started, but the switch to the *Group* > buffer does not happen. (That is why I initially thought Gnus was not > started.) What does it display? My guess is the splash screen. > But when I give after the switch-to-buffer: > M-x M-e Do you mean C-x C-e (which is bound to eval-last-sexp in Emacs-Lisp buffers like .emacs)? > I switch to the buffer. So the command is correct. Why does it not > work then? See the "Entering Emacs" node of the Emacs manual, and the command-line-1 function in startup.el You could try adding this to your .emacs: (setq inhibit-startup-screen t) Or start Emacs like this (via an alias or script, for convenience): emacs -f gnus --eval '(switch-to-buffer "*Group*")' -- Kevin Rodgers Denver, Colorado, USA