Просмотр исходного кода

Merge branch '3997_cleanup'

* 3997_cleanup: (27 commits)
  Update po/*.po files.
  (button_set_text): do nothing if new and current texts are equal.
  (check_set_text): new WCheck API.
  (hotkey_draw): minor optimization.
  (hotkey_get_text): new hotkey API.
  (hotkey_equal): new hotkey API.
  Rename hotkey API:
  Refactor of how_console_contents() calls.
  doc/INSTALL: fix build requirements.
  Drop legacy options.
  Ticket #4039: split integer and boolean layout options.
  Ticket #4038: remove unused hotlist option expanded_view_of_groups.
  Use g_clear_slist() and g_clear_list().
  lib/widget/menu.c: constify some function arguments.
  Ticket #4030: misc/ext.d/web.sh.in: view html: fallback to cat...
  (overwrite_query_dialog): fix comment.
  misc: install mc.charsets into $pkgdatadir again.
  (dlg_redraw): rename to dlg_draw.
  (widget_redraw): rename to widget_draw.
  (widget_move): rename to widget_gotoyx.
  ...
Andrew Borodin 5 лет назад
Родитель
Сommit
fc989f9e53

+ 1 - 1
contrib/mc-wrapper.csh.in

@@ -1,4 +1,4 @@
-set MC_USER="`id | sed 's/[^(]*(//;s/).*//'`"
+set MC_USER=`whoami`
 
 if ($?TMPDIR) then
 	setenv MC_PWD_FILE $TMPDIR/mc-$MC_USER/mc.pwd.$$

+ 1 - 1
contrib/mc-wrapper.sh.in

@@ -1,4 +1,4 @@
-MC_USER=`id | sed 's/[^(]*(//;s/).*//'`
+MC_USER=`whoami`
 MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
 @bindir@/mc -P "$MC_PWD_FILE" "$@"
 

+ 3 - 5
doc/INSTALL

@@ -15,11 +15,9 @@ Build requirements for GNU Midnight Commander
 - autoconf
 - automake
 - libtool
-- glib2
-- pcre (if glib < 2.14)
-- slang or ncurses
-- gettext
-- cvs (for gettext < 0.18 or if gettext >= 0.18 is built with --with-cvs)
+- glib2 >= 2.26
+- slang2 or ncurses
+- gettext >= 0.18.1
 - libssh2 >= 1.2.5 is required only for sftp vfs (1.2.7 if you need ssh-agent support)
 - libaspell to support spell checking in the internal editor
 

+ 5 - 5
doc/man/es/mc.1.in

@@ -157,7 +157,7 @@ Skins\&.
 .\"Skins"
 .TP
 .I \-t, \-\-termcap
-Usado solo si el código fue compilado con Slang y terminfo: hace que
+Usado solo si el código fue compilado con S\-Lang y terminfo: hace que
 Midnight Commander use el valor de la variable de entorno
 .B TERMCAP
 para obtener la información del terminal, en vez de la base de datos de
@@ -3452,7 +3452,7 @@ el uso de color utilizando la base de datos de terminales y nuestro nombre de te
 estará confundido, por lo que deberemos forzar el modo en color o deshabilitar el modo de color
 usando el argumento \-c y \-b respectivamente.
 .PP
-Si el programa está compilado con el gestor pantallas Slang
+Si el programa está compilado con el gestor pantallas S\-Lang
 en lugar de ncurses, también chequeará la variable
 .BR COLORTERM ,
 si existe, lo que tiene el mismo efecto que la opción \-c.
@@ -3471,7 +3471,7 @@ color_terminals=linux,xterm
 color_terminals=nombre\-terminal1,nombre\-terminal2...
 .fi
 .PP
-El programa puede compilarse con ncurses y slang, ncurses no
+El programa puede compilarse con ncurses y S\-Lang, ncurses no
 ofrece la posibilidad de forzar el modo en color: ncurses utiliza la
 información de la base de datos de terminales.
 .PP
