From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time? Date: Fri, 12 Jul 2013 12:27:36 -0400 Organization: A noiseless patient Spider Message-ID: References: <6410b46b-73c3-4bbe-803d-cb9599cccaf8@googlegroups.com> <87txjzvolz.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1373646621 22292 80.91.229.3 (12 Jul 2013 16:30:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 16:30:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 18:30:23 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 1UxgEg-00040B-MA for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 18:30:22 +0200 Original-Received: from localhost ([::1]:39238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxgEg-0005fw-9n for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 12:30:22 -0400 Original-Path: usenet.stanford.edu!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="29875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/DcJZXevOsv4EKxIn5Ay/t" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:I5HBLkvGes37CdnOjNme3eqgeco= Original-Xref: usenet.stanford.edu gnu.emacs.help:199820 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:92087 Archived-At: In article <87txjzvolz.fsf@VLAN-3434.student.uu.se>, Emanuel Berg wrote: > > Chris Seberino writes: > > > Suppose you start Emacs with lots of files such as "emacs *.txt > > *.c". > > and > > > I've noticed that Emacs will display the LAST email in sorted > > order. How make it display the FIRST one in sorted order? > > Email? How do you mean, how is that related to the number of files > you open Emacs with? I think he meant "LAST file". When you give Emacs multiple filenames on the command line, it acts as if you'd opened them with find-file in the order given. So when it's done, you end up in the last file. The shell expands the wildcards. AFAIK, there's no way to customize the order it expands them. You could do something like: emacs $(ls *.txt *.c | tac) If your OS doesn't have "tac", try "rev". -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***