Re: [PATCH] Add .pd extension to c_exts.

2019-09-02 Thread Martin Liška
On 9/2/19 1:08 PM, Alexander Monakov wrote: > On Mon, 2 Sep 2019, Martin Liška wrote: > >>> If that's the case, we should look into overriding 'tabstop' for all files >>> in >>> the gcc tree, including .md files, not just .pd and C/C++ files, right? >> >> Can be done but we don't have any 'au Buf

Re: [PATCH] Add .pd extension to c_exts.

2019-09-02 Thread Alexander Monakov
On Mon, 2 Sep 2019, Martin Liška wrote: > > If that's the case, we should look into overriding 'tabstop' for all files > > in > > the gcc tree, including .md files, not just .pd and C/C++ files, right? > > Can be done but we don't have any 'au BufRead *.md' rule right now. The solution I had in

Re: [PATCH] Add .pd extension to c_exts.

2019-09-02 Thread Martin Liška
On 9/2/19 11:56 AM, Alexander Monakov wrote: > On Mon, 2 Sep 2019, Martin Liška wrote: > >> Yep, I'm going to apply following patch that does it properly for the >> gcc-match >> file type. > > So just to make sure I understand correctly why you need this: > > you use some other value of 'tabsto

Re: [PATCH] Add .pd extension to c_exts.

2019-09-02 Thread Alexander Monakov
On Mon, 2 Sep 2019, Martin Liška wrote: > Yep, I'm going to apply following patch that does it properly for the > gcc-match > file type. So just to make sure I understand correctly why you need this: you use some other value of 'tabstop' in Vim, and need to reset it back to its default value of

Re: [PATCH] Add .pd extension to c_exts.

2019-09-02 Thread Martin Liška
On 8/30/19 2:54 PM, Richard Biener wrote: > On Fri, Aug 30, 2019 at 2:31 PM Alexander Monakov wrote: >> >> >> >> On Fri, 30 Aug 2019, Richard Biener wrote: >> >>> On Fri, Aug 30, 2019 at 12:58 PM Martin Liška wrote: Hi. I would like to add .pd to c_exts so that one can ha

Re: [PATCH] Add .pd extension to c_exts.

2019-08-30 Thread Richard Biener
On Fri, Aug 30, 2019 at 2:31 PM Alexander Monakov wrote: > > > > On Fri, 30 Aug 2019, Richard Biener wrote: > > > On Fri, Aug 30, 2019 at 12:58 PM Martin Liška wrote: > > > > > > Hi. > > > > > > I would like to add .pd to c_exts so that one > > > can have correctly set tab width, etc. > > > > But

Re: [PATCH] Add .pd extension to c_exts.

2019-08-30 Thread Alexander Monakov
On Fri, 30 Aug 2019, Richard Biener wrote: > On Fri, Aug 30, 2019 at 12:58 PM Martin Liška wrote: > > > > Hi. > > > > I would like to add .pd to c_exts so that one > > can have correctly set tab width, etc. > > But then it will auto-indent with too much spaces, no? I think it's fine, the scri

Re: [PATCH] Add .pd extension to c_exts.

2019-08-30 Thread Martin Liška
On 8/30/19 2:09 PM, Richard Biener wrote: > But then it will auto-indent with too much spaces, no? It's doesn't understand the lisp-like notation (foo (bar (baz so no auto-indentation is happening. Martin

Re: [PATCH] Add .pd extension to c_exts.

2019-08-30 Thread Richard Biener
On Fri, Aug 30, 2019 at 12:58 PM Martin Liška wrote: > > Hi. > > I would like to add .pd to c_exts so that one > can have correctly set tab width, etc. But then it will auto-indent with too much spaces, no? Richard. > Ready for trunk? > Thanks, > Martin > > contrib/ChangeLog: > > 2019-08-30 Ma