Re: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-18 Thread Mike Stump
On Oct 18, 2013, at 6:36 AM, David Malcolm wrote: > Thanks everyone; I'm finding this very helpful. Thanks for the feedback and making enough noise such that we fixed the problem. :-)

Re: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-18 Thread David Malcolm
On Wed, 2013-10-16 at 11:32 -0700, Mike Stump wrote: > On Oct 16, 2013, at 9:26 AM, Tom Tromey wrote: > > Andreas> You could put it in .dir-locals.el, or put a hook on > > Andreas> find-file-hook that looks at buffer-file-name. > > > We checked in a .dir-locals.el for gdb. I recommend it for GCC

RE: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-17 Thread Paulo Matos
> -Original Message- > From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-ow...@gcc.gnu.org] On > Behalf Of Mike Stump > Sent: 16 October 2013 23:06 > To: Paulo J.Matos > Cc: gcc-patches@gcc.gnu.org > Subject: Re: Teaching emacs about GCC coding conven

Re: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-16 Thread Mike Stump
On Oct 16, 2013, at 12:03 PM, Tom Tromey wrote: > Visit ChangeLog. > Find a reference to a PR. > M-x bug-reference-mode > Click or C-c RET on the PR text Tested, confirmed it works as expected; thanks.

Re: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-16 Thread Mike Stump
On Oct 16, 2013, at 1:51 PM, Paulo J. Matos wrote: > On 16/10/13 19:32, Mike Stump wrote: >> >> Committed revision 203715. > > Awesome! > Can I backport your patch to 4_8? First, we like to wait and let patches bake on mainline before considering back porting, this has no bake time yet in our

Re: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-16 Thread Paulo J. Matos
On 16/10/13 19:32, Mike Stump wrote: Committed revision 203715. Awesome! Can I backport your patch to 4_8? -- PMatos

Re: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-16 Thread Tom Tromey
> "Mike" == Mike Stump writes: Mike> I've tested it to ensure everything works as expected, except I Mike> didn't see exactly how to test the bug-reference… If someone knows Mike> how to test that, I'd appreciate it. If I understand the net Mike> result of this, it should make the lives of p

Re: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-16 Thread Mike Stump
On Oct 16, 2013, at 9:26 AM, Tom Tromey wrote: > Andreas> You could put it in .dir-locals.el, or put a hook on > Andreas> find-file-hook that looks at buffer-file-name. > We checked in a .dir-locals.el for gdb. I recommend it for GCC as well. I've copied the gdb one and updated it for our tree:

Re: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-16 Thread Tom Tromey
Andreas> You could put it in .dir-locals.el, or put a hook on Andreas> find-file-hook that looks at buffer-file-name. We checked in a .dir-locals.el for gdb. I recommend it for GCC as well. The gdb one is appended. You'll at least want to edit the bugzilla URL to suit. To make this work, just

Re: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-16 Thread Andreas Schwab
"Paulo Matos" writes: > (haven't found a way to say : 'only use this for GCC sources') You could put it in .dir-locals.el, or put a hook on find-file-hook that looks at buffer-file-name. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748

RE: Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-16 Thread Paulo Matos
elinek; Richard Biener; Paolo Carlini; gcc-patches@gcc.gnu.org > Subject: Teaching emacs about GCC coding conventions (was Re: [PATCH] > tree_code_name wrapper) > > On Tue, 2013-10-15 at 13:19 +, Paulo Matos wrote: > > > -Original Message- > > > From: Ja

Teaching emacs about GCC coding conventions (was Re: [PATCH] tree_code_name wrapper)

2013-10-16 Thread David Malcolm
On Tue, 2013-10-15 at 13:19 +, Paulo Matos wrote: > > -Original Message- > > From: Jakub Jelinek [mailto:ja...@redhat.com] > > Sent: 15 October 2013 10:51 > > To: Paulo Matos > > Cc: Richard Biener; Paolo Carlini; gcc-patches@gcc.gnu.org > > Subject: Re: [PATCH] tree_code_name wrapper >