unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@users.sourceforge.net>
To: detlevvandaele <detlev.vandaele@gmail.com>
Cc: 28926@debbugs.gnu.org
Subject: bug#28926: 26.0.90; java-mode hangs on "<"
Date: Sat, 21 Oct 2017 16:41:14 -0400	[thread overview]
Message-ID: <877evodyj9.fsf@users.sourceforge.net> (raw)
In-Reply-To: <f1fc6e55-a223-4c20-906a-de1af8f00481@Spark> (detlevvandaele's message of "Sat, 21 Oct 2017 18:51:27 +0200")

tags 28926 + confirmed
quit

detlevvandaele <detlev.vandaele@gmail.com> writes:

> Hello,
>
> recently I've been trying to get a decent java environment set-up for
> emacs, and I've noticed that whenever I open a java buffer and type
> "<" for the first time, the emacs process hangs indefinitely.
>
> Quitting out with C-g then inserts the character, and no further issues
> arise so long as the buffer is not reverted (meaning I can then insert
> as many "<" as I want without hanging).
> Reverting the buffer or opening a new java buffer re-introduces the issue.
>
> I can personally reproduce this bug on both my macbook pro running macOS High
> Sierra and my Arch Linux machine with emacs version 26.0.90.
> The bug does not seem to occur on emacs 25.3.2 on either OS.
>
> Steps to reproduce:
> 1. Start emacs -Q
> 2. Open an arbitrary java file (e.g. test.java)
> 3. Type an opening "<"
>
> Alternatively:
> 1. Start emacs -Q
> 2. Open up the *scratch* buffer
> 3. Activate java-mode (M-x java-mode)
> 4. Type an opening "<"
>
> Perceived result: emacs hangs indefinitely until the current command is quit.
> Expected result: immediate insertion of the "<" character without freezing/hanging.

Here's a backtrace using debug-on-quit:

Debugger entered--Lisp error: (quit)
  c-forward-<>-arglist-recur(nil)
  c-forward-<>-arglist(nil)
  c-restore-<>-properties(146 147 0)
  #f(compiled-function (fn) #<bytecode 0xeb4015>)(c-restore-<>-properties)
  mapc(#f(compiled-function (fn) #<bytecode 0xeb4015>) (c-depropertize-new-text c-parse-quotes-after-change c-restore-<>-properties c-change-expand-fl-region))
  c-after-change(146 147 0)
  self-insert-command(1)
  funcall-interactively(self-insert-command 1)
  call-interactively(self-insert-command nil nil)
  command-execute(self-insert-command)





      reply	other threads:[~2017-10-21 20:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-21 16:51 bug#28926: 26.0.90; java-mode hangs on "<" detlevvandaele
2017-10-21 20:41 ` Noam Postavsky [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=877evodyj9.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=28926@debbugs.gnu.org \
    --cc=detlev.vandaele@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 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).