Ticket #2876: code cleanup before 4.8.6 release.

mcedit: better support of --disable-charset.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Avoid double checks of bookmarks in editor.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(edit_do_search): refactoring of search loop condition.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Refactoring of many conditions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Cleanup of screen library detection m4 code.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Reorder checks in configure.ac.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
mcdiffview: code cleanup and cosmetics.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Fix mouse event handling in menu that overlaps buttonbar.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(edit_do_undo): cleanup of labeled statement usage.

(edit_do_redo): likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(get_absolute_name): missing finish NULL in vfs_path_append_vpath_new() call.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Use g_strndup() instead of g_strdup()

...to ret rid of extra calculation of string length.

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

(str_utf8_casefold_normalize): likewise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Ticket #2861: additional error handling in edit_save_block().

If edit->column_highlight is on and the disk is so full that the editor
is unable even to write the magic (r <= 0), then subsequent if (len)
check might fail, since the value of len is undefined.

The solution is to initialize len with a non-zero value, so that the
function properly returns an error value in all cases (adding an
explicit return 0; is also possible, but then one must take care of
closing file descriptors, which is less convenient).

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
removed obsolete params from edit_push_undo_action/edit_push_redo_action

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
fixed doxygen.cfg, excluded directory /tests/ from doxygen path's

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
fixed doxygen documentation

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Update EN and RU man pages: add missing options.

Reported in https://bugzilla.redhat.com/show_bug.cgi?id=854876.

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

* 2876_cleanup:
  Update EN and RU man pages: add missing options.
  fixed doxygen documentation
  fixed doxygen.cfg, excluded directory /tests/ from doxygen path's
  removed obsolete params from edit_push_undo_action/edit_push_redo_action
  Ticket #2861: additional error handling in edit_save_block().
  (str_utf8_normalize): ret rid of extra memory allocation.
  Use g_strndup() instead of g_strdup()
  (get_absolute_name): missing finish NULL in vfs_path_append_vpath_new() call.
  (edit_do_undo): cleanup of labeled statement usage.
  Fix mouse event handling in menu that overlaps buttonbar.
  mcdiffview: code cleanup and cosmetics.
  Reorder checks in configure.ac.
  Cleanup of screen library detection m4 code.
  Refactoring of many conditions.
  (edit_do_search): refactoring of search loop condition.
  Avoid double checks of bookmarks in editor.
  Ticket #2876: code cleanup before 4.8.6 release.