nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] Per syntax key bindings


From: Brand Huntsman
Subject: Re: [Nano-devel] [PATCH] Per syntax key bindings
Date: Wed, 23 May 2018 20:06:47 -0600

On Wed, 23 May 2018 21:38:17 -0300
Marco Diego Aurélio Mesquita <address@hidden> wrote:

> > I don't know how extendsyntax works (nor do I use it) but if it
> 
>   extendsyntax c bind M-" "Test" all
>   extendsyntax c bind ^G "Test2" all

There shouldn't be any issues if it only applies one command, I thought maybe 
it opened up live_syntax and multiple commands could be used.


> I don't want to fix all that. At least not now. For now, I just want
> to get enough done to have the feature working as expected. Of course,
> if it breaks something, I want to fix it; if not, I don't care. Can
> you send-me some samples of .nanorc which work with current master but
> not with the patch applied?

You can embed syntaxes in nanorc instead of including them from external files. 
You would need to exclude them from using bind/unbind, which is terrible. Or 
you add new "syntax-bind"/"syntax-unbind" commands, another terrible idea. 
Anything you do short of endsyntax is likely going to be a hack to get around a 
problem you don't want to fix.

An endsyntax patch would be smaller than your bind patch and take about 5 
minutes to implement. The hardest part is writing the RFC and getting it 
approved.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]