Re: BackSpace deletes whitespace to beginning of line

52 views
Skip to first unread message

Sebastiano Vigna

unread,
Aug 2, 2012, 4:38:17 AM8/2/12
to nicee...@googlegroups.com
Can you put together a test case? A macro would be the best thing..
Daniel Baskerville <daniel.ba...@boku.com> ha scritto:>Hi,
>
>After using and loving ne for years and years I recently updated to a
>version of ubuntu that ships with 2.3 which is exhibiting the above
>behavior.
>I've verified that this is the BackSpace command itself, not some kind of
>macro that the backspace key is bound to.
>I checked out the latest 2.4 source tarball and it's the same.
>
>Is this intentional? Is there a way to turn it off?
>
>BTW, as an aside the linker command in the 2.4 src/makefile does not work
>with my version of gcc (4.6.3).
>
>Instead of,
>
> $(CC) -lm $(OPTS) $(LDFLAGS) $(if $(NE_TEST), -coverage,) $^ $(LIBS) -o
>$(PROGRAM)
>
>It should be,
>
> $(CC) $(OPTS) $(LDFLAGS) $(if $(NE_TEST), -coverage,) $^ -lm $(LIBS) -o
>$(PROGRAM)
>
>(-lm should be with the other libs, after the input files, otherwise it
>gets ignored and the linker cannot find the math lib symbols)
>
>Thanks,
> - Daniel
>
>

utoddl

unread,
Aug 2, 2012, 8:01:04 AM8/2/12
to nicee...@googlegroups.com
You probably have turned off the Tabs flag. Is there a "t" or "T" in the status line? If not, your Tabs flag is not set.

When the Tabs flag is set, the Tab key inserts tab characters and Backspace removes single tabs and spaces (and other single characters) as it encounters them.

When the Tabs flag is not set, the Tab key causes the insertion of enough spaces to have the same visual effect as inserting a tab character, an effect which of course depends on your current tab size. However, it also affects the behavior of Backspace in that if the spaces to the left of the cursor could be represented by a single tab, it removes those spaces rather than just one space.

This alternate Backspace behavior seems to me a little more clever than it is useful, but there it is.

You may want to look at your various ~/.ne/*#ap files (including ~/.ne/.default@ap) to see if any of them have "Tabs 0" in them. Another trick is to use the tabs syntax recognizer -- if only temporarily -- to easily see tabs in files. The command is "syntax tabs".

Daniel Baskerville

unread,
Aug 2, 2012, 12:46:09 PM8/2/12
to nicee...@googlegroups.com
Ah, as you said turning on tabs reverts to the old backspace behavior - thanks!

When I saw the little `t` at the bottom of the new version I instinctively went to turn it off, not realizing it was a new feature.
Reply all
Reply to author
Forward
0 new messages