unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
Cc: miles@lsi.nec.co.jp, emacs-devel@gnu.org, Miles Bader <miles@gnu.org>
Subject: Re: new compile command brokeness
Date: Wed, 17 Mar 2004 17:42:49 -0500	[thread overview]
Message-ID: <20040317224249.GB12561@fencepost> (raw)
In-Reply-To: <20040317214527.5f51c28d.occitan@esperanto.org>

On Wed, Mar 17, 2004 at 09:45:27PM +0100, Daniel Pfeiffer wrote:
> > If I go to the *compilation* buffer, and use `C-c C-c' on an error
> > line, then that succeeds, and subsequent uses of `next-error' also work
> > properly.
> 
> Aha, that's a consequence of scrolling along with the output as it pours
> in, unless you move the cursor.  The (point) in the *compilation* buffer
> serves as the indication where the 'current' error is.
>
> - remember (or check) that we haven't visited an error from this buffer,
> and only in that case jump to the beginning

Well I'm not sure about the other solutions, but if it's going to scroll the
output during execution, it certainly ought to do this.

> > BTW another point I noticed is that while the old compile command
> > caused the `current error' (the error last selected by next-error)
> > to be the top-line in the *compilation* window, the new one doesn't,
> > making it something like the 3rd line or so.
> 
> compilation-context-lines defaults to next-screen-context-lines, so as to
> be consistent with normal scrolling.  For some messages a few preceding
> lines are helpful for understanding.

Sure.  But it needs to be indicated visually somehow; simply skipping
next-screen-context-lines from the top of the window is natural for the
computer, but extremely awkward for humans.  I gather from your reply that
you sort of intended the cursor to serve this purpose, but in my case, I have
the cursor turned off in inactive windows, even the default hollowed-out
cursor is pretty hard to see.

> > This makes which error is current much harder to see; if it's desirable
> > to not use the top of the window (maybe to see more context?), then I
> > think the current error should be highlighted or something.
> 
> That could be done, but not urgently.  I suppose people will just get used to
> this, like they are to the scrolling overlap.

No.  It's actually a big problem for me --  it's a major pain reorienting my
eye after each next-error -- even when I'm already looking at the previous
error in the *compile* buffer (and so am looking at about the right place).

-Miles
-- 
`Suppose Korea goes to the World Cup final against Japan and wins,' Moon said.
`All the past could be forgiven.'   [NYT]

      parent reply	other threads:[~2004-03-17 22:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-16  7:38 new compile command brokeness Miles Bader
2004-03-17 20:45 ` Daniel Pfeiffer
2004-03-17 21:40   ` Stefan Monnier
2004-03-17 23:12     ` Kim F. Storm
2004-03-17 22:42   ` Miles Bader [this message]

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=20040317224249.GB12561@fencepost \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@lsi.nec.co.jp \
    /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).