Ticket #3339: fix pasting from clipboard.

When clipboard_paste option was set but clipboard utility was not
installed, nothing was pasted and clipboard file became empty.

Solution: reimplement pasting way using mc_pipe_t instead of my_system().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Clarify flags and mode to open clipboard file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Clarify description of clipboard_store and clipboard_paste options.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '3339_mcedit_paste_to_clipboard'

* 3339_mcedit_paste_to_clipboard:
  Clarify description of clipboard_store and clipboard_paste options.
  Clarify flags and mode to open clipboard file.
  Ticket #3339: fix pasting from clipboard.
Code indentation

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Updated Spanish MAN-file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1652: autodetect line-endings

    * On opening file, detect line-endings used by sampling some initial content.
    * If it happen to be CR or CRLF, skip fast load path, and in edit_insert_file()
      convert such line endings to '\n'.
    * Save detected line ending type for editor.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Added configure option editor_autodetect_linebreak

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Added unit tests for checking "detect type of line breaks" functionality

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
edit.c: Make line break detection much more conservative.

Detection now requires consistent line breaks being present within sampling
buffer. If breaks of different types are found, or there's a slightest
suspicion that it may be binary content, it reverts to binary-safe "as-is"
mode.

Also, refactor detection routines to facilitate unit testing.

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>
tests: detect_linebreaks.c: Revamp for latest codebase.

Also, test only line break detection algorithm, not anything else (no
file operations, etc.).

Signed-off-by: Paul Sokolovsky <pfalcon@users.sourceforge.net>