From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Case Newsgroups: gmane.emacs.help Subject: Initializing buffer with find-file versus with scratch pad ?!? Date: Tue, 26 Jan 2010 12:11:33 -0500 Message-ID: <1264525893.3018.41.camel@CASE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1264527458 31961 80.91.229.12 (26 Jan 2010 17:37:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jan 2010 17:37:38 +0000 (UTC) To: Emacs Help List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 26 18:37:32 2010 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 1NZpLy-0002NJ-1S for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jan 2010 18:37:30 +0100 Original-Received: from localhost ([127.0.0.1]:33092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZpLt-0000Bd-4Z for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jan 2010 12:37:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZovE-0003gI-CB for help-gnu-emacs@gnu.org; Tue, 26 Jan 2010 12:09:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZov9-0003b6-Hj for help-gnu-emacs@gnu.org; Tue, 26 Jan 2010 12:09:47 -0500 Original-Received: from [199.232.76.173] (port=53070 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZov9-0003au-Bm for help-gnu-emacs@gnu.org; Tue, 26 Jan 2010 12:09:43 -0500 Original-Received: from smtp116.rog.mail.re2.yahoo.com ([68.142.225.232]:44176) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NZov9-0002Na-3H for help-gnu-emacs@gnu.org; Tue, 26 Jan 2010 12:09:43 -0500 Original-Received: (qmail 41067 invoked from network); 26 Jan 2010 17:09:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Subject:From:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=ydleWhJvGvhBuSaZ7TUMnkRCx9U3T0j9SVn370UplHwDXkIdST/DzRl8QNdzzVWWnrjjg9BuHTxBvvVTnTHQex6OhmntMiGOpVrt1vxpcQFqLirGkNe3tMkiz16bfluf0acWjYes3fC7P8U1NPB8/N5/speqMgcQA5UsKQagH18= ; Original-Received: from CPE0040f491178d-CM000e5cdfdba0.cpe.net.cable.rogers.com (billlinux@99.245.242.141 with plain) by smtp116.rog.mail.re2.yahoo.com with SMTP; 26 Jan 2010 09:09:39 -0800 PST X-Yahoo-SMTP: 7X7OtiSswBAcvcTfZzvpTnDh0dXvfrdNxDwinW3exNEf X-YMail-OSG: Sevc95EVM1kDeOy2tjTIyBsq4CSw.NBRb1zKQvvv.15rwQirVzUaBqoQFye5QEGVGw-- X-Yahoo-Newman-Property: ymail-3 X-Mailer: Evolution 2.28.2 (2.28.2-1.fc12) X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:71481 Archived-At: What I want to do in either my custom.el file or my emacs.el file is instruct emacs to open with the 'find-file foo' showing or if there is no find-file, open with 'scratch pad' showing. That should be simple enough. I have the following set in my custom.el '(inhibit-startup-screen t) '(initial-buffer-choice t) '(initial-scratch-message "") However, if I select a file through Nautilus and right click "open with emacs" emacs opens with the correct file in a buffer, but never showing as the viewable or top buffer. When a file has been selected before opening emacs I want that file/buffer to show immediately as the primary buffer. I have screwed around with this for a couple of hours now, checked the info file and the emacs wiki. I am probably use the wrong key word or variable name in my search. An suggestion as to how to set this up or a pointer to the correct function(s) or variable(s) would be helpful. -- Regards Bill Fedora 12, Gnome 2.28 Evo.2.28, Emacs 23.1.1