unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 6192@debbugs.gnu.org
Subject: bug#6192: 24.0.50; eldoc-mode: unexpected recentering
Date: Sat, 15 May 2010 17:40:02 +0200	[thread overview]
Message-ID: <87wrv5897x.fsf@escher.home> (raw)
In-Reply-To: <837hn5fz7c.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 May 2010 09:36:55 +0300")

On Sat, 15 May 2010 09:36:55 +0300 Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Stephen Berman <stephen.berman@gmx.net>
>> Cc: 6192@debbugs.gnu.org
>> Date: Fri, 14 May 2010 23:44:06 +0200
>> 
>> > Anyway, from what you say it sounds like the message displayed by
>> > eldoc-mode in the echo area, which causes redisplay, somehow makes
>> > Emacs think the window where you have the Lisp file needs to be
>> > recentered because point is in a line that is not visible enough.
>> 
>> Ah, your reference to the Eldoc message made me take another look, and I
>> think I've now found a pattern: the recentering appears to happen only
>> (and always) when the message is displayed, and then the minibuffer
>> expands to and remains at two lines, even though the message is a single
>> line.
>
> When that happens, do you see any message in *Messages* besides the
> one displayed in the echo area?

Nothing in *Messages* (not even the Eldoc message -- it is deliberately
suppressed by eldoc-message).

> In general, a single-line message should not resize the echo area.  If
> the echo area is resized, then recentering you describe is a normal
> reaction of the display engine.  So the question now is why the echo
> area is enlarged to 2 lines.

I don't know, but I stepped through eldoc.el with Edebug and when it got
to the point where the message is put into the echo area, this is what
it showed:

Result: #("let: (VARLIST BODY...)" 0 3 (face font-lock-function-name-face) 14 21 (face eldoc-highlight-function-argument))

This string made the echo area expand to two lines, but in normal
(non-edebug) execution it of course shows up just as "let: (VARLIST
BODY...)" (with fontification).  So if the propertized string is the
source of the expanded echo area, the question becomes why it does not
shrink again.  (And there's still the question of why this only happens
when eldoc-mode is enabled in my init file...)

Steve Berman





  reply	other threads:[~2010-05-15 15:40 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-14 17:11 bug#6192: 24.0.50; eldoc-mode: unexpected recentering Stephen Berman
2010-05-14 17:49 ` Eli Zaretskii
2010-05-14 18:07   ` Stephen Berman
2010-05-14 21:05 ` Eli Zaretskii
2010-05-14 21:44   ` Stephen Berman
2010-05-15  6:36     ` Eli Zaretskii
2010-05-15 15:40       ` Stephen Berman [this message]
2010-05-15 16:44         ` Eli Zaretskii
2010-05-15 17:25           ` Stephen Berman
2010-05-15 17:33             ` Eli Zaretskii
2010-05-15 21:54               ` Stephen Berman
2010-05-15 22:52                 ` martin rudalics
2010-05-16  3:07                   ` Eli Zaretskii
2010-05-16  8:18                     ` martin rudalics
2010-05-16 17:14                       ` Eli Zaretskii
2010-05-15 16:53         ` martin rudalics
2010-05-15 17:26           ` Stephen Berman
2010-05-15 19:02             ` martin rudalics
2010-05-15 20:22               ` Eli Zaretskii
2010-05-15 20:47                 ` martin rudalics
2010-05-15 21:04                   ` Juanma Barranquero
2010-05-15 22:51                     ` martin rudalics
2010-05-15 21:14                   ` Eli Zaretskii
2010-05-15 22:52                     ` martin rudalics
2010-05-15 21:54               ` Stephen Berman
2010-05-15 22:53                 ` martin rudalics
2010-05-16  8:17                 ` martin rudalics
2010-05-16 10:45                   ` Stephen Berman
2010-05-16 12:35                     ` martin rudalics
2010-05-16 13:07                       ` Stephen Berman
2010-05-16 18:50                         ` martin rudalics
2010-05-16 19:48                           ` Stephen Berman
2010-05-17  9:06                             ` martin rudalics
2010-05-17  9:47                               ` Stephen Berman
2010-05-17 10:21                                 ` Juanma Barranquero
2010-05-17 10:31                                   ` Stephen Berman
2010-05-17 14:08                                 ` Stefan Monnier
2010-05-17 14:43                                   ` Lennart Borgman
2010-05-17 16:23                                     ` Juanma Barranquero
2010-05-17 16:33                                       ` Lennart Borgman
2010-05-17 16:39                                         ` Juanma Barranquero
2010-05-17 17:53                                     ` Eli Zaretskii
2010-05-17 18:02                                       ` Lennart Borgman
2010-05-17 18:30                                         ` Eli Zaretskii
2010-05-17 18:49                                           ` Lennart Borgman
2010-05-17 19:27                                             ` Lennart Borgman
2010-05-17 19:55                                             ` Stefan Monnier
2010-05-14 21:05 ` Eli Zaretskii
2022-05-05 12:20 ` bug#14520: 24.3; minibuffer resizes when message contains bold or italic text Lars Ingebrigtsen
2022-05-05 12:50   ` Stephen Berman
2022-05-05 13:07     ` Lars Ingebrigtsen
2022-05-05 16:25   ` bug#14520: bug#6192: " 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=87wrv5897x.fsf@escher.home \
    --to=stephen.berman@gmx.net \
    --cc=6192@debbugs.gnu.org \
    --cc=eliz@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).