unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: hoppe <travis.hoppe@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21505@debbugs.gnu.org, tsdh@gnu.org
Subject: bug#21505: 24.4; Buffer order
Date: Thu, 17 Sep 2015 10:59:41 -0400	[thread overview]
Message-ID: <CAL2sJe0VOtEijkrehEjXFT52AJ1_BVz9kxdHOqt=Bm71j3nyvw@mail.gmail.com> (raw)
In-Reply-To: <83twqtqene.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2190 bytes --]

In response to the first question, I'd like this to be the "easy" request,
that this behavior is only for when emacs opens and not continuously during
the session. I agree, it does not need to be maintained during the session.

Re: Tassilo Horn: I purposely showed my example with a wildcard since emacs
could be given any expansion from the shell. To me it, and for my usual use
case, it doesn't matter. I have a bunch of files I'd like to edit and I
often miss those that are past the messages and scratch buffer. Opening the
files in the order given from the command line seems very natural to me.

So to be clear, given the command run on the shell:

> emacs a c b

The buffer order should be [a,c,b,*messages*,*scratch*]. Currently the
default behavior looks something like [b,c,*messages*,*scratch*, a].

On Thu, Sep 17, 2015 at 10:55 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Stefan Monnier <monnier@iro.umontreal.ca>
> > Cc: Eli Zaretskii <eliz@gnu.org>,  21505@debbugs.gnu.org,
> travis.hoppe@gmail.com
> > Date: Thu, 17 Sep 2015 08:50:33 -0400
> >
> > > No, it should always be as given to emacs/emacsclient, i.e., when I
> > > invoke
> > >
> > >   $ emacsclient x a b
> > >
> > > I want to have the buffer x selected and using `next-buffer' I'd switch
> > > to a and then b, and then to the other buffers which have existed
> > > before.  Right now, x will be selected, but a and b are far away.
> >
> > That's right.  And same for "emacs x a b".
> >
> > The precise behavior is a bit more complex since those commands, rather
> > than just showing the first file may/will also show the buffer-list,
> > but if exactly one of the files is shown it should be the first in the
> > list and next-buffer should go in the order in which the file names
> > were given (until reaching the end of this list at which point it'll
> > hit things like *Messages* and friends and that's fine).
>
> The questions I asked the OP still stand.  The required feature is not
> defined in sufficient detail.  If only the initial order is required,
> it's probably relatively easy, but then that order is very fragile and
> could easily break as soon as the user issues the first command.
>

[-- Attachment #2: Type: text/html, Size: 3423 bytes --]

  reply	other threads:[~2015-09-17 14:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-17  2:57 bug#21505: 24.4; Buffer order hoppe
2015-09-17  5:17 ` Eli Zaretskii
2015-09-17  6:49   ` Tassilo Horn
2015-09-17  6:56     ` Eli Zaretskii
2015-09-17  7:53       ` Tassilo Horn
2015-09-17 12:50         ` Stefan Monnier
2015-09-17 14:55           ` Eli Zaretskii
2015-09-17 14:59             ` hoppe [this message]
2015-09-17 15:19               ` Eli Zaretskii
2015-09-17 15:23                 ` hoppe
2015-09-17 15:44                   ` Eli Zaretskii
2015-09-17 15:48                     ` hoppe
2015-09-17 16:20                       ` Eli Zaretskii
2022-02-20 12:57           ` Lars Ingebrigtsen
2022-02-20 13:20             ` Eli Zaretskii
2022-02-21 13:38               ` Lars Ingebrigtsen
2022-02-21 13:55                 ` Eli Zaretskii
2022-02-21 14:43                   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAL2sJe0VOtEijkrehEjXFT52AJ1_BVz9kxdHOqt=Bm71j3nyvw@mail.gmail.com' \
    --to=travis.hoppe@gmail.com \
    --cc=21505@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=tsdh@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).