Ticket #1462: 24_mcedit.patch

File 24_mcedit.patch, 8.0 KB (added by narcan, 15 years ago)
  • doc/man/mcedit.1.in

    Fix hyphen-used-as-minus-sign
    old new  
    1 .TH MCEDIT 1 "August 2009" "MC Version 4.7.0-pre1" "GNU Midnight Commander" 
     1.TH MCEDIT 1 "August 2009" "MC Version 4.7.0\-pre1" "GNU Midnight Commander" 
    22.SH NAME 
    33mcedit \- Internal file editor of GNU Midnight Commander. 
    44.SH USAGE 
     
    4242Disable mouse support. 
    4343.TP 
    4444.I "\-f" 
    45 Display the compiled-in search path for GNU Midnight Commander data 
     45Display the compiled\-in search path for GNU Midnight Commander data 
    4646files. 
    4747.TP 
    4848.I "\-t" 
    4949Force using termcap database instead of terminfo.  This option is only 
    50 applicable if GNU Midnight Commander was compiled with S-Lang library 
     50applicable if GNU Midnight Commander was compiled with S\-Lang library 
    5151with terminfo support. 
    5252.TP 
    5353.I "\-V" 
    5454Display the version of the program. 
    5555.TP 
    5656.I "\-x" 
    57 Force xterm mode.  Used when running on xterm-capable terminals (two 
     57Force xterm mode.  Used when running on xterm\-capable terminals (two 
    5858screen modes, and able to send mouse escape sequences). 
    5959.SH FEATURES 
    60 The internal file editor is a full-featured full screen editor.  It can 
     60The internal file editor is a full\-featured full screen editor.  It can 
    6161edit files up to 64 megabytes.  It is possible to edit binary files.  
    6262The features it presently supports are: block copy, move, delete, cut, 
    63 paste; key for key undo; pull-down menus; file insertion; macro 
     63paste; key for key undo; pull\-down menus; file insertion; macro 
    6464commands; regular expression search and replace (and our own 
    65 scanf-printf search and replace); shift-arrow text highlighting (if 
    66 supported by the terminal); insert-overwrite toggle; word wrap; 
     65scanf\-printf search and replace); shift\-arrow text highlighting (if 
     66supported by the terminal); insert\-overwrite toggle; word wrap; 
    6767autoindent; tunable tab size; syntax highlighting for various file 
    6868types; and an option to pipe text blocks through shell commands like 
    6969indent and ispell. 
    7070.SH KEYS 
    7171The editor is easy to use and can be used without learning.  The 
    72 pull-down menu is invoked by pressing F9.  You can learn other keys from 
     72pull\-down menu is invoked by pressing F9.  You can learn other keys from 
    7373the menu and from the button bar labels. 
    7474.PP 
    7575In addition to that, Shift combined with arrows does text highlighting 
    7676(if supported by the terminal): 
    77 .B Ctrl-Ins 
     77.B Ctrl\-Ins 
    7878copies to the file 
    7979.BR ~/.mc/cedit/cooledit.clip , 
    80 .B Shift-Ins 
     80.B Shift\-Ins 
    8181pastes from 
    8282.BR ~/.mc/cedit/cooledit.clip , 
    83 .B Shift-Del 
     83.B Shift\-Del 
    8484cuts to 
    8585.BR ~/.mc/cedit/cooledit.clip , 
    8686and 
    87 .B Ctrl-Del 
     87.B Ctrl\-Del 
    8888deletes highlighted text.  Mouse highlighting also works on some 
    8989terminals.  To use the standard mouse support provided by your terminal, 
    9090hold the Shift key.  Please note that the mouse support in the terminal 
     
    9292.BR mcedit . 
    9393.PP 
    9494The completion key (usually 
    95 .B "Meta-Tab" 
     95.B "Meta\-Tab" 
    9696or 
    9797.BR "Escape Tab" ) 
    9898completes the word under the cursor using the words used earlier in the 
    9999file. 
    100100.PP 
    101101To define a macro, press 
    102 .B Ctrl-R 
     102.B Ctrl\-R 
    103103and then type out the keys you want to be executed.  Press 
    104 .B Ctrl-R 
     104.B Ctrl\-R 
    105105again when finished.  You can then assign the macro to any key you like 
    106106by pressing that key.  The macro is executed when you press 
    107 .B Ctrl-A 
     107.B Ctrl\-A 
    108108and then the assigned key.  The macro is also executed if you press 
    109109Meta, Ctrl, or Esc and the assigned key, provided that the key is not 
    110110used for any other function.  The macro commands are stored in the file 
     
    125125will be created for you from the default template.  Feel free to edit it 
    126126if you need. 
    127127.PP 
    128 .B C-p 
     128.B C\-p 
    129129will run ispell on a block of text in a similar way.  The script file 
    130130will be called 
    131131.BR ~/.mc/cedit/edit.spell.rc . 
     
    139139.B mcedit 
    140140can be used to navigation through code with tags files created by etags 
    141141or ctags commands. If there is no file TAGS code navigation would not work. 
    142 In example, in case of exuberant-ctags for C language command will be: 
     142In example, in case of exuberant\-ctags for C language command will be: 
    143143.PP 
    144 ctags -e --language-force=C -R ./ 
     144ctags \-e \-\-language\-force=C \-R ./ 
    145145.PP 
    146 .B Meta-Enter  
     146.B Meta\-Enter  
    147147show list box to select item under cursor (cusor should stand at end of 
    148148word). 
    149149.PP 
    150 .B Meta-Minus  
    151 where minus is symbol "-" go to previous function in navigation list (like a browser 
     150.B Meta\-Minus  
     151where minus is symbol "\-" go to previous function in navigation list (like a browser 
    152152Back). 
    153153.PP 
    154 .B Meta-Equal 
     154.B Meta\-Equal 
    155155where equal is symbol "=" go to next function in navigation list (like a browser 
    156156Forward). 
    157157.PP 
     
    161161(like C comments, string constants, etc) are highlighted in different 
    162162colors.  The following section explains the format of the file 
    163163.BR ~/.mc/cedit/Syntax . 
    164 If this file is missing, system-wide 
     164If this file is missing, system\-wide 
    165165.B @prefix@/share/mc/syntax/Syntax 
    166166is used. 
    167167The file 
     
    452452.TP 
    453453.I editor_line_state 
    454454show state line of editor now it show number of file line (in future it 
    455 can show things like folding, breakpoints, etc.). M-n toglle this option. 
     455can show things like folding, breakpoints, etc.). M\-n toglle this option. 
    456456.TP 
    457457.I editor_visible_spaces 
    458458Toggle show visible trailing spaces (TWS), if editor_visible_spaces=1 TWS 
    459459showed as '.' 
    460460.TP 
    461461.I editor_visible_tabs 
    462 Toggle show visible tabs, if editor_visible_tabs=1 tabs showed as '<---->' 
     462Toggle show visible tabs, if editor_visible_tabs=1 tabs showed as '<\-\-\-\->' 
    463463.TP 
    464464.I editor_persistent_selections 
    465465Do not remove block selection after moving the cursor. 
     
    480480save file position on exit. 
    481481.TP 
    482482.I source_codepage 
    483 symbol representation of codepage name for file (i.e. CP1251, ~ - default). 
     483symbol representation of codepage name for file (i.e. CP1251, ~ \- default). 
    484484.SH MISCELLANEOUS 
    485485You can use scanf search and replace to search and replace a C format 
    486486string.  First take a look at the 
     
    515515treats whitespace as being elastic.  Note that the scanf format %[ is 
    516516very useful for scanning strings, and whitespace. 
    517517.PP 
    518 The editor also displays non-us characters (160+).  When editing 
     518The editor also displays non\-us characters (160+).  When editing 
    519519binary files, you should set 
    520520.B display bits 
    521521to 7 bits in the Midnight Commander options menu to keep the spacing 
     
    527527.PP 
    528528.I @prefix@/share/mc/mc.ini 
    529529.IP 
    530 The default system-wide setup for GNU Midnight Commander, used only if 
     530The default system\-wide setup for GNU Midnight Commander, used only if 
    531531the user's own ~/.mc/ini file is missing. 
    532532.PP 
    533533.I @prefix@/share/mc/mc.lib 
     
    537537.PP 
    538538.I @prefix@/share/mc/syntax/* 
    539539.IP 
    540 The default system-wide syntax files for mcedit, used only if 
     540The default system\-wide syntax files for mcedit, used only if 
    541541the corresponding user's own ~/.mc/cedit/ file is missing. 
    542542.PP 
    543543.I $HOME/.mc/ini 
    544544.IP 
    545545User's own setup.  If this file is present then the setup is loaded 
    546 from here instead of the system-wide setup file. 
     546from here instead of the system\-wide setup file. 
    547547.PP 
    548548.I $HOME/.mc/cedit/ 
    549549.IP 
     
    551551user's own syntax files are located. 
    552552.SH LICENSE 
    553553This program is distributed under the terms of the GNU General Public 
    554 License as published by the Free Software Foundation.  See the built-in 
     554License as published by the Free Software Foundation.  See the built\-in 
    555555help of the Midnight Commander for details on the License and the lack 
    556556of warranty. 
    557557.SH AVAILABILITY 
    558558The latest version of this program can be found at 
    559 http://midnight-commander.org/. 
     559http://midnight\-commander.org/. 
    560560.SH SEE ALSO 
    561561cooledit(1), mc(1), gpm(1), terminfo(1), scanf(3). 
    562562.SH AUTHORS 
    563563Paul Sheer (psheer@obsidian.co.za) is the original author of 
    564564the Midnight Commander's internal editor. 
    565565.SH BUGS 
    566 Bugs should be reported to mc-devel@gnome.org 
     566Bugs should be reported to mc\-devel@gnome.org