Red Hat Bugzilla – Bug 464738
Tabs and spaces are represented with other characters instead of tabs and empty spaces
Last modified: 2013-07-02 19:32:09 EDT
In "mcedit", the midnight commander internal editor, tabs and empty spaces are represented with the following sequence of characters "<------>" and dots (.) respectively instead of the natural tabs and empty spaces!
This is probably the most funny and annoying feature in the entire history of text editors! Not only it makes editting difficult, but also those irrelevant characters are copied together with the text when, for example, I want to copy a portion of the text in the opened document in mcedit inside a terminal to a graphical editor on my desktop.
Please disable this annoying feature in Fedora by default or include a file, as extra documentation, describing how to turn it off.
You can use ctrl-v to switch among four display modes (no highlighting/spaces/tabs/tabs+spaces) in rawhide now.
Got the mc package from rawhide and used it in fedora 9.
Ctrl-V changes to the following modes:
1) tabs as '<----->' trailing spaces as dots '.'
2) trailing spaces are not visible. Tabs, if we suppose that they are 8 characters long, they are are not visible, but a black box appears as shown below ('H' is the black box):
H H test
3) Tabs shown as in (2) -black boxes- and trailing spaces as dots, as in (1)
4) tabs shown as in (1), '<---->'. Trailing spaces are not visible.
The black boxes are a bit strange. Maybe I should have upgraded another library from rawhide together with mc. I do not know.
Generally, the feature of representing tabs and trailing spaces with visible characters is not bad. But, my main objection is that it should not be the default behavior.
The major problem for me was that those '<---->' were copied together with the text whenever I copied text from gnome-terminal and pasted it to a graphical editor on the desktop. So, the last weeks I switched back to vi instead of mcedit, until the situation around this feature gets stable.
Thanks for responding.
Thanks for noticing. I use a different colour scheme than default (with the black background) so I haven't seen the black box while debugging the tab highlighting. There are also issues with highlighting of the marked text by F3 which needs to be fixed, I'm looking into it now. I will release mc update as soon as it's fixed and update this as soon as I'll make it a bit better.
I would also like to apologize about my stupid comments in the initial bug submission. Being able to see non-printable characters is many times very useful. The fact that there was not an obvious way to disable this feature made me judge it in a negative way.
I still see the black boxes with mc-4.6.2-9.pre1.fc11.x86_64.
mc-4.6.2-4.fc9 has been submitted as an update for Fedora 9.
mc-4.6.2-4.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.