From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "tcp" <txt8888@yahoo.com> Newsgroups: gmane.emacs.help Subject: Re: initial frame Date: Sat, 31 Aug 2002 16:38:31 GMT Organization: home Sender: help-gnu-emacs-admin@gnu.org Message-ID: <bi6c9.74475$_91.22770@rwcrnsc51.ops.asp.att.net> References: <w3Xb9.63969$_91.4708@rwcrnsc51.ops.asp.att.net> <wX3c9.45544$6m61.33680@news04.bloor.is.net.cable.rogers.com> Reply-To: "tcp" <txt8888@yahoo.com> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030812339 27462 127.0.0.1 (31 Aug 2002 16:45:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 31 Aug 2002 16:45:39 +0000 (UTC) Return-path: <help-gnu-emacs-admin@gnu.org> Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17lBNS-00078p-00 for <gnu-help-gnu-emacs@m.gmane.org>; Sat, 31 Aug 2002 18:45:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17lBOv-0004Ut-00; Sat, 31 Aug 2002 12:47:09 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!ihnp4.ucsd.edu!usc.edu!attla2!ip.att.net!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-NNTP-Posting-Host: 12.237.94.130 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: rwcrnsc51.ops.asp.att.net 1030811911 12.237.94.130 (Sat, 31 Aug 2002 16:38:31 GMT) Original-NNTP-Posting-Date: Sat, 31 Aug 2002 16:38:31 GMT Original-Xref: nntp.stanford.edu gnu.emacs.help:104348 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe> List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org> List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs/> Xref: main.gmane.org gmane.emacs.help:918 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:918 He Le, This did not work. The frame with the "*scratch*" buffer still up. And it did not more it to the end-of-the-buffer. I actually want a command line option type to move the cursor to the end of the buffer. Not for every opened file. Thanks! --- tcp "Le Wang" <lewang(at@)yahoo.com> wrote in message news:wX3c9.45544$6m61.33680@news04.bloor.is.net.cable.rogers.com... > tcp wrote: > > > Hi, > > > > I always open file in a separate frame. The first file I opened always > > popup two frames. > > One with my file in it and the other is just the *scratch* buffer frame. > > > > Is there a way to avoid the *scratch buffer frame from popping up? > > My next question is what is the option at the "gnuclient" to open a file > > and move > > the cursor to the end of the buffer? > > This is pretty useless behaviour, don't you think? There are packages out > there (session comes to mind) that will save your positions in files you > visit and restore the point on the next open. > > In any case, add this to your .emacs to solve both your problems: > > (setq gnuserv-frame t) > (add-hook 'gnuserv-visit-hook '(lambda () > (setq gnuserv-frame nil) > (end-of-buffer))) > > > HTH. > > -- > Le >