diff options
author | Michael Kifer <kifer@cs.stonybrook.edu> | 1999-11-01 07:16:15 +0000 |
---|---|---|
committer | Michael Kifer <kifer@cs.stonybrook.edu> | 1999-11-01 07:16:15 +0000 |
commit | 3af0304a614da0c7f9b049623c1d814926930f95 (patch) | |
tree | e2f2a8b028d538453e4242c7d72f52787448afcc /man | |
parent | 93b7ac65fc0e920bf11262f6b3eba4ae65c7a114 (diff) | |
download | emacs-3af0304a614da0c7f9b049623c1d814926930f95.tar.gz |
*** empty log message ***
Diffstat (limited to 'man')
-rw-r--r-- | man/ChangeLog | 6 | ||||
-rw-r--r-- | man/ediff.texi | 47 | ||||
-rw-r--r-- | man/viper.texi | 97 |
3 files changed, 108 insertions, 42 deletions
diff --git a/man/ChangeLog b/man/ChangeLog index 3d1013785e3..3f7c6396d05 100644 --- a/man/ChangeLog +++ b/man/ChangeLog @@ -1,3 +1,9 @@ +1999-11-01 Michael Kifer <kifer@cs.sunysb.edu> + + * ediff.texi: minor fixes. + + * viper.texi: minor fixes. + 1999-10-23 Dave Love <fx@gnu.org> * autotype.texi: New file. diff --git a/man/ediff.texi b/man/ediff.texi index a2eefa9f16a..f9b314c37ab 100644 --- a/man/ediff.texi +++ b/man/ediff.texi @@ -217,6 +217,11 @@ multi-file patch, then a session group interface will be used and the user will be able to patch the files selectively. @xref{Session Groups}, for more details. +Since the patch might be in a buffer or a file, you will be asked which is +the case. To avoid this extra prompt, you can invoke this command with a +prefix argument. With an odd prefix argument, Ediff assumes the patch +is in a file; with an even argument, a buffer is assumed. + Note that @code{ediff-patch-file} will actually use the @file{patch} utility to change the the original files on disk. This is not that dangerous, since you will always have the original contents of the file @@ -246,6 +251,11 @@ This function would refuse to apply a multifile patch to a buffer. Use @code{ediff-patch-file} for that (and when you want the original file to be modified by the @file{patch} utility). +Since the patch might be in a buffer or a file, you will be asked which is +the case. To avoid this extra prompt, you can invoke this command with a +prefix argument. With an odd prefix argument, Ediff assumes the patch +is in a file; with an even argument, a buffer is assumed. + @item ediff-merge-files @itemx ediff-merge @findex ediff-merge-files @@ -702,7 +712,7 @@ Restores the usual Ediff window setup. This is the quickest way to resume an Ediff session, but it works only if the control panel of that session is visible. -@item $ +@item $$ While merging with an ancestor file, Ediff is determined to reduce user's wear and tear by saving him and her much of unproductive, repetitive typing. If it notices that, say, file A's difference region is identical to @@ -719,7 +729,22 @@ had different ideas on how to do this. The above command does this for you by skipping the regions where only one of the variants clashes with the ancestor but the other variant agrees with -it. Typing @kbd{$} again undoes this setting. +it. Typing @kbd{$$} again undoes this setting. + +@item $* +When merging files with large number of differences, it is sometimes +convenient to be able to skip the difference regions for which you already +decided which variant is most appropriate. Typing @kbd{$*} will accomplish +precisely this. + +To be more precise, this toggles the check for whether the current merge is +identical to its default setting, as originally decided by Ediff. For +instance, if Ediff is merging according to the `combined' policy, then the +merge region is skipped over if it is different from the combination of the +regions in buffers A and B. (Warning: swapping buffers A and B will confuse +things in this respect). If the merge region is marked as `prefer-A' then +this region will be skipped if it differs from the current difference +region in buffer A, etc. @item / Displays the ancestor file during merges. @@ -1291,7 +1316,8 @@ the control frame. To start Ediff with an iconified Control Panel, you should set this variable to @code{t} and @code{ediff-prefer-long-help-message} to @code{nil} (@pxref{Quick Help Customization}). This behavior is useful -only if the window manager is TWM or a derivative. +only if icons are allowed to accept keybord input (which depend on the +window manager and other factors). @end table @findex ediff-setup-windows @@ -1552,10 +1578,9 @@ faces, you can modify them when Ediff is being loaded using ediff-current-diff-face-B)))) @end smallexample -@strong{Note:} it is not recommended to use @code{internal-get-face} -when defining Ediff's faces, since this may cause problems when there -are several frames with different font sizes. Instead, use -@code{copy-face} or @code{set/make-face-@dots{}} as shown above. +@strong{Note:} To set Ediff's faces, use only @code{copy-face} or +@code{set/make-face-@dots{}} as shown above. Emacs' low-level +face-manipulation functions should be avoided. @node Narrowing, Refinement of Difference Regions, Highlighting Difference Regions, Customization @section Narrowing @@ -1904,7 +1929,7 @@ Ediff lets you automatically ignore the regions where only one of the buffers A and B disagrees with the ancestor. To do this, set the variable @code{ediff-show-clashes-only} to non-@code{nil}. -You can toggle this feature interactively by typing @kbd{$}. +You can toggle this feature interactively by typing @kbd{$$}. Note that this variable affects only the show next/previous difference commands. You can still jump directly to any difference region directly @@ -2192,6 +2217,7 @@ Without them, Ediff would not be nearly as useful as it is today. Here is a full list of contributors (I hope I didn't miss anyone): @example +Adrian Aichner (aichner@@ecf.teradyne.com), Steve Baur (steve@@xemacs.org), Neal Becker (neal@@ctd.comsat.com), E.@: Jay Berkenbilt (ejb@@ql.org), @@ -2206,6 +2232,7 @@ Scott Cummings (cummings@@adc.com), Albert Dvornik (bert@@mit.edu), Eric Eide (eeide@@asylum.cs.utah.edu), Paul Eggert (eggert@@twinsun.com), +Urban Engberg (ue@@cci.dk), Kevin Esler (esler@@ch.hp.com), Robert Estes (estes@@ece.ucdavis.edu), Jay Finger (jayf@@microsoft.com), @@ -2214,8 +2241,10 @@ Eric Freudenthal (freudent@@jan.ultra.nyu.edu), Job Ganzevoort (Job.Ganzevoort@@cwi.nl), Boris Goldowsky (boris@@cs.rochester.edu), Allan Gottlieb (gottlieb@@allan.ultra.nyu.edu), +Aaron Gross (aaron@@bfr.co.il), Thorbjoern Hansen (thorbjoern.hansen@@mchp.siemens.de), Xiaoli Huang (hxl@@epic.com), +Andreas Jaeger (aj@@suse.de), Lars Magne Ingebrigtsen (larsi@@ifi.uio.no), Larry Gouge (larry@@itginc.com), Karl Heuer (kwzh@@gnu.org), @@ -2223,6 +2252,7 @@ Karl Heuer (kwzh@@gnu.org), (jaffe@@chipmunk.cita.utoronto.ca), David Karr (dkarr@@nmo.gtegsc.com), Norbert Kiesel (norbert@@i3.informatik.rwth-aachen.de), +Sam Steingold (sds@@goems.com), Leigh L Klotz (klotz@@adoc.xerox.com), Fritz Knabe (Fritz.Knabe@@ecrc.de), Heinz Knutzen (hk@@informatik.uni-kiel.d400.de), @@ -2240,6 +2270,7 @@ Eyvind Ness (Eyvind.Ness@@hrp.no), Ray Nickson (nickson@@cs.uq.oz.au), David Petchey (petchey_david@@jpmorgan.com), Benjamin Pierce (benjamin.pierce@@cl.cam.ac.uk), +Francois Pinard (pinard@@iro.umontreal.ca), Tibor Polgar (tlp00@@spg.amdahl.com), David Prince (dave0d@@fegs.co.uk), Paul Raines (raines@@slac.stanford.edu), diff --git a/man/viper.texi b/man/viper.texi index 45cded537ec..e2ccf4a4686 100644 --- a/man/viper.texi +++ b/man/viper.texi @@ -342,6 +342,12 @@ The location of Viper customization file can be changed by setting the variable @code{viper-custom-file-name} in @file{.emacs} @emph{prior} to loading Viper. +The latest versions of Emacs have an interactive customization facility, +which allows you to (mostly) bypass the use of the @file{.emacs} and +@file{.viper} files. You can reach this customization +facility from within Viper's VI state by executing the Ex command +@kbd{:customize}. + Once invoked, Viper will arrange to bring up Emacs buffers in Vi state whenever this makes sense. @xref{Packages that Change Keymaps}, to find out when forcing Vi command state @@ -1141,7 +1147,7 @@ under the cursor. You have to turn this on in @file{.viper} either by calling @noindent or by setting @code{viper-buffer-search-char} to, say, @kbd{f3}: @example -(setq viper-buffer-search-char [f3]) +(setq viper-buffer-search-char ?g) @end example @noindent @@ -1406,9 +1412,9 @@ example is @kbd{gw} to search for the word under the cursor. @kindex @kbd{C-]} Quit and Abort Recursive edit. These may be necessary on occasion. @xref{Vi State}, for a reason. -@item C-c g -@kindex @kbd{C-c g} -Hitting @kbd{C-c} followed by @kbd{g} will display the information on the +@item C-c C-g +@kindex @kbd{C-c C-g} +Hitting @kbd{C-c} followed by @kbd{C-g} will display the information on the current buffer. This is the same as hitting @kbd{C-g} in Vi, but, as explained above, @kbd{C-g} is needed for other purposes in Emacs. @item C-c / @@ -1760,21 +1766,19 @@ before Viper is loaded. Note that you have to set it as a string inside double quotes. @item viper-spell-function 'ispell-region Function used by the command @kbd{#c<move>} to spell. -@item ex-nontrivial-find-file-function -The value of this variable is the function used to find all files that -match a wildcard. This is usually done when the user types @kbd{:e} and -specifies a wildcard in the file name (or if the file name contains unusual -symbols (e.g., a space). Viper provides two functions for this: one for -Unix-like systems (@code{viper-ex-nontrivial-find-file-unix}) and one for -DOS, W95, and NT (@code{viper-ex-nontrivial-find-file-ms}). If the default -function doesn't quite do what you expect or if you prefer to use ``fancy'' -shells, you may have to write your own version of this function and make it -into the value of @code{ex-nontrivial-find-file-function}. Use -@code{viper-ex-nontrivial-find-file-unix} and -@code{viper-ex-nontrivial-find-file-ms} as examples. -@vindex @code{ex-nontrivial-find-file-function}. -@findex @code{viper-ex-nontrivial-find-file-ms} -@findex @code{viper-ex-nontrivial-find-file-unix} +@item viper-glob-function +The value of this variable is the function symbol used to expand wildcard +symbols. This is platform-dependent. The default tries to set this variable +to work with most Unix shells, MS Windows, OS/2, etc. However, if it +doesn't work the way you expect, you should write your own. +Use @code{viper-glob-unix-files} and @code{viper-glob-mswindows-files} in +@file{viper-util.el} as examples. + +This feature is used to expand wildcards in the Ex command @kbd{:e}. +Note that Viper doesn't support wildcards in the @kbd{:r} and @kbd{:w} +commands, because file completion is a better mechanism. +@findex @code{viper-glob-function} + @item ex-cycle-other-window t If not @code{nil}, @kbd{:n} and @kbd{:b} will cycle through files in another window, if one exists. @@ -2638,8 +2642,9 @@ menubar. @item viper-multiclick-timeout This variable controls the rate at which double-clicking must occur for the purpose of mouse search and mouse insert. By default, this is set to -@code{double-click-time}. -@end table +@code{double-click-time} in Emacs and to +@code{mouse-track-multi-click-time} milliseconds in XEmacs. +@end table @kindex @kbd{S-mouse-1} @kindex @kbd{S-mouse-2} @kindex @kbd{meta shift button1up} @@ -3068,8 +3073,11 @@ lines. @end table @cindex % (Current file) -Note that @samp{%} is used in Ex commands to mean current file. If you -want a @samp{%} in your command, it must be escaped as @samp{\%}. +Note that @samp{%} is used in Ex commands @kbd{:e} and @kbd{:r <shell-cmd>} +to mean current file. If you want a @samp{%} in your command, it must be +escaped as @samp{\%}. Note that @kbd{:w} and the regular @kbd{:r <file>} +command doesn't support the meta symbols @samp{%} and @samp{#}, because +file history is a better mechanism. @cindex # (Previous file) Similarly, @samp{#} expands to the previous file. The previous file is the first file in @kbd{:args} listing. This defaults to previous window @@ -3415,6 +3423,11 @@ the Emacs mark ring. Mark the current file and position with the specified letter. @item m . Set the Emacs mark (@pxref{Emacs Preliminaries}) at point. +@item m ^ +Set the Emacs mark (@xref{Emacs Preliminaries}) back to where it was last +set with the @kbd{m.} command. This is useful when you set the mark with +@kbd{m.}, but then some other command (such as @kbd{L} or @kbd{G}) changes +it in a way that you didn't like. @item m < Set the Emacs mark at beginning of buffer. @item m > @@ -3439,6 +3452,7 @@ Go to specified Viper mark and go to the first CHAR on line. @kindex @kbd{m>} @kindex @kbd{m<} @kindex @kbd{m,} +@kindex @kbd{m^} @findex @kbd{:mark} @findex @kbd{:k} @kindex @kbd{''} @@ -3907,6 +3921,11 @@ In all file handling commands, space should be typed before entering the file name. If you need to type a modifier, such as @kbd{>>} or @kbd{!}, don't put any space between the command and the modifier. +Note that many Ex commands, e.g., @kbd{:w}, accept command arguments. The +effect is that the command would start acting on the current region. For +instance, if the current region spans the lines 11 through 22, then if you +type @kbd{1:w} you would see @samp{:11,22w} in the minibuffer. + @table @kbd @item :q Quit buffer except if modified. @@ -3984,13 +4003,18 @@ Obsolete @item :args List files not shown anywhere with counts for next @item :n [count] [+<cmd>] [<files>] -Edit <count> file, or edit files. The count comes from @kbd{:args}. -@item :N [count] [+<cmd>] [<files>] +Edit <count> file, or edit files. The count comes from @kbd{:args}. +@item :N [count] [+<cmd>] [<files>] Like @kbd{:n}, but the meaning of the variable @var{ex-cycle-other-window} is reversed. @item :b Switch to another buffer. If @var{ex-cycle-other-window} is @code{t}, switch in another window. Buffer completion is supported. +The variable @var{viper-read-buffer-function} controls which function is +actually used to read the buffer name. The default is @code{read-buffer}, +but better alternatives are also available in Emacs (e.g., +@code{iswitchb-read-buffer}). +@vindex @var{viper-read-buffer-function} @item :B Like @kbd{:b}, but the meaning of @var{ex-cycle-other-window} is reversed. @item :<address>r <name> @@ -4110,15 +4134,20 @@ Show contents of register. @cindex % (Current file) -Note that % is used in Ex commands to mean current file. If you want a % -in your command, it must be escaped as @samp{\%}. -@cindex % (Ex address) -However if % is the -first character, it stands as the address for the whole file. -@cindex # (Previous file) -Similarly, @samp{#} expands to the previous file. The previous file is -the first file in @kbd{:args} listing. This defaults -to the previous file in the VI sense if you have one window.@refill +The symbol @samp{%} is used in Ex shell commands to mean current file. If +you want a @samp{%} in your command, it must be escaped as @samp{\%}. +@cindex @samp{%} (Ex address) +However if @samp{%} is the first character, it stands as the address for +the whole file. +@cindex @samp{#} (Previous file) +Similarly, @samp{#} expands to the previous file. The previous file is the +first file in @kbd{:args} listing. This defaults to the previous file in +the VI sense if you have one window.@refill + +Symbols @samp{%} and @samp{#} are also used in the Ex commands @kbd{:e} and +@kbd{:r <shell-cmd>}. The commands @kbd{:w} and the regular @kbd{:r +<file>} command don't support these meta symbols, because file history is a +better mechanism. @cindex shell commands |