GNU bug report logs - #25987
25.2; support gcc fixit notes

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Sun, 5 Mar 2017 21:49:01 UTC

Severity: wishlist

Merged with 29004

Found in versions 25.2, 27.0.50

Full log


Message #8 received at 25987 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tom Tromey <tom <at> tromey.com>
Cc: 25987 <at> debbugs.gnu.org
Subject: Re: bug#25987: 25.2; support gcc fixit notes
Date: Mon, 06 Mar 2017 20:35:55 +0200
> From: Tom Tromey <tom <at> tromey.com>
> Date: Sun, 05 Mar 2017 14:47:57 -0700
> 
> I think Emacs should support this in compilation mode buffers.

I agree, it would be a good feature.

> A few thoughts on the implementation:
> 
> * The filename quoting stuff will require a bit of unquoting

Perhaps shell-unquote-argument will help?

> * The offsets are byte offsets, not columns, which is a bit of a pain
>   (or at least, it is for me since I don't know how to handle that in
>   elisp)

Ouch! why did they do it in bytes?  That's worth a bug report, IMO.

Anyway, filepos-to-bufferpos could help with this problem.

> * One way for this to work would be to display the buffer and 
>   show the proposed change as an overlay;

Or maybe a tooltip on GUI frames?

> * However other approaches are possible, like letting the user request
>   no confirmation, or request "auto-apply all changes" or something.
>   Maybe a fixit should be associated with the previous error somehow.

Is there perhaps some "prior art" for this in other IDEs out there?

Thanks.




This bug report was last modified 4 years and 248 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.