From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Trouble executing (previous-buffer) at startup in .emacs Date: Thu, 11 Jul 2013 18:35:50 +0300 Message-ID: <871u75xg6h.fsf@mithlond.arda> References: <7620fe26-df3b-4ea4-b8cd-dad29bab5610@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1373557009 5512 80.91.229.3 (11 Jul 2013 15:36:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jul 2013 15:36:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Chris Seberino Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 11 17:36:50 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 1UxIut-0007QV-Dz for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 17:36:23 +0200 Original-Received: from localhost ([::1]:47593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxIus-0002hw-Rf for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 11:36:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxIug-0002gz-3x for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 11:36:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxIuY-0004O0-RD for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 11:36:10 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:33092 helo=jenni2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxIuY-0004My-Fu for help-gnu-emacs@gnu.org; Thu, 11 Jul 2013 11:36:02 -0400 Original-Received: from mithlond.arda (84.251.134.110) by jenni2.inet.fi (8.5.140.03) id 51BB235B0201C96A; Thu, 11 Jul 2013 18:35:55 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.80) (envelope-from ) id 1UxIuQ-0001dr-Fd; Thu, 11 Jul 2013 18:35:54 +0300 In-Reply-To: <7620fe26-df3b-4ea4-b8cd-dad29bab5610@googlegroups.com> (Chris Seberino's message of "Thu, 11 Jul 2013 07:45:14 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 195.156.147.13 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:92054 Archived-At: --=-=-= Content-Type: text/plain Chris Seberino [2013-07-11 07:45:14 -07:00] wrote: > I created a .emacs with only these 2 commands... > > (shell) > (previous-buffer) > > I was hoping I'd see something else besides the GNU welcome screen > message. The (shell) ran but the 2nd command didn't seem to. Why? Emacs init files (~/.emacs or ~/.emacs.d/init.el) are executed quite early in the start-up process and you don't see the effect of previous-buffer function call. See info node "(elisp) Startup Summary" or page http://www.gnu.org/software/emacs/manual/html_node/elisp/Startup-Summary.html for more info. If you are trying to start shell buffer the simplest way is probably to start Emacs with this option: emacs -f shell --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCAAGBQJR3tDWAAoJEHGdadMkU5RQ2wAQALA64DD9CKmodB+EpA5TyRyX YFD/kxSLfEYFgTvdUAqwBgUOjC+pTiWmBjm5eGvSpIRrw1oXWZp8xZ63yeaDR9Ou 53oD1bN5dWgKn+5QX9e/kK6GTFZXYYykpGsbapV1kIqPofvMvHGPhUdsjs6U/2a9 DS5BXzu6Raoqo5j2vHoQ2Iw8M6868dEVgOX6P5WQ0xP1Ja9Kr/edY5WhQkpPtGBq howKGzViw+1z5jYoFJ06EephFDbOyW7nbdVBuUT4z6F9cP4hdEBPTZbEqEX5aXe5 9HAf0+asYfjLaBmQJsvxLN1rcq62VQDEDTckiuyLZK8i72WwsDURf23ulKazGHNW 1H5RS0fiKV8hcvGXnio0Kb+lUJOM7uNPwIqDO7W+B50fxXBSyj2vWigxMV8GAIBm S64PJle+skQQfaPAo/LH3OKi+bDXo7LfG43yZ1DKmj4rUdbMxrHP9ziBaRuffFdr sk6E7sHrZN4ixjl3PuIUgPMyGDZlTHT6xtExk4ASBVP+pbIqqF0OEsqzXcrNJPj8 At+g8qniH+/rGO+v89sTVVdHSzyx5QiPN+cUxU7HUt6cWzLRrlfl0grK02NTyHMc t3wue6Zc7kM1G70VbghGhvLipsy932ygWRY1H2jYNF3+yCPHr/EYPdyzwGjx/hJD R/bgRdp1aGWPKKaLV3iY =4eKj -----END PGP SIGNATURE----- --=-=-=--