Ticket #3073: urar helper: fix handling filenames with spaces for unrar v5.

Extfs urar helper doesn't allow to see the whole filename if it
contains spaces and is unpacked by unrar v5. This commit should fix that.

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

* 3073_urar5_spaces:
  Ticket #3073: urar helper: fix handling filenames with spaces for unrar v5.
Ticket #2661: support enable bracketed paste of xterm.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Support bracketed paste mode of xterm in mcedit.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Handle newline and tab with shift/ctrl modifiers correctly.

MC already has its own half-ready trick: when pasting with Shift-Insert,
using the X11 extension, the newline ("Enter" as mc calls it) with the
Shift modifier pressed gets converted to a "Return", and in the editor
the Return character inserts a non-indenting newline. This makes pasting
better in terminals not supporting bracketed paste, however, it has some
problems that this commit addresses:

  * Shift+newline gets this special treatment, but Ctrl+newline gets
    dropped. Hence e.g. when pasting in Gnome-terminal with Ctrl+Shift+V
    all the newlines will be missing. This commit adds the same
    non-indenting newline behavior to Ctrl+Newline and Ctrl+Shift+Newline.

  * The code forgets about Tab that also needs special treatment:

    - Most terminals send \e[Z on Shift+Tab, this is not handled by MC
      at all, moreover it causes a hang for about a second. This commit
      teaches this sequence to MC. This is especially useful when no X11
      is available, because there Ctrl+Tab is identical to Tab, so the
      backwards tab feature is not available. With this commit Shift+Tab
      becomes a backwards tab too on all terminals that emit \e[Z.

    - When pasting to the editor, Shift+Tab, Ctrl+Tab and Ctrl+Shift+Tab
      should all insert a tab for the same reason mentioned at the newline.

    - It would look inconsistent in the keymap files to have logical code
      such as "backtab" instead of "shift-tab" and friends, hence get rid
      of KEY_BTAB and use KEY_M_SHIFT | '\t' instead.

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

* 2661_mcedit_paste:
  Handle newline and tab with shift/ctrl modifiers correctly.
  Support bracketed paste mode of xterm in mcedit.
  Ticket #2661: support enable bracketed paste of xterm.
Fix indentation

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Ticket #1588: rpm extfs enhancements:

  * Improve support for EPOCH
  * Add support for PREINPROG/POSTINPROG/PREUNPROG/POSTUNPROG
  * Add support for VERIFYSCRIPTPROG
  * Add support for TRIGGERSCRIPTS/TRIGGERSCRIPTPROG

Thanks Arkadiusz Miśkiewicz <arekm@maven.pl> for the original patch.

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

* 1588_rpm_enhancement:
  Ticket #1588: rpm extfs enhancements:
Ticket #2978: fix for Home, End, Shift+Fn problems under screen/tmux.

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

* 2978_tmux_keys:
  Ticket #2978: fix for Home, End, Shift+Fn problems under screen/tmux.
Ticket #3051: prepare to 4.8.11 release.

Ticket #3052: fix man page "macro `\' not defined" warnings.

man --warnings doc/man/mc.1 >/dev/null

reported the following warning:

3114: warning: macro `\' not defined".

and indeed man page didn't look correct at the line starting with "Apply
escaping".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #3053: src/filemanager/filegui.c: fix preprocessor condition.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(vfs_path_tokens_count): refactoring: get rid of extra memory allocation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(edit_load_macro_cmd): minor refactoring: replace while() by for().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(mc_skin_colors_old_configure_one): cosmetics.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(vfs_path_tokens_get): minor refactoring: replace while() by for().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(lookup_key): minor refactoring: replace while() by for().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(load_panelize): replace while() by for() and fix potential memory leak.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
mcedit: file loading speed up.

Apply direct line counting during file reading.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>