From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#28926: 26.0.90; java-mode hangs on "<" Date: Sat, 21 Oct 2017 16:41:14 -0400 Message-ID: <877evodyj9.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1508618547 9723 195.159.176.226 (21 Oct 2017 20:42:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Oct 2017 20:42:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 28926@debbugs.gnu.org To: detlevvandaele Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 21 22:42:24 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e60az-0000ur-VX for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Oct 2017 22:42:14 +0200 Original-Received: from localhost ([::1]:59179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e60b7-0008KW-HK for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Oct 2017 16:42:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e60b1-0008Jg-14 for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2017 16:42:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e60ax-0000Eg-16 for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2017 16:42:15 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e60aq-0008S3-9R for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2017 16:42:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e60ao-0004i9-76 for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2017 16:42:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Oct 2017 20:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28926 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28926-submit@debbugs.gnu.org id=B28926.150861848518059 (code B ref 28926); Sat, 21 Oct 2017 20:42:02 +0000 Original-Received: (at 28926) by debbugs.gnu.org; 21 Oct 2017 20:41:25 +0000 Original-Received: from localhost ([127.0.0.1]:54665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e60aD-0004h8-5F for submit@debbugs.gnu.org; Sat, 21 Oct 2017 16:41:25 -0400 Original-Received: from mail-it0-f46.google.com ([209.85.214.46]:50282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e60aB-0004gp-7n; Sat, 21 Oct 2017 16:41:23 -0400 Original-Received: by mail-it0-f46.google.com with SMTP id 72so2095270itl.5; Sat, 21 Oct 2017 13:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=DlB6hOPKyuQVjk5iPa2LkzYKfeG201mplvo0/CL2uvk=; b=qN7yiXLHCQMOPWQuIPdxQjqTkArJACt+3NGXCkTKpj413sosHSqTTgLoexj/YcPpaA +Sl76JTVFo6FZaucmVzJLnsAEK+MyZMdBqint1E0n+y1ycwHw1B88CV1pF+ckzDjqWSQ pYpW+dRLXpvkmi8l7AC9DJtTllsJ+a4ZZreyihCXPjx9UUKzHlbhzK52h702QzKudq2G aUMDR0tSGevNOfdj75Js5uaKWPzcfpHsG/4NUB3CijIQvaNcuAbcnaUm9cjCt9E1c4R4 2QW+58Fv5cNujsauzIoUoA8EX4qUrdrPFKPxLqMko6TDeG5+dPpabITluLYygk0s55Ez kLDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=DlB6hOPKyuQVjk5iPa2LkzYKfeG201mplvo0/CL2uvk=; b=uLy0KCz73LlfK6hfekC0OmnuXBBlOn9dhthAxWrm2RL+K0CbPKDl8f2z+qYpN/rVAL ajN5pvBxkUuC6DknEGXJA6p5r3ZudnjCArc5zzf9yIwzAHv9JZyrKgoIO6NUH6l3j9gK 92XZ0ZtkFI5SWp0UaKW/jWUeX0EirQa4J8Wbf9rrMkvHGSxMr9OAlWqv/wQEVBCGw4sC o9w02qOoXtpfv83yOluOLluWGQxuEwE2UStYmABaPP2WDfQ9ZMFn/+vjYDZ5IXM/Drfd X9iP5EN8EAYgYtTg/ybZtsrtVAMul4W+4D3Wr7TqfAbF8/a3jiiAuQUKB7DXEosGLu22 xspA== X-Gm-Message-State: AMCzsaVao0AnQBBTmWa2YC74aUhprkdZfpeHSDCjVJjBTxKIsql/WuX6 +e3NI06L7gp+p3MjpXPSLmjKYQ== X-Google-Smtp-Source: ABhQp+QobTnRmhpwYLZw1dnBxghSYK232+ToRTF04CnRz5fyNGQo3POCwQf9HdC6SQPZ6lNkCqj2Hg== X-Received: by 10.36.103.134 with SMTP id u128mr3523974itc.2.1508618477380; Sat, 21 Oct 2017 13:41:17 -0700 (PDT) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id y16sm764698ita.11.2017.10.21.13.41.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Oct 2017 13:41:16 -0700 (PDT) In-Reply-To: (detlevvandaele's message of "Sat, 21 Oct 2017 18:51:27 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138827 Archived-At: tags 28926 + confirmed quit detlevvandaele 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= =C2=A0quit. > Expected result: immediate insertion of the "<" character without freezin= g/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) #)(c-restore-<>-properties) mapc(#f(compiled-function (fn) #) (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)