[squeak-dev] Re: support of various line ends in trunk

Igor Stasenko siguctua at gmail.com
Fri Nov 20 12:49:28 UTC 2009


2009/11/20 Andreas Raab <andreas.raab at gmx.de>:
> Igor Stasenko wrote:
>>
>> 2009/11/17 Juan Vuletich <juan at jvuletich.org>:
>>>
>>> It is all pretty simple to me. I want to see what's in there. I want to
>>> control what I do with it. And I don't want "automatic changes". That's
>>> all.
>>>
>> Then you are using wrong tool. Use hex editor instead.
>
> I think there might be a bit of a misunderstanding here. To some extent I
> share Juan's view - I like to be in control about line ends, in fact
> occasionally it's critical that I can determine the line end convention.
>
> However, I have *never* had the need to edit "mixed" line end conventions,
> i.e., CR, LF, or CRLF side-by-side in the same file. And that's why I don't
> feel the need to see the individual CRs or LFs in the editor. A setting *on*
> the editor that tells me "the line ends in this file are CR/LF/CRLF" serves
> the same purpose and with a lot less clutter. I can usually just ignore it,
> and when I have to I can check (or change) it.
>
> So from my perspective displaying CR, LF, or CRLF all the same is just fine.
> What's missing (for the purposes where I use Notepad++ or Emacs for) is an
> editor that allows me to see and change the line end convention on the file
> I'm editing. If we'd have an explicit File Editor (instead of just a whacky
> workspace with a file attached to it) it would serve my (and probably most
> other line end conscious users) purposes just fine.
>

That's the point, you don't wanna see individual line ends.
The only situation where you care is when you saving text into the file.
But this makes completely irrelevant, in what format text is stored
internally in text editor, since anyways you going to change it.
Moreover, if you provide the conversion feature(s) in separate export
layer, then you can change line ends not only using editor, but by any
other automated tool which speaking with outside world.

> Cheers,
>  - Andreas
>
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list