JezK
Edit File: Emacs-Editing.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- This manual is for GNU Texinfo (version 6.8, 8 June 2021), a documentation system that can produce both online information and a printed manual from a single source using semantic markup. Copyright (C) 1988, 1990-1993, 1995-1999, 2001-2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". --> <title>Emacs Editing (GNU Texinfo 6.8)</title> <meta name="description" content="Emacs Editing (GNU Texinfo 6.8)"> <meta name="keywords" content="Emacs Editing (GNU Texinfo 6.8)"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="texi2any"> <meta name="viewport" content="width=device-width,initial-scale=1"> <link href="index.html" rel="start" title="Top"> <link href="Command-and-Variable-Index.html" rel="index" title="Command and Variable Index"> <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> <link href="Texinfo-Mode.html" rel="up" title="Texinfo Mode"> <link href="Inserting.html" rel="next" title="Inserting"> <link href="Texinfo-Mode-Overview.html" rel="prev" title="Texinfo Mode Overview"> <style type="text/css"> <!-- a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em} a.summary-letter {text-decoration: none} blockquote.indentedblock {margin-right: 0em} div.display {margin-left: 3.2em} div.example {margin-left: 3.2em} kbd {font-style: oblique} pre.display {font-family: inherit} pre.format {font-family: inherit} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} span.nolinebreak {white-space: nowrap} span.roman {font-family: initial; font-weight: normal} span.sansserif {font-family: sans-serif; font-weight: normal} span:hover a.copiable-anchor {visibility: visible} ul.no-bullet {list-style: none} --> </style> </head> <body lang="en"> <div class="section" id="Emacs-Editing"> <div class="header"> <p> Next: <a href="Inserting.html" accesskey="n" rel="next">Inserting Frequently Used Commands</a>, Previous: <a href="Texinfo-Mode-Overview.html" accesskey="p" rel="prev">Texinfo Mode Overview</a>, Up: <a href="Texinfo-Mode.html" accesskey="u" rel="up">Using Texinfo Mode</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p> </div> <hr> <span id="The-Usual-GNU-Emacs-Editing-Commands"></span><h3 class="section">D.2 The Usual GNU Emacs Editing Commands</h3> <p>In most cases, the usual Text mode commands work the same in Texinfo mode as they do in Text mode. Texinfo mode adds new editing commands and tools to GNU Emacs’ general purpose editing features. The major difference concerns filling. In Texinfo mode, the paragraph separation variable and syntax table are redefined so that Texinfo commands that should be on lines of their own are not inadvertently included in paragraphs. Thus, the <kbd>M-q</kbd> (<code>fill-paragraph</code>) command will refill a paragraph but not mix an indexing command on a line adjacent to it into the paragraph. </p> <p>In addition, Texinfo mode sets the <code>page-delimiter</code> variable to the value of <code>texinfo-chapter-level-regexp</code>; by default, this is a regular expression matching the commands for chapters and their equivalents, such as appendices. With this value for the page delimiter, you can jump from chapter title to chapter title with the <kbd>C-x ]</kbd> (<code>forward-page</code>) and <kbd>C-x [</kbd> (<code>backward-page</code>) commands and narrow to a chapter with the <kbd>C-x n p</kbd> (<code>narrow-to-page</code>) command. (See <a data-manual="emacs" href="../emacs/Pages.html#Pages">Pages</a> in <cite>The GNU Emacs Manual</cite>, for details about the page commands.) </p> <p>You may name a Texinfo file however you wish, but the convention is to end a Texinfo file name with one of the extensions <samp>.texinfo</samp>, <samp>.texi</samp>, <samp>.txi</samp>, or <samp>.tex</samp>. A longer extension is preferred, since it is explicit, but a shorter extension may be necessary for operating systems that limit the length of file names. GNU Emacs automatically enters Texinfo mode when you visit a file with a <samp>.texinfo</samp>, <samp>.texi</samp> or <samp>.txi</samp> extension. Also, Emacs switches to Texinfo mode when you visit a file that has ‘<samp>-*-texinfo-*-</samp>’ in its first line. If ever you are in another mode and wish to switch to Texinfo mode, type <code>M-x texinfo-mode</code>. </p> <p>Like all other Emacs features, you can customize or enhance Texinfo mode as you wish. In particular, the keybindings are very easy to change. The keybindings described here are the default or standard ones. </p> </div> <hr> <div class="header"> <p> Next: <a href="Inserting.html">Inserting Frequently Used Commands</a>, Previous: <a href="Texinfo-Mode-Overview.html">Texinfo Mode Overview</a>, Up: <a href="Texinfo-Mode.html">Using Texinfo Mode</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p> </div> </body> </html>