1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
<html lang="en">
<head>
<title>Ranges - The MH-E Manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="The MH-E Manual">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Using-This-Manual.html#Using-This-Manual" title="Using This Manual">
<link rel="prev" href="Options.html#Options" title="Options">
<link rel="next" href="Folder-Selection.html#Folder-Selection" title="Folder Selection">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This is version 8.0.3 of `The MH-E
Manual', last updated 2006-11-12.
Copyright (C) 1995, 2001, 2002, 2003, 2005, 2006 Free
Software Foundation, Inc.
The MH-E manual is free documentation; you can redistribute it
and/or modify it under the terms of either:
a. the GNU Free Documentation License, Version 1.2 or any later
version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts.
b. the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option)
any later version.
The MH-E manual is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License or GNU Free Documentation License for more
details.
The GNU General Public License and the GNU Free Documentation
License appear as appendices to this document. You may also
request copies by writing to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="Ranges"></a>
Next: <a rel="next" accesskey="n" href="Folder-Selection.html#Folder-Selection">Folder Selection</a>,
Previous: <a rel="previous" accesskey="p" href="Options.html#Options">Options</a>,
Up: <a rel="up" accesskey="u" href="Using-This-Manual.html#Using-This-Manual">Using This Manual</a>
<hr>
</div>
<h3 class="section">4.2 Ranges</h3>
<!-- Sync with mh-folder-mode docstring. -->
<p><a name="index-message-abbreviations-235"></a><a name="index-message-ranges-236"></a><a name="index-ranges-237"></a>
Many commands that operate on individual messages, such as
<code>mh-forward</code> or <code>mh-refile-msg</code> take a <code>RANGE</code>
argument. This argument can be used in several ways.
<p><a name="index-C_002du_002c-with-ranges-238"></a>
If you provide the prefix argument <kbd>C-u</kbd> to these commands, then
you will be prompted for the message range. This can be any valid MH
range which can include messages, sequences (see <a href="Sequences.html#Sequences">Sequences</a>), and
the abbreviations (described in the <samp><span class="command">mh</span></samp>(1) man page):
<dl>
<dt>`<samp><span class="samp"><num1>-<num2></span></samp>'<dd>Indicates all messages in the range <num1> to <num2>, inclusive. The
range must be nonempty.
<!-- -->
<br><dt>`<samp><span class="samp"><num>:N</span></samp>'<dt>`<samp><span class="samp"><num>:+N</span></samp>'<dt>`<samp><span class="samp"><num>:-N</span></samp>'<dd>Up to N messages beginning with (or ending with) message num. Num may
be any of the predefined symbols: first, prev, cur, next or last.
<!-- -->
<br><dt>`<samp><span class="samp">first:N</span></samp>'<dt>`<samp><span class="samp">prev:N</span></samp>'<dt>`<samp><span class="samp">next:N</span></samp>'<dt>`<samp><span class="samp">last:N</span></samp>'<dd>The first, previous, next or last messages, if they exist.
<!-- -->
<br><dt>`<samp><span class="samp">all</span></samp>'<dd>All of the messages.
</dl>
<p>For example, a range that shows all of these things is `<samp><span class="samp">1 2 3
5-10 last:5 unseen</span></samp>'.
<p><a name="index-transient_002dmark_002dmode-239"></a>
If the option <code>transient-mark-mode</code> is turned on and you set a
region in the MH-Folder buffer, then the MH-E command will perform the
operation on all messages in that region.
<p><a name="index-g_t_0040samp_007bmh_002drange_007d-customization-group-240"></a><a name="index-customization-group_002c-_0040samp_007bmh_002drange_007d-241"></a>
The `<samp><span class="samp">mh-range</span></samp>' customization group contains a single option which
affects how ranges are interpreted.
<dl>
<dt><code>mh-interpret-number-as-range-flag</code><a name="index-mh_002dinterpret_002dnumber_002das_002drange_002dflag-242"></a><dd>On means interpret a number as a range (default: `<samp><span class="samp">on</span></samp>').
</dl>
<p><a name="index-mh_002dinterpret_002dnumber_002das_002drange_002dflag-243"></a>
Since one of the most frequent ranges used is `<samp><span class="samp">last:N</span></samp>', MH-E will
interpret input such as `<samp><span class="samp">200</span></samp>' as `<samp><span class="samp">last:200</span></samp>' if the
<code>mh-interpret-number-as-range-flag</code> option is on (which is the
default). If you need to scan just the message 200, then use the range
`<samp><span class="samp">200:1</span></samp>' or `<samp><span class="samp">200-200</span></samp>'.
</body></html>
|