⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpedit.html

📁 debug source code under unix platform.
💻 HTML
字号:
Content-type: text/html<HTML><HEAD><TITLE>Manpage of MPEDIT</TITLE></HEAD><BODY><H1>MPEDIT</H1>Section: mpatrol library (1)<BR>Updated: 8 January 2002<BR><A HREF="#index">Index</A><A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR><A NAME="lbAB">&nbsp;</A><H2>NAME</H2>mpedit - edits a text file at a specific line number in a new window<A NAME="lbAC">&nbsp;</A><H2>SYNOPSIS</H2><B>mpedit</B> [<I>options</I>] [<I>sourcefile</I> [<I>linenumber</I>]]<A NAME="lbAD">&nbsp;</A><H2>DESCRIPTION</H2>The <B>mpedit</B> command is used to invoke a text editor on a given source fileand optionally jump to a specific line number.  It is used as a support commandby the mpatrol library when the <B>EDIT</B> or <B>LIST</B> options are used but itcan quite easily be used as a command in its own right if properly configured.Because it is a shell script it can be easily configured to support othereditors, but this unfortunately limits it to UNIX platforms at the moment.<P>The <I>sourcefile</I> argument must be the filename of the source file to beedited or listed.  If the source file does not exist then the contents of the<B>MPATROL_SOURCEPATH</B> environment variable will be used to help locate thesource file, even if the filename contained an absolute or relative pathcomponent.  This environment variable should consist of a colon-separated listof directory names which may contain absolute paths or be relative to thecurrent directory; the first directory in the list will be searched first.  Ifthe <B>MPATROL_SOURCEPATH</B> environment variable is not set then only thecurrent directory will be searched.<P>If the <I>linenumber</I> argument is omitted then it is assumed to be <I>1</I>.The text editor will attempt to jump to the specified line after opening thesource file.  The text editor that <B>mpedit</B> uses is controlled by settingthe <B>EDITOR</B> environment variable.  This can be set to the full pathname ofthe text editor to use or it can be set to the command that would normally beused to invoke the text editor, but it cannot also contain command line options.<P>The currently supported editors are <B>vi</B>, <B>vim</B>, <B>elvis</B>,<B>emacs</B>, <B>xemacs</B>, <B>pico</B> and <B>nano</B>, and if the <B>EDITOR</B>environment variable is not set then the default will be <B>vi</B>.  Selecting anunsupported text editor will result in an error.  However, you can edit the<B>mpedit</B> file to add support for your own favourite text editor as long asit supports a way to immediately jump to a specific line number when it is firststarted up.  Note that the text editor must also open a new window to edit thesource file so that it does not obscure any mpatrol diagnostic messages, and ifit does not support this then a new terminal window must be opened for it touse.<P>If the <B>--listing</B> option is given on the command line then the<B>mpedit</B> command will display a context listing of the source file at thespecified line number to the standard error output stream instead of invokingthe text editor.  The listing will be annotated with line numbers and will alsoshow the contents of the five lines before and after the specified line ifpossible.<A NAME="lbAE">&nbsp;</A><H2>OPTIONS</H2><DL COMPACT><DT><B>--editor</B> &lt;<I>filename</I>&gt; [<B>-e</B>]<DD>Specifies the text editor to use.  This overrides the contents of the<B>EDITOR</B> environment variable.<DT><B>--help</B> [<B>-h</B>]<DD>Displays a quick-reference option summary.<DT><B>--listing</B> [<B>-l</B>]<DD>Displays a context listing of the source line instead of invoking the texteditor.<DT><B>--source-dir</B> &lt;<I>directory</I>&gt; [<B>-I</B>]<DD>Adds a directory to the search path used to locate the source file.  Multiple<B>--source-dir</B> options may be given, and each will be prepended to the<B>MPATROL_SOURCEPATH</B> environment variable in the order given on the commandline.<DT><B>--version</B> [<B>-V</B>]<DD>Displays the version number of the <B>mpedit</B> command.</DL><A NAME="lbAF">&nbsp;</A><H2>SEE ALSO</H2><B><A HREF="http://localhost/cgi-bin/man/man2html?1+mpatrol">mpatrol</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+mprof">mprof</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+mptrace">mptrace</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+mleak">mleak</A></B>(1),<B><A HREF="http://localhost/cgi-bin/man/man2html?1+mpsym">mpsym</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+hexwords">hexwords</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+vi">vi</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+vim">vim</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+elvis">elvis</A></B>(1),<B><A HREF="http://localhost/cgi-bin/man/man2html?1+emacs">emacs</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+xemacs">xemacs</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+pico">pico</A></B>(1), <B><A HREF="http://localhost/cgi-bin/man/man2html?1+nano">nano</A></B>(1),<B><A HREF="http://localhost/cgi-bin/man/man2html?3+libmpatrol">libmpatrol</A></B>(3), <B><A HREF="http://localhost/cgi-bin/man/man2html?3+libmpalloc">libmpalloc</A></B>(3).<P>The mpatrol manual and reference card.<P><A HREF="http://www.cbmamiga.demon.co.uk/mpatrol/">http://www.cbmamiga.demon.co.uk/mpatrol/</A><A NAME="lbAG">&nbsp;</A><H2>AUTHOR</H2>Graeme S. Roy &lt;<A HREF="mailto:graeme.roy@analog.com">graeme.roy@analog.com</A>&gt;<A NAME="lbAH">&nbsp;</A><H2>COPYRIGHT</H2>Copyright (C) 1997-2002 Graeme S. Roy &lt;<A HREF="mailto:graeme.roy@analog.com">graeme.roy@analog.com</A>&gt;<P>This library is free software; you can redistribute it and/or modify it underthe terms of the GNU Library General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at your option) anylater version.<P>This library is distributed in the hope that it will be useful, but WITHOUTANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESSFOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for moredetails.<P>You should have received a copy of the GNU Library General Public Licensealong with this library; if not, write to the Free Software Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.<P><HR><A NAME="index">&nbsp;</A><H2>Index</H2><DL><DT><A HREF="#lbAB">NAME</A><DD><DT><A HREF="#lbAC">SYNOPSIS</A><DD><DT><A HREF="#lbAD">DESCRIPTION</A><DD><DT><A HREF="#lbAE">OPTIONS</A><DD><DT><A HREF="#lbAF">SEE ALSO</A><DD><DT><A HREF="#lbAG">AUTHOR</A><DD><DT><A HREF="#lbAH">COPYRIGHT</A><DD></DL><HR>This document was created by<A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,using the manual pages.<BR>Time: 23:42:08 GMT, January 08, 2002</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -