remove the global DOS/Mac format toggles, for consistency with other
file operations like Append/Prepend that are specific to the "Write File" prompt, and change the Mac format toggle to Meta-M, since that no longer conflicts with the mouse support toggle; update the documentation accordingly git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2023 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
e93e03e1dc
Коммит
cfa4a9c4fe
12
ChangeLog
12
ChangeLog
@ -71,7 +71,12 @@ CVS code -
|
|||||||
read_file(), add_open_file(), and load_open_file(). (DLR,
|
read_file(), add_open_file(), and load_open_file(). (DLR,
|
||||||
suggested by Bill Soudan)
|
suggested by Bill Soudan)
|
||||||
- Remove the -D/--dos and -M/--mac command line options, as they
|
- Remove the -D/--dos and -M/--mac command line options, as they
|
||||||
aren't much use with the new file format autodetection. (DLR)
|
aren't much use with the new file format autodetection. Also
|
||||||
|
remove the global versions of the toggles, so that they can
|
||||||
|
only be used at the "Write File" prompt as similar options
|
||||||
|
can. Finally, change the Mac format toggle to Meta-M, since
|
||||||
|
that no longer conflicts with the global -m/--mouse toggle.
|
||||||
|
(DLR)
|
||||||
- Add support for reading in UTF-8 sequences to the low-level
|
- Add support for reading in UTF-8 sequences to the low-level
|
||||||
input routines. Changes to get_kbinput() and
|
input routines. Changes to get_kbinput() and
|
||||||
get_translated_kbinput(). (DLR)
|
get_translated_kbinput(). (DLR)
|
||||||
@ -295,9 +300,12 @@ CVS code -
|
|||||||
- README.CVS:
|
- README.CVS:
|
||||||
- Mention the requirement for glib 2.x on systems lacking
|
- Mention the requirement for glib 2.x on systems lacking
|
||||||
v?snprintf(), and add minor formatting changes.
|
v?snprintf(), and add minor formatting changes.
|
||||||
- nano.1, nano.texi
|
- nano.1:
|
||||||
- Eliminate references to the now removed -D/--dos and -M/--mac
|
- Eliminate references to the now removed -D/--dos and -M/--mac
|
||||||
command line options. (DLR)
|
command line options. (DLR)
|
||||||
|
- nano.texi:
|
||||||
|
- Eliminate references to the now removed -D/--dos and -M/--mac
|
||||||
|
command line options, and their corresponding toggles. (DLR)
|
||||||
- m4/glib-2.0.m4:
|
- m4/glib-2.0.m4:
|
||||||
- New file imported from glib 2.4.7. This is needed to detect
|
- New file imported from glib 2.4.7. This is needed to detect
|
||||||
glib 2.x on systems that may not have it installed. (DLR,
|
glib 2.x on systems that may not have it installed. (DLR,
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
.\" Public License for copying conditions. There is NO warranty.
|
.\" Public License for copying conditions. There is NO warranty.
|
||||||
.\"
|
.\"
|
||||||
.\" $Id$
|
.\" $Id$
|
||||||
.TH NANO 1 "version 1.3.4" "August 17, 2004"
|
.TH NANO 1 "version 1.3.4" "October 24, 2004"
|
||||||
.\" Please adjust this date whenever revising the manpage.
|
.\" Please adjust this date whenever revising the manpage.
|
||||||
.\"
|
.\"
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
@smallbook
|
@smallbook
|
||||||
@set EDITION 0.1
|
@set EDITION 0.1
|
||||||
@set VERSION 1.3.4
|
@set VERSION 1.3.4
|
||||||
@set UPDATED 17 Aug 2004
|
@set UPDATED 24 Oct 2004
|
||||||
|
|
||||||
@dircategory Editors
|
@dircategory Editors
|
||||||
@direntry
|
@direntry
|
||||||
@ -342,9 +342,6 @@ The following global toggles are available:
|
|||||||
@item Backup File Toggle (Meta-B)
|
@item Backup File Toggle (Meta-B)
|
||||||
toggles the -B (@code{--backup}) command line flag.
|
toggles the -B (@code{--backup}) command line flag.
|
||||||
|
|
||||||
@item DOS Format Toggle (Meta-D)
|
|
||||||
toggles writing the file in DOS format.
|
|
||||||
|
|
||||||
@item Multiple Files Toggle (Meta-F)
|
@item Multiple Files Toggle (Meta-F)
|
||||||
toggles the -F (@code{--multibuffer}) command line flag.
|
toggles the -F (@code{--multibuffer}) command line flag.
|
||||||
|
|
||||||
@ -363,9 +360,6 @@ toggles the -w (@code{--nowrap}) command line flag.
|
|||||||
@item Mouse Toggle (Meta-M)
|
@item Mouse Toggle (Meta-M)
|
||||||
toggles the -m (@code{--mouse}) command line flag.
|
toggles the -m (@code{--mouse}) command line flag.
|
||||||
|
|
||||||
@item Mac Format Toggle (Meta-O)
|
|
||||||
toggles writing the file in Mac format.
|
|
||||||
|
|
||||||
@item Smooth Scrolling Toggle (Meta-S)
|
@item Smooth Scrolling Toggle (Meta-S)
|
||||||
toggles the -S (@code{--smooth}) command line flag.
|
toggles the -S (@code{--smooth}) command line flag.
|
||||||
|
|
||||||
|
12
src/global.c
12
src/global.c
@ -1074,17 +1074,13 @@ void toggle_init(void)
|
|||||||
#ifndef DISABLE_MOUSE
|
#ifndef DISABLE_MOUSE
|
||||||
toggle_init_one(TOGGLE_MOUSE_KEY, N_("Mouse support"), USE_MOUSE);
|
toggle_init_one(TOGGLE_MOUSE_KEY, N_("Mouse support"), USE_MOUSE);
|
||||||
#endif
|
#endif
|
||||||
/* If we're using restricted mode, the no-conversion, DOS format,
|
/* If we're using restricted mode, the no-conversion and backup
|
||||||
* Mac format, and backup toggles are disabled. The first, second,
|
* backup toggles are disabled. The former is useless since
|
||||||
* and third are useless since inserting files is disabled, and the
|
* inserting files is disabled, and the latter is useless since
|
||||||
* fourth is useless since backups are disabled. */
|
* backups are disabled. */
|
||||||
if (!ISSET(RESTRICTED)) {
|
if (!ISSET(RESTRICTED)) {
|
||||||
toggle_init_one(TOGGLE_NOCONVERT_KEY,
|
toggle_init_one(TOGGLE_NOCONVERT_KEY,
|
||||||
N_("No conversion from DOS/Mac format"), NO_CONVERT);
|
N_("No conversion from DOS/Mac format"), NO_CONVERT);
|
||||||
toggle_init_one(TOGGLE_DOS_KEY, N_("Writing file in DOS format"),
|
|
||||||
DOS_FILE);
|
|
||||||
toggle_init_one(TOGGLE_MAC_KEY, N_("Writing file in Mac format"),
|
|
||||||
MAC_FILE);
|
|
||||||
toggle_init_one(TOGGLE_BACKUP_KEY, N_("Backup files"), BACKUP_FILE);
|
toggle_init_one(TOGGLE_BACKUP_KEY, N_("Backup files"), BACKUP_FILE);
|
||||||
}
|
}
|
||||||
toggle_init_one(TOGGLE_SMOOTH_KEY, N_("Smooth scrolling"), SMOOTHSCROLL);
|
toggle_init_one(TOGGLE_SMOOTH_KEY, N_("Smooth scrolling"), SMOOTHSCROLL);
|
||||||
|
@ -2913,12 +2913,6 @@ void do_toggle(const toggle *which)
|
|||||||
edit_refresh();
|
edit_refresh();
|
||||||
display_main_list();
|
display_main_list();
|
||||||
break;
|
break;
|
||||||
case TOGGLE_DOS_KEY:
|
|
||||||
UNSET(MAC_FILE);
|
|
||||||
break;
|
|
||||||
case TOGGLE_MAC_KEY:
|
|
||||||
UNSET(DOS_FILE);
|
|
||||||
break;
|
|
||||||
#ifdef ENABLE_COLOR
|
#ifdef ENABLE_COLOR
|
||||||
case TOGGLE_SYNTAX_KEY:
|
case TOGGLE_SYNTAX_KEY:
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
|
@ -470,7 +470,7 @@ typedef struct historyheadtype {
|
|||||||
#define TOGGLE_CASE_KEY NANO_ALT_C
|
#define TOGGLE_CASE_KEY NANO_ALT_C
|
||||||
#define TOGGLE_MULTIBUFFER_KEY NANO_ALT_F
|
#define TOGGLE_MULTIBUFFER_KEY NANO_ALT_F
|
||||||
#define TOGGLE_DOS_KEY NANO_ALT_D
|
#define TOGGLE_DOS_KEY NANO_ALT_D
|
||||||
#define TOGGLE_MAC_KEY NANO_ALT_O
|
#define TOGGLE_MAC_KEY NANO_ALT_M
|
||||||
#define TOGGLE_SMOOTH_KEY NANO_ALT_S
|
#define TOGGLE_SMOOTH_KEY NANO_ALT_S
|
||||||
#define TOGGLE_NOCONVERT_KEY NANO_ALT_N
|
#define TOGGLE_NOCONVERT_KEY NANO_ALT_N
|
||||||
#define TOGGLE_BACKUP_KEY NANO_ALT_B
|
#define TOGGLE_BACKUP_KEY NANO_ALT_B
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user