From: Eli Zaretskii <eliz@gnu.org>
To: Dave Milter <davemilter@gmail.com>
Cc: gundaetiapo@gmail.com, eric@siege-engine.com,
cedet-semantic@lists.sourceforge.net, emacs-devel@gnu.org
Subject: Re: [cedet-semantic] scrolling while editing RFC
Date: Mon, 08 Jul 2013 21:09:42 +0300 [thread overview]
Message-ID: <83fvvox6s9.fsf@gnu.org> (raw)
In-Reply-To: <CAJ2oC5MEq1tg2NkH5nm1K5+jJgeHrnPhK7X2LRpCTR9-gav7yw@mail.gmail.com>
> Date: Mon, 8 Jul 2013 15:55:22 +0400
> From: Dave Milter <davemilter@gmail.com>
> Cc: semantic cedet <cedet-semantic@lists.sourceforge.net>,
> "Eric M. Ludlam" <eric@siege-engine.com>
>
> I met the same problem.
> It is fun to see what happens for example when I use 'C-x 2' to work with
> two buffers.
> While I editing one buffer, another buffer scroll forward and backward, it
> looks like ghost work on my machine with me.
>
> May be experienced emacs developer suggest how track down this problem?
>
> I see it like for example exists two function:
> the-most-internal-scroll-buffer-function
> the-most-internal-move-cursor-function
>
> I put breakpoints on them with condition that on top of call stack is
> "timer event", not "key event". And then see who is ghost.
>
> Anybody from top emacs coders know is it possible?
> Are there
> the-most-internal-scroll-buffer-function
> the-most-internal-move-cursor-function
> and what are their names,
What you see is not some scroll-buffer function, it is redisplay
trying to keep point in view. This part of Emacs is written in C, so
you'd need to set breakpoints in GDB.
But there are too many places that could be involved in these
unwarranted scrolls; setting breakpoints on all of them will produce
gobs of clutter. The best I can suggest is this:
. build Emacs with -DGLYPH_DEBUG=1
. run it as you do usually, and after setting up the stage for these
scrolls, type "M-x trace-redisplay RET"
. watch the screen where Emacs's stderr goes, and try to identify the
traces emitted when those "ghost" scrolls happen
. post those traces here
Armed with the above, I might be able to tell you where to set
breakpoints in GDB so that you catch the Lisp code which triggers
these scrolls.
That said, I'm not sure what you expect to find, since Eric already
told you where this is done, and even said this is on purpose:
> The place to start is in cedet/semantic/idle.el. The outward call to
> the various work functions purposely does not use 'save-excursion' so
> tools like completion can move things around for you.
Or maybe I don't understand what he meant.
next prev parent reply other threads:[~2013-07-08 18:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-08 11:55 [cedet-semantic] scrolling while editing RFC Dave Milter
2013-07-08 14:29 ` Barry OReilly
2013-07-08 18:09 ` Eli Zaretskii [this message]
2013-07-08 18:48 ` Barry OReilly
2013-07-08 19:10 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83fvvox6s9.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=cedet-semantic@lists.sourceforge.net \
--cc=davemilter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=eric@siege-engine.com \
--cc=gundaetiapo@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.