* bug#24671: java-mode confused by non-trivial generics
@ 2016-10-12 0:23 Daniel Colascione
2019-07-27 14:01 ` Lars Ingebrigtsen
[not found] ` <mailman.2400.1564236126.2688.bug-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Daniel Colascione @ 2016-10-12 0:23 UTC (permalink / raw)
To: 24671
For the following code
class Foo {
public List<Class<? extends Bar<? extends Qux>>> getBars() {
return null;
}
}
I expect the `<' and `>' to be assigned paren syntax, but they are not. Emacs
is latest master.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#24671: java-mode confused by non-trivial generics
2016-10-12 0:23 bug#24671: java-mode confused by non-trivial generics Daniel Colascione
@ 2019-07-27 14:01 ` Lars Ingebrigtsen
[not found] ` <mailman.2400.1564236126.2688.bug-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-27 14:01 UTC (permalink / raw)
To: Daniel Colascione; +Cc: 24671
Daniel Colascione <dancol@dancol.org> writes:
> For the following code
>
> class Foo {
> public List<Class<? extends Bar<? extends Qux>>> getBars() {
> return null;
> }
> }
>
> I expect the `<' and `>' to be assigned paren syntax, but they are not. Emacs
> is latest master.
When I try this in Emacs 27, the < and > characters are fontied the same
way as the parentheses in the example, so I'm guessing that this has
been fixed and is closing this bug report. If you're still seeing this
problem, please reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.2400.1564236126.2688.bug-gnu-emacs@gnu.org>]
* bug#24671: java-mode confused by non-trivial generics
[not found] ` <mailman.2400.1564236126.2688.bug-gnu-emacs@gnu.org>
@ 2019-07-27 14:14 ` Alan Mackenzie
2019-07-27 15:11 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Alan Mackenzie @ 2019-07-27 14:14 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 24671
Hello, Lars
In article <mailman.2400.1564236126.2688.bug-gnu-emacs@gnu.org> you wrote:
> Daniel Colascione <dancol@dancol.org> writes:
>> For the following code
>>
>> class Foo {
>> public List<Class<? extends Bar<? extends Qux>>> getBars() {
>> return null;
>> }
>> }
>>
>> I expect the `<' and `>' to be assigned paren syntax, but they are not. Emacs
>> is latest master.
> When I try this in Emacs 27, the < and > characters are fontied the same
> way as the parentheses in the example, so I'm guessing that this has
> been fixed and is closing this bug report. If you're still seeing this
> problem, please reopen.
I think the bug should be reopened: it was about the syntax on < and >
rather than the fontification.
If you put point in front of any of the <s, you should be able to
execute C-M-f, moving to the matching >.
This doesn't happen in the current scenario because the closing >s,
written without intervening spaces, get confused with the Java shift
right operator ">>>". If you insert a space into that triplet, the
syntax comes back again.
This will be easy to fix.
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#24671: java-mode confused by non-trivial generics
2019-07-27 14:14 ` Alan Mackenzie
@ 2019-07-27 15:11 ` Lars Ingebrigtsen
2019-07-27 16:36 ` Alan Mackenzie
0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-27 15:11 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: 24671
Alan Mackenzie <acm@muc.de> writes:
> I think the bug should be reopened: it was about the syntax on < and >
> rather than the fontification.
>
> If you put point in front of any of the <s, you should be able to
> execute C-M-f, moving to the matching >.
Oh, I see; reopening.
> This doesn't happen in the current scenario because the closing >s,
> written without intervening spaces, get confused with the Java shift
> right operator ">>>". If you insert a space into that triplet, the
> syntax comes back again.
>
> This will be easy to fix.
I bet.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#24671: java-mode confused by non-trivial generics
2019-07-27 15:11 ` Lars Ingebrigtsen
@ 2019-07-27 16:36 ` Alan Mackenzie
2019-07-28 9:43 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Alan Mackenzie @ 2019-07-27 16:36 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 24671
Hello, Lars and Daniel.
On Sat, Jul 27, 2019 at 17:11:23 +0200, Lars Ingebrigtsen wrote:
> Alan Mackenzie <acm@muc.de> writes:
> > I think the bug should be reopened: it was about the syntax on < and >
> > rather than the fontification.
> > If you put point in front of any of the <s, you should be able to
> > execute C-M-f, moving to the matching >.
> Oh, I see; reopening.
> > This doesn't happen in the current scenario because the closing >s,
> > written without intervening spaces, get confused with the Java shift
> > right operator ">>>". If you insert a space into that triplet, the
> > syntax comes back again.
> > This will be easy to fix.
> I bet.
I've committed a fix to the master branch. Maybe one or both of you
might want to try it out before the bug is closed.
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-07-28 9:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 0:23 bug#24671: java-mode confused by non-trivial generics Daniel Colascione
2019-07-27 14:01 ` Lars Ingebrigtsen
[not found] ` <mailman.2400.1564236126.2688.bug-gnu-emacs@gnu.org>
2019-07-27 14:14 ` Alan Mackenzie
2019-07-27 15:11 ` Lars Ingebrigtsen
2019-07-27 16:36 ` Alan Mackenzie
2019-07-28 9:43 ` Lars Ingebrigtsen
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.