@@ -3855,9 +3855,9 @@ líneas dobles).
 .PP
 .I ¡¡¡ATENCIÓN!!!
 Si se compila Midnight Commander empleando la biblioteca de pantalla
-Ncurses, entonces el trazado de líneas está limitado. Es posible que
+ncurses, entonces el trazado de líneas está limitado. Es posible que
 solo se puedan utilizar líneas simples. Para consultas y comentarios
-contactar con los desarrolladores de Ncurses.
+contactar con los desarrolladores de ncurses.
 
 .PP
 Descripción de parámetros de la sección

+ 3 - 3
doc/man/hu/mc.1.in

@@ -78,7 +78,7 @@ a sok energiát felemésztő vonal karaktereket és az un. bővített módot
 kikapcsolja.
 .TP
 .I "\-t"
-Ezt csak akkor használd, ha Slang\-gel és terminfo\-val fordítottad a
+Ezt csak akkor használd, ha S\-Lang\-gel és terminfo\-val fordítottad a
 programot: a
 .B TERMCAP
 váltózó értékét használja, és nem a rendszer szintű terminál adatbázist.
@@ -2898,7 +2898,7 @@ a terminál név segítségével. Néha ez összezavarodhat, ezért
 előfordulhat, hogy neked kell megmondanod azt, hogy színes, vagy
 színtelen módot használjon a \-c illetve a \-b kiegészítéssel.
 .PP
-Ha a programot a Slang képernyő kezelővel fordították az ncurses
+Ha a programot a S\-Lang képernyő kezelővel fordították az ncurses
 helyett, szintén le fogja ellenőrizni a
 .B COLORTERM
 változó értékét, ha be van állítva, ez olyan hatású, mintha a \-c flaggal
@@ -2916,7 +2916,7 @@ color_terminals=linux,xterm
 color_terminals=terminal\-name1,terminal\-name2...
 .fi
 .PP
-A program mindkét opcióval fordítható (ncurses és slang).  Az ncurses nem
+A program mindkét opcióval fordítható (ncurses és S\-Lang).  Az ncurses nem
 jelent feltétlenül színes üzemmódot; csak a terminál adatbázist használja.
 .PP
 A Midnight Commander lehetőséget nyújt az alapértelmezett színek

+ 3 - 3
doc/man/it/mc.1.in

@@ -93,7 +93,7 @@ Abilita il modo terminale lento, in questa modalità il programma
 non disegna le linee e disabilita la modalità prolissa.
 .TP
 .I "\-t"
-Usata solo se il codice è stato compilato con Slang e terminfo: fa
+Usata solo se il codice è stato compilato con S\-Lang e terminfo: fa
 in modo che il Midnight Commander usi il valore della variabile
 .B TERMCAP
 per le informazioni sul terminale invece delle informazioni di sistema
@@ -2904,7 +2904,7 @@ terminale corrente. Capita che possa sbagliarsi, perciò si può essere
 costretti a forzare la modalità a colori o a disabilitarla usando
 rispettivamente le opzioni \-c e \-b.
 .PP
-Se il programma è compilato con il manager dello schermo Slang invece
+Se il programma è compilato con il manager dello schermo S\-Lang invece
 che ncurses, controllerà se è impostata anche la variabile
 .B COLORTERM,
 con lo stesso effetto dell'opzione \-c.
@@ -2924,7 +2924,7 @@ color_terminals=nome_terminale\-1,nome\-terminale\-2...
 .fi
 .PP
 Il programma può essere compilato sia con il supporto di ncurses che
-di slang ma ncurses non fornisce alcun modo per forzare la modalità
+di S\-Lang ma ncurses non fornisce alcun modo per forzare la modalità
 colore: ncurses userà solo le informazioni nel database dei terminali.
 .PP
 Il Midnight Commander fornisce un modo per cambiare i colori predefiniti.

+ 12 - 55
doc/man/mc.1.in

