<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 9 September 2013 14:19, <a href="mailto:pauriem@gmail.com">pauriem@gmail.com</a> <span dir="ltr"><<a href="mailto:pauriem@gmail.com" target="_blank">pauriem@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to follow up on the part<br>
of this old thread which is<br>
complaining about the behavior<br>
of the backspace in Scintilla, which<br>
will sometimes trigger a forward<br>
delete in an indentation context<br></blockquote><div><br></div><div>It doesn't forward delete, it just removes one indentation level.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
I also find this really annoying and<br>
pointless and would like to disable<br>
it<br></blockquote><div><br></div><div>There are times when it can be, yes, particularly in space indented code.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
from what I can gather, the<br>
behavior is governed by a<br>
property in Scintilla called<br>
backspace-undeletes<br></blockquote><div><br></div><div>IAW your next post backspaceunindents (no hyphen) yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
what I would hope to be able to do<br>
is to use the plugin API to pass<br>
a message to Scintilla to knock<br>
off doing this<br></blockquote><div><br></div><div>You can but, ... Geany also sets it when it sets the indent, which will overwrite anything you set.  It is hardcoded :( to set backspaceunindents for anything but tab indented files.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
is there such a message I can send,<br>
or would I have to patch the geany<br>
source to call a lower-level Scintilla<br>
function not exposed through the<br>
message-passing?<br></blockquote><div><br></div><div>Just use the normal Scintilla messaging, see where Geany sets it editor.c:4540.  Given that this sets the backspaceunindents setting you will need to submit a well written patch to Geany that makes it depend on preferences.  Given that the current behaviour is indent type dependent, perhaps two prefs, current behaviour, or manual setting.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
failing that, I expect I can write a<br>
script or macro that moves the<br>
cursor one space left and then does<br>
a forward delete (potentially in<br>
a loop indexed by the indentation<br>
value defined by the conf settings),<br>
 and bind the backspace key to that?<br>
is there any reason why that would<br>
fail?<br></blockquote><div><br></div><div>Why not just delete the character prior to the cursor?   That would be the expected backspace behaviour.</div><div><br></div><div>Cheers</div><div>Lex</div><div><br></div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>