unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 13133@debbugs.gnu.org
Subject: bug#13133: 24.2.90; scroll-conservatively is too coarse a setting
Date: Mon, 10 Dec 2012 10:52:24 +0200	[thread overview]
Message-ID: <83r4myb86v.fsf@gnu.org> (raw)
In-Reply-To: <50C59D4A.5020409@yandex.ru>

> Date: Mon, 10 Dec 2012 12:28:58 +0400
> From: Dmitry Gutov <dgutov@yandex.ru>
> CC: 13133@debbugs.gnu.org
> 
> Like I mentioned, I don't want C-M-e/C-M-a to recenter. Why do you think 
> it's TRT?

Because you generally want to see the entire definition of the API,
not just the opening brace or paren.

> As far as I'm concerned, recentering might be fine when we go to the end 
> of a small function (it will fit on the screen anyway), but a larger 
> function, which might have fit on the full screen, will be cut in half.

IMO, C-M-e/C-M-a is not for observing the whole function.  You may be
looking for a separate feature, or maybe a modification of an existing
feature.

> >> Half-window happens because when the compilation buffer is filled, the
> >> point is at the end of it (when compilation-scroll-output is t, at least).
> >
> > Does this happen with or without setting scroll-conservatively to a
> > value larger than 100?
> 
> Without.

Can you cook up a test case?  I'd like to see why this happens.  (If
showing this requires injection of specific amount of text into the
compilation buffer, you could use 'cat' or some similar program to do
so, instead of actually running a compiler.)

> > Just for the record: when I asked whether people who like Emacs to
> > _never_ recenter would mind having that behavior in contexts that have
> > nothing to do with scrolling, the response was a huge YES.  So the
> > current behavior seems to be "by popular demand".
> 
> If I had to guess, it might be that people just wanted out of the 
> default always-recentering behavior, and it was a quick way to end the 
> discussion and get the implementation.
> 
> Anyway, I don't remember seeing that poll. And if you were asking on 
> emacs-devel, that doesn't exactly represent the majority of users.

Emacs 24.x with this feature was released 6 months ago, and I have yet
to see a single complaint about it -- until now.  What user poll can
possibly match that?

> > Another possibility would be to add more customization values to
> > compilation-scroll-output, implementing the behavior of your
> > compile-scroll-eob.
> 
> Yes, sure. Just set buffer-local value of scroll-conservatively, maybe?

Could be.  But I think it is best first to define the required
behavior first.  Then we can see if setting scroll-conservatively
would fit the bill.

> But that won't help with C-M-a/C-M-e and, I don't know, any other 
> buffers with deal with process output?

"M-x shell" comes to mind.

> > I won't argue what the default behavior should be, because it tends to
> > become bike-shedding very fast.  FWIW, I use the default behavior,
> > without customizing any scroll-related variables, and like that
> > behavior, including in compilation buffers.
> 
> Do you like the behavior of compilation buffer often having wasted 
> space, or do you just not mind it (with monitors being cheap and all)? I 
> don't see what anyone could really like about it.

Very simple: I don't watch the compilation messages as they come in.
It's a waste of time; I continue editing or doing something else while
the compiler churns away.  To me, watching the messages is a relic
from old DOS days when I couldn't do anything while waiting for the
compiler to finish.

I only look at the compiler messages when compilation finishes, and
then I either scroll through the buffer or use "C-x `".  In both
cases, what redisplay does when a new message comes in is of no
interest to me.





  reply	other threads:[~2012-12-10  8:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-10  3:29 bug#13133: 24.2.90; scroll-conservatively is too coarse a setting Dmitry Gutov
2012-12-10  6:30 ` Eli Zaretskii
2012-12-10  6:46   ` Dmitry Gutov
2012-12-10  7:08     ` Eli Zaretskii
2012-12-10  8:28       ` Dmitry Gutov
2012-12-10  8:52         ` Eli Zaretskii [this message]
2012-12-11  2:07           ` Dmitry Gutov
2012-12-11  7:09             ` Eli Zaretskii

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=83r4myb86v.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13133@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /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).