all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steve Revilak <steve@srevilak.net>
To: 22715@debbugs.gnu.org
Subject: bug#22715: 25.0.91; Point randomly jumps during key entry
Date: Thu, 18 Feb 2016 21:22:40 -0500	[thread overview]
Message-ID: <20160219022240.GD2572@srevilak.net> (raw)
In-Reply-To: <83r3gbuw2u.fsf@gnu.org>

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

Thanks, Eli and Andreas, for your suggestions.

I began by collecting `view-lossage' after several instances of
point-jumping.  Here is a representative example:

      > [self-insert-command]
      SPC [self-insert-command]
      a [self-insert-command]
      l [self-insert-command]
      l [self-insert-command]
      R [self-insert-command]
      e [self-insert-command]
      q [self-insert-command]
      u [self-insert-command]
      e [self-insert-command]
      s [self-insert-command]  <<< HERE
      t [self-insert-command]
      I [self-insert-command]
      M-x [execute-extended-command]
      v [self-insert-command]
      i [self-insert-command]
      e [self-insert-command]
      w [self-insert-command]
      - [self-insert-command]
      l [self-insert-command]
      o [self-insert-command]
      <tab> [minibuffer-complete]
      <return> [minibuffer-complete-and-exit]

I'd been typing on line 494 of a .java file.  The characters "stI"
ended up on line 464.  I don't see any unexpected characters in
view-lossage; the characters that appear are those I actually typed.


Next, I tried to reproduce this behavior in a "almost emacs -Q"
configuration, which was

   emacs -q --no-site-file --no-site-lisp --no-splash

and the smallest ~/.emacs I could get away with.  I was not able to
reproduce the point-jumping behavior in this configuration.


Looking through the emacs-devel archives, I came across

   https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01687.html

which describes behavior nearly identical to what I've observed.


A later post suggests a patch

   https://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00029.html

and another suggests that point-jumping might be related to timers

   https://lists.gnu.org/archive/html/emacs-devel/2015-11/msg02127.html


As an experiment, I went back to my "normal emacs", but with a few
lines in ~/.emacs commented out:

   ;(semantic-mode 1)
   ;(semantic-stickyfunc-mode t)

I also commented out `setq' definitions for
semanticdb-default-save-directory and semanticdb-project-roots.  With
those elements commented out, I couldn't reproduce the point-jumping
behavior.  (I'll continue to test in this configuration, to be more
certain that the non-reproduce isn't just a coincidence.)


If it would help, I can restore the aforementioned `semantic' pieces,
and see if I can correlate point-jumping with specific timer events.
I can also try the save-excursion patch in
https://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00029.html.


Finally, 

   https://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00031.html

suggests this might be related to Bug #15045.


Steve

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-02-19  2:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17  1:39 bug#22715: 25.0.91; Point randomly jumps during key entry Steve Revilak
2016-02-17  8:51 ` Andreas Schwab
2016-02-17  9:26 ` Joakim Jalap
2016-02-17 16:43   ` Eli Zaretskii
2016-02-17 16:52     ` Joakim Jalap
2016-02-17 17:22       ` Eli Zaretskii
2016-02-17 21:13         ` Joakim Jalap
2016-02-18  3:37           ` Eli Zaretskii
2016-02-18  7:44             ` Joakim Jalap
2016-02-17 16:43 ` Eli Zaretskii
2016-02-19  2:22   ` Steve Revilak [this message]
2016-02-19 10:30     ` Eli Zaretskii
2016-02-19 20:33       ` David Engster
2016-02-21 16:27         ` David Engster
2016-02-21 17:19           ` Eli Zaretskii
2016-02-22 17:22             ` Steve Revilak
2016-02-22 17:38               ` Eli Zaretskii
2016-02-22 18:33                 ` Steve Revilak
2016-02-24  1:47                   ` Steve Revilak

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=20160219022240.GD2572@srevilak.net \
    --to=steve@srevilak.net \
    --cc=22715@debbugs.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 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.