diff options
| author | Michael Kifer | 2009-08-15 06:00:38 +0000 |
|---|---|---|
| committer | Michael Kifer | 2009-08-15 06:00:38 +0000 |
| commit | 9ff0b02b3a91a32c76a99a984f5d48cd77efa561 (patch) | |
| tree | df7c602584be6b632c540a8fddfd8dd52bc024ba /doc | |
| parent | 68b962d42a9cc126759448484d23e10e2102d622 (diff) | |
| download | emacs-9ff0b02b3a91a32c76a99a984f5d48cd77efa561.tar.gz emacs-9ff0b02b3a91a32c76a99a984f5d48cd77efa561.zip | |
2009-08-15 Michael Kifer <kifer@cs.stonybrook.edu>
* ediff.texi (ediff-current-file): added information about this new function.
* viper.text: Added information about C-s in viper's search command.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/misc/ediff.texi | 202 | ||||
| -rw-r--r-- | doc/misc/viper.texi | 71 |
3 files changed, 154 insertions, 125 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index e0fbe264175..6722fbd4705 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-08-15 Michael Kifer <kifer@cs.stonybrook.edu> | ||
| 2 | |||
| 3 | * ediff.texi (ediff-current-file): added information about this new function. | ||
| 4 | |||
| 5 | * viper.text: Added information about C-s in viper's search command. | ||
| 6 | |||
| 1 | 2009-08-09 Colin Williams <lackita@gmail.com> (tiny change) | 7 | 2009-08-09 Colin Williams <lackita@gmail.com> (tiny change) |
| 2 | 8 | ||
| 3 | * calc.texi (Date Forms): Fix typos. | 9 | * calc.texi (Date Forms): Fix typos. |
diff --git a/doc/misc/ediff.texi b/doc/misc/ediff.texi index 80540ea19e8..53259f9bbf6 100644 --- a/doc/misc/ediff.texi +++ b/doc/misc/ediff.texi | |||
| @@ -158,6 +158,11 @@ Compare a file with its backup. If there are several numerical backups, use | |||
| 158 | the latest. If the file is itself a backup, then compare it with its | 158 | the latest. If the file is itself a backup, then compare it with its |
| 159 | original. | 159 | original. |
| 160 | 160 | ||
| 161 | @item ediff-current-file | ||
| 162 | @findex ediff-current-file | ||
| 163 | Compare the buffer with its file on disk. This function can be used as a | ||
| 164 | safe version of @code{revert-buffer}. | ||
| 165 | |||
| 161 | @item ediff-buffers | 166 | @item ediff-buffers |
| 162 | @findex ediff-buffers | 167 | @findex ediff-buffers |
| 163 | Compare two buffers. | 168 | Compare two buffers. |
| @@ -2425,104 +2430,105 @@ Without them, Ediff would not be nearly as useful as it is today. | |||
| 2425 | Here is a hopefully full list of contributors: | 2430 | Here is a hopefully full list of contributors: |
| 2426 | 2431 | ||
| 2427 | @example | 2432 | @example |
| 2428 | Adrian Aichner (aichner@@ecf.teradyne.com), | 2433 | Adrian Aichner (aichner at ecf.teradyne.com), |
| 2429 | Drew Adams (drew.adams@@oracle.com), | 2434 | Drew Adams (drew.adams at oracle.com), |
| 2430 | Steve Baur (steve@@xemacs.org), | 2435 | Steve Baur (steve at xemacs.org), |
| 2431 | Neal Becker (neal@@ctd.comsat.com), | 2436 | Neal Becker (neal at ctd.comsat.com), |
| 2432 | E.@: Jay Berkenbilt (ejb@@ql.org), | 2437 | E.@: Jay Berkenbilt (ejb at ql.org), |
| 2433 | Alastair Burt (burt@@dfki.uni-kl.de), | 2438 | Lennart Borgman (ennart.borgman at gmail.com) |
| 2434 | Paul Bibilo (peb@@delcam.co.uk), | 2439 | Alastair Burt (burt at dfki.uni-kl.de), |
| 2435 | Kevin Broadey (KevinB@@bartley.demon.co.uk), | 2440 | Paul Bibilo (peb at delcam.co.uk), |
| 2436 | Harald Boegeholz (hwb@@machnix.mathematik.uni-stuttgart.de), | 2441 | Kevin Broadey (KevinB at bartley.demon.co.uk), |
| 2437 | Bradley A.@: Bosch (brad@@lachman.com), | 2442 | Harald Boegeholz (hwb at machnix.mathematik.uni-stuttgart.de), |
| 2438 | Michael D.@: Carney (carney@@ltx-tr.com), | 2443 | Bradley A.@: Bosch (brad at lachman.com), |
| 2439 | Jin S.@: Choi (jin@@atype.com), | 2444 | Michael D.@: Carney (carney at ltx-tr.com), |
| 2440 | Scott Cummings (cummings@@adc.com), | 2445 | Jin S.@: Choi (jin at atype.com), |
| 2441 | Albert Dvornik (bert@@mit.edu), | 2446 | Scott Cummings (cummings at adc.com), |
| 2442 | Eric Eide (eeide@@asylum.cs.utah.edu), | 2447 | Albert Dvornik (bert at mit.edu), |
| 2443 | Paul Eggert (eggert@@twinsun.com), | 2448 | Eric Eide (eeide at asylum.cs.utah.edu), |
| 2444 | Urban Engberg (ue@@cci.dk), | 2449 | Paul Eggert (eggert at twinsun.com), |
| 2445 | Kevin Esler (esler@@ch.hp.com), | 2450 | Urban Engberg (ue at cci.dk), |
| 2446 | Robert Estes (estes@@ece.ucdavis.edu), | 2451 | Kevin Esler (esler at ch.hp.com), |
| 2447 | Jay Finger (jayf@@microsoft.com), | 2452 | Robert Estes (estes at ece.ucdavis.edu), |
| 2448 | Xavier Fornari (xavier@@europe.cma.fr), | 2453 | Jay Finger (jayf at microsoft.com), |
| 2449 | Eric Freudenthal (freudent@@jan.ultra.nyu.edu), | 2454 | Xavier Fornari (xavier at europe.cma.fr), |
| 2450 | Job Ganzevoort (Job.Ganzevoort@@cwi.nl), | 2455 | Eric Freudenthal (freudent at jan.ultra.nyu.edu), |
| 2451 | Felix Heinrich Gatzemeier (felix.g@@tzemeier.info), | 2456 | Job Ganzevoort (Job.Ganzevoort at cwi.nl), |
| 2452 | Boris Goldowsky (boris@@cs.rochester.edu), | 2457 | Felix Heinrich Gatzemeier (felix.g at tzemeier.info), |
| 2453 | Allan Gottlieb (gottlieb@@allan.ultra.nyu.edu), | 2458 | Boris Goldowsky (boris at cs.rochester.edu), |
| 2454 | Aaron Gross (aaron@@bfr.co.il), | 2459 | Allan Gottlieb (gottlieb at allan.ultra.nyu.edu), |
| 2455 | Thorbjoern Hansen (thorbjoern.hansen@@mchp.siemens.de), | 2460 | Aaron Gross (aaron at bfr.co.il), |
| 2456 | Marcus Harnisch (marcus_harnisch@@mint-tech.com), | 2461 | Thorbjoern Hansen (thorbjoern.hansen at mchp.siemens.de), |
| 2457 | Steven E. Harris (seh@@panix.com), | 2462 | Marcus Harnisch (marcus_harnisch at mint-tech.com), |
| 2458 | Aaron S. Hawley (Aaron.Hawley@@uvm.edu), | 2463 | Steven E. Harris (seh at panix.com), |
| 2459 | Xiaoli Huang (hxl@@epic.com), | 2464 | Aaron S. Hawley (Aaron.Hawley at uvm.edu), |
| 2460 | Andreas Jaeger (aj@@suse.de), | 2465 | Xiaoli Huang (hxl at epic.com), |
| 2461 | Lars Magne Ingebrigtsen (larsi@@ifi.uio.no), | 2466 | Andreas Jaeger (aj at suse.de), |
| 2462 | Larry Gouge (larry@@itginc.com), | 2467 | Lars Magne Ingebrigtsen (larsi at ifi.uio.no), |
| 2463 | Karl Heuer (kwzh@@gnu.org), | 2468 | Larry Gouge (larry at itginc.com), |
| 2464 | (irvine@@lks.csi.com), | 2469 | Karl Heuer (kwzh at gnu.org), |
| 2465 | (jaffe@@chipmunk.cita.utoronto.ca), | 2470 | (irvine at lks.csi.com), |
| 2466 | David Karr (dkarr@@nmo.gtegsc.com), | 2471 | (jaffe at chipmunk.cita.utoronto.ca), |
| 2467 | Norbert Kiesel (norbert@@i3.informatik.rwth-aachen.de), | 2472 | David Karr (dkarr at nmo.gtegsc.com), |
| 2468 | Steffen Kilb (skilb@@gmx.net), | 2473 | Norbert Kiesel (norbert at i3.informatik.rwth-aachen.de), |
| 2469 | Leigh L Klotz (klotz@@adoc.xerox.com), | 2474 | Steffen Kilb (skilb at gmx.net), |
| 2470 | Fritz Knabe (Fritz.Knabe@@ecrc.de), | 2475 | Leigh L Klotz (klotz at adoc.xerox.com), |
| 2471 | Heinz Knutzen (hk@@informatik.uni-kiel.d400.de), | 2476 | Fritz Knabe (Fritz.Knabe at ecrc.de), |
| 2472 | Andrew Koenig (ark@@research.att.com), | 2477 | Heinz Knutzen (hk at informatik.uni-kiel.d400.de), |
| 2473 | Hannu Koivisto (azure@@iki.fi), | 2478 | Andrew Koenig (ark at research.att.com), |
| 2474 | Ken Laprade (laprade@@dw3f.ess.harris.com), | 2479 | Hannu Koivisto (azure at iki.fi), |
| 2475 | Will C Lauer (wcl@@cadre.com), | 2480 | Ken Laprade (laprade at dw3f.ess.harris.com), |
| 2476 | Richard Levitte (levitte@@e.kth.se), | 2481 | Will C Lauer (wcl at cadre.com), |
| 2477 | Mike Long (mike.long@@analog.com), | 2482 | Richard Levitte (levitte at e.kth.se), |
| 2478 | Dave Love (d.love@@dl.ac.uk), | 2483 | Mike Long (mike.long at analog.com), |
| 2479 | Martin Maechler (maechler@@stat.math.ethz.ch), | 2484 | Dave Love (d.love at dl.ac.uk), |
| 2480 | Simon Marshall (simon@@gnu.org), | 2485 | Martin Maechler (maechler at stat.math.ethz.ch), |
| 2481 | Paul C. Meuse (pmeuse@@delcomsys.com), | 2486 | Simon Marshall (simon at gnu.org), |
| 2482 | Richard Mlynarik (mly@@adoc.xerox.com), | 2487 | Paul C. Meuse (pmeuse at delcomsys.com), |
| 2483 | Stefan Monnier (monnier@@cs.yale.edu), | 2488 | Richard Mlynarik (mly at adoc.xerox.com), |
| 2484 | Chris Murphy (murphycm@@sun.aston.ac.uk), | 2489 | Stefan Monnier (monnier at cs.yale.edu), |
| 2485 | Erik Naggum (erik@@naggum.no), | 2490 | Chris Murphy (murphycm at sun.aston.ac.uk), |
| 2486 | Eyvind Ness (Eyvind.Ness@@hrp.no), | 2491 | Erik Naggum (erik at naggum.no), |
| 2487 | Ray Nickson (nickson@@cs.uq.oz.au), | 2492 | Eyvind Ness (Eyvind.Ness at hrp.no), |
| 2488 | Dan Nicolaescu (dann@@ics.uci.edu), | 2493 | Ray Nickson (nickson at cs.uq.oz.au), |
| 2489 | David Petchey (petchey_david@@jpmorgan.com), | 2494 | Dan Nicolaescu (dann at ics.uci.edu), |
| 2490 | Benjamin Pierce (benjamin.pierce@@cl.cam.ac.uk), | 2495 | David Petchey (petchey_david at jpmorgan.com), |
| 2491 | Francois Pinard (pinard@@iro.umontreal.ca), | 2496 | Benjamin Pierce (benjamin.pierce at cl.cam.ac.uk), |
| 2492 | Tibor Polgar (tlp00@@spg.amdahl.com), | 2497 | Francois Pinard (pinard at iro.umontreal.ca), |
| 2493 | David Prince (dave0d@@fegs.co.uk), | 2498 | Tibor Polgar (tlp00 at spg.amdahl.com), |
| 2494 | Paul Raines (raines@@slac.stanford.edu), | 2499 | David Prince (dave0d at fegs.co.uk), |
| 2495 | Stefan Reicher (xsteve@@riic.at), | 2500 | Paul Raines (raines at slac.stanford.edu), |
| 2496 | Charles Rich (rich@@merl.com), | 2501 | Stefan Reicher (xsteve at riic.at), |
| 2497 | Bill Richter (richter@@math.nwu.edu), | 2502 | Charles Rich (rich at merl.com), |
| 2498 | C.S.@: Roberson (roberson@@aur.alcatel.com), | 2503 | Bill Richter (richter at math.nwu.edu), |
| 2499 | Kevin Rodgers (kevin.rodgers@@ihs.com), | 2504 | C.S.@: Roberson (roberson at aur.alcatel.com), |
| 2500 | Sandy Rutherford (sandy@@ibm550.sissa.it), | 2505 | Kevin Rodgers (kevin.rodgers at ihs.com), |
| 2501 | Heribert Schuetz (schuetz@@ecrc.de), | 2506 | Sandy Rutherford (sandy at ibm550.sissa.it), |
| 2502 | Andy Scott (ascott@@pcocd2.intel.com), | 2507 | Heribert Schuetz (schuetz at ecrc.de), |
| 2503 | Axel Seibert (axel@@tumbolia.ppp.informatik.uni-muenchen.de), | 2508 | Andy Scott (ascott at pcocd2.intel.com), |
| 2504 | Vin Shelton (acs@@xemacs.org), | 2509 | Axel Seibert (axel at tumbolia.ppp.informatik.uni-muenchen.de), |
| 2505 | Scott O. Sherman (Scott.Sherman@@mci.com), | 2510 | Vin Shelton (acs at xemacs.org), |
| 2506 | Nikolaj Schumacher (n_schumacher@@web.de), | 2511 | Scott O. Sherman (Scott.Sherman at mci.com), |
| 2507 | Richard Stallman (rms@@gnu.org), | 2512 | Nikolaj Schumacher (n_schumacher at web.de), |
| 2508 | Richard Stanton (stanton@@haas.berkeley.edu), | 2513 | Richard Stallman (rms at gnu.org), |
| 2509 | Sam Steingold (sds@@goems.com), | 2514 | Richard Stanton (stanton at haas.berkeley.edu), |
| 2510 | Ake Stenhoff (etxaksf@@aom.ericsson.se), | 2515 | Sam Steingold (sds at goems.com), |
| 2511 | Stig (stig@@hackvan.com), | 2516 | Ake Stenhoff (etxaksf at aom.ericsson.se), |
| 2512 | Peter Stout (Peter_Stout@@cs.cmu.edu), | 2517 | Stig (stig at hackvan.com), |
| 2513 | Chuck Thompson (cthomp@@cs.uiuc.edu), | 2518 | Peter Stout (Peter_Stout at cs.cmu.edu), |
| 2514 | Ray Tomlinson (tomlinso@@bbn.com), | 2519 | Chuck Thompson (cthomp at cs.uiuc.edu), |
| 2515 | Raymond Toy (toy@@rtp.ericsson.se), | 2520 | Ray Tomlinson (tomlinso at bbn.com), |
| 2516 | Stephen J. Turnbull (stephen@@xemacs.org), | 2521 | Raymond Toy (toy at rtp.ericsson.se), |
| 2517 | Jan Vroonhof (vroonhof@@math.ethz.ch), | 2522 | Stephen J. Turnbull (stephen at xemacs.org), |
| 2518 | Colin Walters (walters@@cis.ohio-state.edu), | 2523 | Jan Vroonhof (vroonhof at math.ethz.ch), |
| 2519 | Philippe Waroquiers (philippe.waroquiers@@eurocontrol.be), | 2524 | Colin Walters (walters at cis.ohio-state.edu), |
| 2520 | Klaus Weber (gizmo@@zork.north.de), | 2525 | Philippe Waroquiers (philippe.waroquiers at eurocontrol.be), |
| 2521 | Ben Wing (ben@@xemacs.org), | 2526 | Klaus Weber (gizmo at zork.north.de), |
| 2522 | Tom Wurgler (twurgler@@goodyear.com), | 2527 | Ben Wing (ben at xemacs.org), |
| 2523 | Steve Youngs (youngs@@xemacs.org), | 2528 | Tom Wurgler (twurgler at goodyear.com), |
| 2524 | Ilya Zakharevich (ilya@@math.ohio-state.edu), | 2529 | Steve Youngs (youngs at xemacs.org), |
| 2525 | Eli Zaretskii (eliz@@is.elta.co.il) | 2530 | Ilya Zakharevich (ilya at math.ohio-state.edu), |
| 2531 | Eli Zaretskii (eliz at is.elta.co.il) | ||
| 2526 | @end example | 2532 | @end example |
| 2527 | 2533 | ||
| 2528 | @node GNU Free Documentation License, Index, Credits, Top | 2534 | @node GNU Free Documentation License, Index, Credits, Top |
diff --git a/doc/misc/viper.texi b/doc/misc/viper.texi index 11f8f214663..bd1f2a7c0f5 100644 --- a/doc/misc/viper.texi +++ b/doc/misc/viper.texi | |||
| @@ -261,8 +261,8 @@ you see @samp{%%} at the beginning of the mode line, it means that the file | |||
| 261 | associated with the buffer is write protected. The mode line will also | 261 | associated with the buffer is write protected. The mode line will also |
| 262 | show the buffer name and current major and minor modes (see below). | 262 | show the buffer name and current major and minor modes (see below). |
| 263 | A special buffer called @dfn{Minibuffer} is displayed as the last line | 263 | A special buffer called @dfn{Minibuffer} is displayed as the last line |
| 264 | in a Minibuffer window. The Minibuffer window is used for command input | 264 | in a minibuffer window. The minibuffer window is used for command input |
| 265 | output. Viper uses Minibuffer window for @kbd{/} and @kbd{:} | 265 | output. Viper uses minibuffer window for @kbd{/} and @kbd{:} |
| 266 | commands.@refill | 266 | commands.@refill |
| 267 | 267 | ||
| 268 | @cindex mode | 268 | @cindex mode |
| @@ -653,7 +653,7 @@ last history element is the default that can be invoked simply by typing | |||
| 653 | easy to override valuable data in another file. Reconstructing the full | 653 | easy to override valuable data in another file. Reconstructing the full |
| 654 | command, @kbd{:w!@: foo}, from the history is still not that hard, since Viper | 654 | command, @kbd{:w!@: foo}, from the history is still not that hard, since Viper |
| 655 | has a separate history for file names. By typing @kbd{: M-p}, you will get | 655 | has a separate history for file names. By typing @kbd{: M-p}, you will get |
| 656 | @kbd{:w!} in the Minibuffer. Then, repeated @kbd{M-p} will get you through | 656 | @kbd{:w!} in the minibuffer. Then, repeated @kbd{M-p} will get you through |
| 657 | the file history, inserting one file name after another. | 657 | the file history, inserting one file name after another. |
| 658 | 658 | ||
| 659 | In contrast to @kbd{:w!@: foo}, if the command were @kbd{:r foo}, the entire | 659 | In contrast to @kbd{:w!@: foo}, if the command were @kbd{:r foo}, the entire |
| @@ -663,7 +663,7 @@ argument. | |||
| 663 | @refill | 663 | @refill |
| 664 | @end table | 664 | @end table |
| 665 | @noindent | 665 | @noindent |
| 666 | As Vi, Viper's destructive commands can be re-executed by typing `@kbd{.}'. | 666 | As in Vi, Viper's destructive commands can be re-executed by typing `@kbd{.}'. |
| 667 | However, in addition, Viper keeps track of the history of such commands. This | 667 | However, in addition, Viper keeps track of the history of such commands. This |
| 668 | history can be perused by typing @kbd{C-c M-p} and @kbd{C-c M-n}. | 668 | history can be perused by typing @kbd{C-c M-p} and @kbd{C-c M-n}. |
| 669 | Having found the appropriate command, it can be then executed by typing | 669 | Having found the appropriate command, it can be then executed by typing |
| @@ -767,7 +767,7 @@ region. | |||
| 767 | 767 | ||
| 768 | @cindex Minibuffer | 768 | @cindex Minibuffer |
| 769 | 769 | ||
| 770 | The Minibuffer is where commands are entered in. Editing can be done | 770 | The minibuffer is where commands are entered in. Editing can be done |
| 771 | by commands from Insert state, namely: | 771 | by commands from Insert state, namely: |
| 772 | 772 | ||
| 773 | @table @kbd | 773 | @table @kbd |
| @@ -788,23 +788,28 @@ explanation. | |||
| 788 | These keys are bound to functions that peruse minibuffer history. The | 788 | These keys are bound to functions that peruse minibuffer history. The |
| 789 | precise history to be perused depends on the context. It may be the history | 789 | precise history to be perused depends on the context. It may be the history |
| 790 | of search strings, Ex commands, file names, etc. | 790 | of search strings, Ex commands, file names, etc. |
| 791 | @item C-s | ||
| 792 | If the minibuffer is entered via the Viper search commands @kbd{/} or | ||
| 793 | @kbd{?}, then this key inserts the last search string used by the | ||
| 794 | Emacs incremental search command | ||
| 795 | (which is bound to @kbd{C-s} everywhere except in this case). | ||
| 791 | @end table | 796 | @end table |
| 792 | 797 | ||
| 793 | Most of the Emacs keys are functional in the Minibuffer. While in the | 798 | Most of the Emacs keys are functional in the minibuffer. While in the |
| 794 | Minibuffer, Viper tries to make editing resemble Vi's behavior when the | 799 | minibuffer, Viper tries to make editing resemble Vi's behavior when the |
| 795 | latter is waiting for the user to type an Ex command. In particular, you | 800 | latter is waiting for the user to type an Ex command. In particular, you |
| 796 | can use the regular Vi commands to edit the Minibuffer. You can switch | 801 | can use the regular Vi commands to edit the minibuffer. You can switch |
| 797 | between the Vi state and Insert state at will, and even use the replace mode. | 802 | between the Vi state and Insert state at will, and even use the replace mode. |
| 798 | Initially, the Minibuffer comes up in Insert state. | 803 | Initially, the minibuffer comes up in Insert state. |
| 799 | 804 | ||
| 800 | Some users prefer plain Emacs bindings in the Minibuffer. To this end, set | 805 | Some users prefer plain Emacs bindings in the minibuffer. To this end, set |
| 801 | @code{viper-vi-style-in-minibuffer} to @code{nil} in @file{.viper}. | 806 | @code{viper-vi-style-in-minibuffer} to @code{nil} in @file{.viper}. |
| 802 | @xref{Customization}, to learn how to do this. | 807 | @xref{Customization}, to learn how to do this. |
| 803 | 808 | ||
| 804 | When the Minibuffer changes Viper states, you will notice that the appearance | 809 | When the minibuffer changes Viper states, you will notice that the appearance |
| 805 | of the text there changes as well. This is useful because the Minibuffer | 810 | of the text there changes as well. This is useful because the minibuffer |
| 806 | has no mode line to tell which Vi state it is in. | 811 | has no mode line to tell which Vi state it is in. |
| 807 | The appearance of the text in the Minibuffer can be changed. | 812 | The appearance of the text in the minibuffer can be changed. |
| 808 | @xref{Viper Specials}, for more details. | 813 | @xref{Viper Specials}, for more details. |
| 809 | 814 | ||
| 810 | @node Multiple Files in Viper,Unimplemented Features,The Minibuffer,Overview | 815 | @node Multiple Files in Viper,Unimplemented Features,The Minibuffer,Overview |
| @@ -859,7 +864,7 @@ The current directory name for a file is automatically prepended to the | |||
| 859 | file name in any | 864 | file name in any |
| 860 | @kbd{:e}, @kbd{:r}, @kbd{:w}, etc., command (in Emacs, each buffer has a | 865 | @kbd{:e}, @kbd{:r}, @kbd{:w}, etc., command (in Emacs, each buffer has a |
| 861 | current directory). | 866 | current directory). |
| 862 | This directory is inserted in the Minibuffer once you type space after | 867 | This directory is inserted in the minibuffer once you type space after |
| 863 | @kbd{:e, r}, etc. Viper also supports completion of file names and Ex | 868 | @kbd{:e, r}, etc. Viper also supports completion of file names and Ex |
| 864 | commands (@key{TAB}), and it keeps track of | 869 | commands (@key{TAB}), and it keeps track of |
| 865 | command and file history (@kbd{M-p}, @kbd{M-n}). | 870 | command and file history (@kbd{M-p}, @kbd{M-n}). |
| @@ -1044,7 +1049,7 @@ destructive commands in Vi state. These are | |||
| 1044 | useful for fixing those small typos that screw up searches and @kbd{:s}, | 1049 | useful for fixing those small typos that screw up searches and @kbd{:s}, |
| 1045 | and for eliminating routine associated with repeated typing of file names | 1050 | and for eliminating routine associated with repeated typing of file names |
| 1046 | or pieces of text that need to be inserted frequently. | 1051 | or pieces of text that need to be inserted frequently. |
| 1047 | At the @kbd{:} or @kbd{/} prompts in the Minibuffer, you can do the following: | 1052 | At the @kbd{:} or @kbd{/} prompts in the minibuffer, you can do the following: |
| 1048 | 1053 | ||
| 1049 | @table @kbd | 1054 | @table @kbd |
| 1050 | @item M-p and M-n | 1055 | @item M-p and M-n |
| @@ -1170,7 +1175,7 @@ Search,emacs,The GNU Emacs Manual} @refill | |||
| 1170 | @cindex query replace | 1175 | @cindex query replace |
| 1171 | 1176 | ||
| 1172 | Viper also provides a query replace function that prompts through the | 1177 | Viper also provides a query replace function that prompts through the |
| 1173 | Minibuffer. It is invoked by the @kbd{Q} key in Vi state. | 1178 | minibuffer. It is invoked by the @kbd{Q} key in Vi state. |
| 1174 | 1179 | ||
| 1175 | @cindex mouse search | 1180 | @cindex mouse search |
| 1176 | 1181 | ||
| @@ -1332,7 +1337,7 @@ that @kbd{:se nomagic} turns Regexps off completely, unlike Vi). | |||
| 1332 | @kindex @kbd{V} | 1337 | @kindex @kbd{V} |
| 1333 | @kindex @kbd{C-v} | 1338 | @kindex @kbd{C-v} |
| 1334 | These keys are used to visit files. @kbd{v} will switch to a buffer | 1339 | These keys are used to visit files. @kbd{v} will switch to a buffer |
| 1335 | visiting file whose name can be entered in the Minibuffer. @kbd{V} is | 1340 | visiting file whose name can be entered in the minibuffer. @kbd{V} is |
| 1336 | similar, but will use a window different from the current window. | 1341 | similar, but will use a window different from the current window. |
| 1337 | @kbd{C-v} is like @kbd{V}, except that a new frame (X window) will be used | 1342 | @kbd{C-v} is like @kbd{V}, except that a new frame (X window) will be used |
| 1338 | instead of a new Emacs window. | 1343 | instead of a new Emacs window. |
| @@ -1432,9 +1437,16 @@ this function. | |||
| 1432 | @item M-p and M-n | 1437 | @item M-p and M-n |
| 1433 | @kindex @kbd{M-p} | 1438 | @kindex @kbd{M-p} |
| 1434 | @kindex @kbd{M-n} | 1439 | @kindex @kbd{M-n} |
| 1435 | In the Minibuffer, these commands navigate through the minibuffer | 1440 | In the minibuffer, these commands navigate through the minibuffer |
| 1436 | histories, such as the history of search strings, Ex commands, etc. | 1441 | histories, such as the history of search strings, Ex commands, etc. |
| 1437 | 1442 | ||
| 1443 | @item C-s | ||
| 1444 | @kindex @kbd{C-s} | ||
| 1445 | If the minibuffer is entered via a Viper search commands @kbd{/} or @kbd{?}, | ||
| 1446 | then typing this key inserts the last search string used by the | ||
| 1447 | Emacs incremental search command (that is bound to @kbd{C-s} everywhere | ||
| 1448 | except in this case). | ||
| 1449 | |||
| 1438 | @item C-c M-p and C-c M-n | 1450 | @item C-c M-p and C-c M-n |
| 1439 | @kindex @kbd{C-c M-p} | 1451 | @kindex @kbd{C-c M-p} |
| 1440 | @kindex @kbd{C-c M-n} | 1452 | @kindex @kbd{C-c M-n} |
| @@ -1716,8 +1728,8 @@ If not @code{nil}, @kbd{C-h} is bound to @code{help-command}; | |||
| 1716 | otherwise, @kbd{C-h} is bound as usual in Vi. | 1728 | otherwise, @kbd{C-h} is bound as usual in Vi. |
| 1717 | @item viper-vi-style-in-minibuffer t | 1729 | @item viper-vi-style-in-minibuffer t |
| 1718 | If not @code{nil}, Viper provides a high degree of compatibility with Vi | 1730 | If not @code{nil}, Viper provides a high degree of compatibility with Vi |
| 1719 | insert mode when you type text in the Minibuffer; if @code{nil}, typing in | 1731 | insert mode when you type text in the minibuffer; if @code{nil}, typing in |
| 1720 | the Minibuffer feels like plain Emacs. | 1732 | the minibuffer feels like plain Emacs. |
| 1721 | @item viper-no-multiple-ESC t | 1733 | @item viper-no-multiple-ESC t |
| 1722 | If you set this to @code{nil}, you can use @key{ESC} as Meta in Vi state. | 1734 | If you set this to @code{nil}, you can use @key{ESC} as Meta in Vi state. |
| 1723 | Normally, this is not necessary, since graphical displays have separate | 1735 | Normally, this is not necessary, since graphical displays have separate |
| @@ -2455,7 +2467,7 @@ direction, you can either bind an unused key to | |||
| 2455 | @kbd{f31}. | 2467 | @kbd{f31}. |
| 2456 | 2468 | ||
| 2457 | One should not bind the above functions to @kbd{M-p} or @kbd{M-n}, since | 2469 | One should not bind the above functions to @kbd{M-p} or @kbd{M-n}, since |
| 2458 | this will interfere with the Minibuffer histories and, possibly, other | 2470 | this will interfere with the minibuffer histories and, possibly, other |
| 2459 | major modes. | 2471 | major modes. |
| 2460 | 2472 | ||
| 2461 | @item viper-command-ring-size 14 | 2473 | @item viper-command-ring-size 14 |
| @@ -2485,7 +2497,7 @@ direction, you can either bind an unused key to | |||
| 2485 | @code{viper-next-destructive-command} or hit any digit (1 to 9) then @kbd{f31}. | 2497 | @code{viper-next-destructive-command} or hit any digit (1 to 9) then @kbd{f31}. |
| 2486 | 2498 | ||
| 2487 | One should not bind the above functions to @kbd{M-p} or @kbd{M-n}, since | 2499 | One should not bind the above functions to @kbd{M-p} or @kbd{M-n}, since |
| 2488 | this will interfere with the Minibuffer histories and, possibly, other | 2500 | this will interfere with the minibuffer histories and, possibly, other |
| 2489 | major modes. | 2501 | major modes. |
| 2490 | 2502 | ||
| 2491 | @item viper-minibuffer-vi-face 'viper-minibuffer-vi-face | 2503 | @item viper-minibuffer-vi-face 'viper-minibuffer-vi-face |
| @@ -2501,7 +2513,7 @@ subgroup of the @emph{Editing} group. All Viper faces are grouped together | |||
| 2501 | in Viper's @emph{Highlighting} customization subgroup. | 2513 | in Viper's @emph{Highlighting} customization subgroup. |
| 2502 | 2514 | ||
| 2503 | Note that only the text you type in is affected by the above faces. | 2515 | Note that only the text you type in is affected by the above faces. |
| 2504 | Prompts and Minibuffer messages are not affected. | 2516 | Prompts and minibuffer messages are not affected. |
| 2505 | 2517 | ||
| 2506 | Purists who do not like adornments in the minibuffer can always zap them by | 2518 | Purists who do not like adornments in the minibuffer can always zap them by |
| 2507 | putting | 2519 | putting |
| @@ -2960,7 +2972,7 @@ Since Viper macros are much more powerful than Vi's it is impossible to | |||
| 2960 | detect such loops. In practice, this is not really a limitation but, | 2972 | detect such loops. In practice, this is not really a limitation but, |
| 2961 | rather, a feature. | 2973 | rather, a feature. |
| 2962 | 2974 | ||
| 2963 | We should also note that Vi macros are disabled in the Minibuffer, which | 2975 | We should also note that Vi macros are disabled in the minibuffer, which |
| 2964 | helps keep some potential troubles away. | 2976 | helps keep some potential troubles away. |
| 2965 | 2977 | ||
| 2966 | The rate at which the user must type keys in order for them to be | 2978 | The rate at which the user must type keys in order for them to be |
| @@ -3534,7 +3546,7 @@ these commands help peruse the history of Vi's destructive commands. | |||
| 3534 | Successive typing of @kbd{C-c M-p} causes Viper to search the history in | 3546 | Successive typing of @kbd{C-c M-p} causes Viper to search the history in |
| 3535 | the direction | 3547 | the direction |
| 3536 | of older commands, while hitting @kbd{C-c M-n} does so in reverse | 3548 | of older commands, while hitting @kbd{C-c M-n} does so in reverse |
| 3537 | order. Each command in the history is displayed in the Minibuffer. The | 3549 | order. Each command in the history is displayed in the minibuffer. The |
| 3538 | displayed command can | 3550 | displayed command can |
| 3539 | then be executed by typing `@kbd{.}'. | 3551 | then be executed by typing `@kbd{.}'. |
| 3540 | 3552 | ||
| @@ -3564,7 +3576,7 @@ functions doing the perusing can be bound to unused keyboard keys in the | |||
| 3564 | 3576 | ||
| 3565 | Minibuffer can be edited similarly to Insert state, and you can switch | 3577 | Minibuffer can be edited similarly to Insert state, and you can switch |
| 3566 | between Insert/Replace/Vi states at will. | 3578 | between Insert/Replace/Vi states at will. |
| 3567 | Some users prefer plain Emacs feel in the Minibuffer. To this end, set | 3579 | Some users prefer plain Emacs feel in the minibuffer. To this end, set |
| 3568 | @var{viper-vi-style-in-minibuffer} to @code{nil}. | 3580 | @var{viper-vi-style-in-minibuffer} to @code{nil}. |
| 3569 | 3581 | ||
| 3570 | @cindex Insert state | 3582 | @cindex Insert state |
| @@ -3754,6 +3766,11 @@ Viper does not parse search patterns and does not expand special symbols | |||
| 3754 | found there (e.g., @samp{~} is not expanded to the result of the previous | 3766 | found there (e.g., @samp{~} is not expanded to the result of the previous |
| 3755 | substitution). | 3767 | substitution). |
| 3756 | 3768 | ||
| 3769 | After typing @kbd{/} or @kbd{?} all the usual Emacs minibuffer commands, such as | ||
| 3770 | @kbd{M-p} and @kbd{M-n} are available. In addition, typing @kbd{C-s} will | ||
| 3771 | insert the last search string used by the Emacs incremental search command | ||
| 3772 | (which is bound to @kbd{C-s} everywhere except in this case). | ||
| 3773 | |||
| 3757 | @item <count> ?<string> | 3774 | @item <count> ?<string> |
| 3758 | To the <count>th previous occurrence of <string>. | 3775 | To the <count>th previous occurrence of <string>. |
| 3759 | @item <count> g<move> | 3776 | @item <count> g<move> |
| @@ -4057,7 +4074,7 @@ Like @kbd{:b}, but the meaning of @var{ex-cycle-other-window} is reversed. | |||
| 4057 | Read the file <name> into the buffer after the line <address>. | 4074 | Read the file <name> into the buffer after the line <address>. |
| 4058 | @item v, V, C-v | 4075 | @item v, V, C-v |
| 4059 | Edit a file in current or another window, or in another frame. File name | 4076 | Edit a file in current or another window, or in another frame. File name |
| 4060 | is typed in Minibuffer. File completion and history are supported. | 4077 | is typed in minibuffer. File completion and history are supported. |
| 4061 | @end table | 4078 | @end table |
| 4062 | @kindex @kbd{v} | 4079 | @kindex @kbd{v} |
| 4063 | @kindex @kbd{V} | 4080 | @kindex @kbd{V} |