File: UBU.html

package info (click to toggle)
acl2 3.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 36,712 kB
  • ctags: 38,396
  • sloc: lisp: 464,023; makefile: 5,470; sh: 86; csh: 47; cpp: 25; ansic: 22
file content (35 lines) | stat: -rw-r--r-- 1,898 bytes parent folder | download
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
<html>
<head><title>UBU.html  --  ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>UBU</h2>undo the <a href="COMMAND.html">command</a>s back up to (not including) a <a href="COMMAND.html">command</a> descriptor
<pre>Major Section:  <a href="HISTORY.html">HISTORY</a>
</pre><p>


<pre>
Examples:
:ubu :x-3      ; undo the last three commands (same as :ubt :x-2)
:ubu (:x -3)   ; same as above
:ubu fn        ; undo back up to, but not including the introduction of fn
               ; (so fn will continue to be defined)
:ubu 5         ; undo back up to, but not including, the fifth command
               ; executed (leaving the first five commands in place)
</pre>

See <a href="COMMAND-DESCRIPTOR.html">command-descriptor</a>.
<p>
<code>Ubu</code> takes one argument, a <a href="COMMAND.html">command</a> descriptor, and undoes the
<a href="COMMAND.html">command</a>s from <code>:</code><code><a href="MAX.html">max</a></code> (aka <code>:x</code>) up to, but not including, the
indicated command.  See <a href="COMMAND-DESCRIPTOR.html">command-descriptor</a>.<p>

<code>Ubu</code> can cause errors or queries.  To avoid these, see <a href="UBU_bang_.html">ubu!</a>.<p>

Also see <a href="UBT.html">ubt</a>, which is similar but also undoes the indicated command.  As
for <code>:</code><code><a href="UBT.html">ubt</a></code>, <code>:</code><code><a href="OOPS.html">oops</a></code> will undo the undo (see <a href="OOPS.html">oops</a>) and
<code><a href="UBU.html">ubu</a></code> will not undo into ``prehistory''.<p>

See <a href="U.html">u</a> for how to undo just the latest command, and see <a href="UBT.html">ubt</a> and see <a href="UBT_bang_.html">ubt!</a> for
how to undo back through (that is, including) the current command.
<br><br><br><a href="acl2-doc.html"><img src="llogo.gif"></a> <a href="acl2-doc-index.html"><img src="index.gif"></a>
</body>
</html>