@@ -5,7 +5,7 @@
 .SH "NAME"
 mc \- Visual shell for Unix\-like systems.
 .\"SKIP_SECTION"
-.SH "USAGE"
+.SH "SYNOPSIS"
 .B mc
 [\-abcCdfhPstuUVx] [\-l log] [dir1 [dir2]] [\-e [file] ...] [\-v file]
 .\"NODE "DESCRIPTION"
@@ -88,51 +88,8 @@ the last directory Midnight Commander was in. Source the file
 as an alias to the appropriate shell script.
 .TP
 .I \-s, \-\-slow
-Set alternative mode drawing of frameworks.
-If the section [Lines] is not filled, the symbol for the pseudographics
-frame is a space, otherwise the frame characters are taken from following
-parameters.
-
-.B You can redefine the following variables:
-.TP
-.B lefttop
-left\-top corner
-.TP
-.B righttop
-right\-top corner
-.TP
-.B centertop
-center\-top cross
-.TP
-.B centerbottom
-center\-bottom cross
-.TP
-.B leftbottom
-left\-bottom corner
-.TP
-.B rightbottom
-right\-bottom corner
-.TP
-.B leftmiddle
-left\-middle cross
-.TP
-.B rightmiddle
-right\-middle cross
-.TP
-.B centermiddle
-center cross
-.TP
-.B horiz
-default horizontal line
-.TP
-.B vert
-default vertical line
-.TP
-.B thinhoriz
-thin horizontal line
-.TP
-.B thinvert
-thin vertical line
+Turn on the slow terminal mode, in this mode the program will not draw
+expensive line drawing characters and will toggle verbose mode off.
 .TP
 .I \-S arg, \-\-skin=arg
 Specify a name of skin in the command line. Technology of skins is
@@ -143,7 +100,7 @@ Skins
 section.
 .TP
 .I \-t, \-\-termcap
-Used only if the code was compiled with Slang and terminfo: it makes
+Used only if the code was compiled with S\-Lang and terminfo: it makes
 Midnight Commander use the value of the
 .B TERMCAP
 variable for the terminal information instead of the information on
@@ -3423,7 +3380,7 @@ Extfs filesystems can be divided into two categories:
 1. Stand\-alone filesystems, which are not associated with any existing
 file.  They represent certain system\-wide data as a directory tree.
 You can invoke them by typing
-.RI ' "cd fsname://" '
+.I "cd fsname://"
 where fsname is an extfs short name (see below).  Examples of such
 filesystems include audio (list audio tracks on the CD) or apt (list of
 all Debian packages in the system).
@@ -3439,7 +3396,7 @@ contents of a file as a directory tree.  It can consist of 'real' files
 compressed in an archive (urar, rpm) or virtual files, like messages
 in a mailbox (mailfs) or parts of a patch (patchfs).  To access such
 filesystems
-.RI ' fsname:// '
+.I fsname://
 should be appended to the archive name.  Note that the archive itself
 can be on another vfs.
 .PP
@@ -3534,7 +3491,7 @@ color using the terminal database and your terminal name.  Sometimes
 it gets confused, so you may force color mode or disable color mode
 using the \-c and \-b flag respectively.
 .PP
-If the program is compiled with the Slang screen manager instead of
+If the program is compiled with the S\-Lang screen manager instead of
 ncurses, it will also check the variable
 .B COLORTERM,
 if it is set, it has the same effect as the \-c flag.
@@ -3552,7 +3509,7 @@ color_terminals=linux,xterm
 color_terminals=terminal\-name1,terminal\-name2...
 .fi
 .PP
-The program can be compiled with both ncurses and slang, ncurses does
+The program can be compiled with both ncurses and S\-Lang, ncurses does
 not provide a way to force color mode: ncurses uses just the
 information in the terminal database.
 .PP
@@ -3962,10 +3919,10 @@ into skin\-file. By default single lines are used, but you may redefine
 to usage of any utf\-8 symbols (like to lines, for example).
 .PP
 .I WARNING!!!
-When you build Midnight Commander with the Ncurses screen library
+When you build Midnight Commander with the ncurses screen library
 usage of drawing lines is limited!
 Possible only drawing a single lines.
-For all questions and comments please contact the developers of Ncurses.
+For all questions and comments please contact the developers of ncurses.
 
 .PP
 Descriptions of parameters
@@ -4300,7 +4257,7 @@ everywhere).
 .SH "FILES"
 Full paths below may vary between installations.  They are also affected
 by the
-.BR MC_DATADIR
+.B MC_DATADIR
 environment variable. If it's set, its value is used instead of
 %prefix%/share/mc in the paths below.
 .PP
@@ -4363,7 +4320,7 @@ Local user\-defined menu. If this file is present, it is used instead of
 the home or system\-wide applications menu.
 .PP
 To change default root directory of MC, you can use
-.BR MC_PROFILE_ROOT
+.B MC_PROFILE_ROOT
 environment variable. The value of MC_PROFILE_ROOT must be an absolute path.
 If MC_PROFILE_ROOT is unset or empty, HOME variable is used. If HOME is unset
 or empty, MC directories are get from GLib library.

+ 1 - 1
doc/man/mcedit.1.in

@@ -1,7 +1,7 @@
 .TH MCEDIT 1 "%DATE_OF_MAN_PAGE%" "MC Version %DISTR_VERSION%" "GNU Midnight Commander"
 .SH NAME
 mcedit \- Internal file editor of GNU Midnight Commander.
-.SH USAGE
+.SH SYNOPSIS
 .B mcedit
 [\-bcCdfhstVx?] [+lineno] [file1] [file2] ...
 .PP

+ 1 - 1
doc/man/mcview.1.in

@@ -1,7 +1,7 @@
 .TH MCVIEW 1 "%DATE_OF_MAN_PAGE%" "MC Version %DISTR_VERSION%" "GNU Midnight Commander"
 .SH NAME
 mcview \- Internal file viewer of GNU Midnight Commander.
-.SH USAGE
+.SH SYNOPSIS
 .B mcview
 [\-bcCdfhstVx?] file
 .SH DESCRIPTION

+ 3 - 3
doc/man/pl/mc.1.in

@@ -80,7 +80,7 @@ Włącza tryb powolnego terminala, w którym program nie będzie rysował zbyt
 obciążających znaków graficznych oraz wyłączy opcję weryfikacji.
 .TP
 .I \-t
-Używane tylko jeśli kod był skompilowany przy użyciu Slanga i terminfo:
+Używane tylko jeśli kod był skompilowany przy użyciu S\-Langa i terminfo:
 powoduje, że Midnight Commander będzie używać zmiennej środowiskowej
 .B TERMCAP
 do pokazywania informacji terminala, zamiast informacji w systemowej bazie
@@ -2572,7 +2572,7 @@ kolory używając bazy danych terminali. Czasami jest to zmieniane
 przez różne flagi startowe, np. możesz wymusić wyświetlanie czarno\-białe
 lub kolorowe startując z opcją odpowiednio \-b i \-c.
 .PP
-Jeśli program jest skompilowany z menedżerem ekranu Slang zamiast ncurses,
+Jeśli program jest skompilowany z menedżerem ekranu S\-Lang zamiast ncurses,
 sprawdzi on również wartość zmiennej
 .BR COLORTERM .
 Jeśli jest ustawiona, ma takie samo znaczenie jak opcja \-c.
@@ -2590,7 +2590,7 @@ color_terminals=linux,xterm
 color_terminals=terminal\-name1,terminal\-name2...
 .fi
 .PP
-Program może być skompilowany zarówno z bibliotekami slang jak i ncurses.
+Program może być skompilowany zarówno z bibliotekami S\-Lang jak i ncurses.
 Ncurses nie obsługuje metody wymuszania wyświetlania, zawsze sprawdza w bazie danych
 terminali.
 .PP

Некоторые файлы не были показаны из-за большого количества измененных файлов