pcl-cvs.texi 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442
  1. \input texinfo @c -*-texinfo-*-
  2. @c %**start of header
  3. @setfilename ../../info/pcl-cvs.info
  4. @settitle PCL-CVS---Emacs Front-End to CVS
  5. @include docstyle.texi
  6. @syncodeindex vr fn
  7. @c %**end of header
  8. @copying
  9. Copyright @copyright{} 1991--2016 Free Software Foundation, Inc.
  10. @quotation
  11. Permission is granted to copy, distribute and/or modify this document
  12. under the terms of the GNU Free Documentation License, Version 1.3 or
  13. any later version published by the Free Software Foundation; with no
  14. Invariant Sections, with the Front-Cover Texts being ``A GNU Manual'',
  15. and with the Back-Cover Texts as in (a) below. A copy of the license
  16. is included in the section entitled ``GNU Free Documentation License''.
  17. (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
  18. modify this GNU manual.''
  19. @end quotation
  20. @end copying
  21. @dircategory Emacs misc features
  22. @direntry
  23. * PCL-CVS: (pcl-cvs). Emacs front-end to CVS.
  24. @end direntry
  25. @c The titlepage section does not appear in the Info file.
  26. @titlepage
  27. @sp 4
  28. @c The title is printed in a large font.
  29. @center @titlefont{User's Guide}
  30. @sp 1
  31. @center @titlefont{to}
  32. @sp 1
  33. @center @titlefont{PCL-CVS---The Emacs Front-End to CVS}
  34. @ignore
  35. @sp 2
  36. @center release 2.9
  37. @c -release-
  38. @end ignore
  39. @sp 3
  40. @center Per Cederqvist
  41. @center Stefan Monnier
  42. @c -date-
  43. @c The following two commands start the copyright page
  44. @c for the printed manual. This will not appear in the Info file.
  45. @page
  46. @vskip 0pt plus 1filll
  47. @insertcopying
  48. @end titlepage
  49. @contents
  50. @c ================================================================
  51. @c The real text starts here
  52. @c ================================================================
  53. @ifnottex
  54. @node Top
  55. @top PCL-CVS
  56. This manual describes PCL-CVS, the GNU Emacs front-end to CVS@. It
  57. is nowhere near complete, so you are advised to use @kbd{M-x
  58. customize-group RET pcl-cvs @key{RET}} and to look at the documentation strings
  59. of the various commands and major modes for further information.
  60. @c This manual is updated to release 2.5 of PCL-CVS.
  61. @insertcopying
  62. @end ifnottex
  63. @menu
  64. * About PCL-CVS:: Credits, history, @dots{}
  65. * Getting started:: An introduction with a walk-through example.
  66. * Buffer contents:: An explanation of the buffer contents.
  67. * Selected files:: To which files are commands applied.
  68. * Commands:: All commands, grouped by type.
  69. * Log Edit Mode:: Major mode to edit log messages.
  70. * Log View Mode:: Major mode to browse log changes.
  71. @c * CVS Status Mode:: Major mode to view CVS' status output.
  72. * Customization:: How you can tailor PCL-CVS to suit your needs.
  73. * Bugs:: Bugs (known and unknown).
  74. * GNU Free Documentation License:: The license for this documentation.
  75. * Function and Variable Index:: List of functions and variables.
  76. * Concept Index:: List of concepts.
  77. * Key Index:: List of keystrokes.
  78. @detailmenu
  79. --- The Detailed Node Listing ---
  80. About PCL-CVS
  81. * Contributors:: Contributors to PCL-CVS.
  82. Commands
  83. * Entering PCL-CVS:: Commands to invoke PCL-CVS
  84. * Setting flags:: Setting flags for CVS commands
  85. * Updating the buffer::
  86. * Movement commands:: How to move up and down in the buffer
  87. * Marking files:: How to mark files that other commands
  88. will later operate on.
  89. * Committing changes:: Checking in your modifications to the
  90. CVS repository.
  91. * Editing files:: Loading files into Emacs.
  92. * Getting info about files:: Display the log and status of files.
  93. * Adding and removing files:: Adding and removing files
  94. * Undoing changes:: Undoing changes
  95. * Removing handled entries:: Uninteresting lines can easily be removed.
  96. * Ignoring files:: Telling CVS to ignore generated files.
  97. * Viewing differences:: Commands to @samp{diff} different versions.
  98. * Invoking Ediff:: Running @samp{ediff} from @file{*cvs*} buffer.
  99. * Updating files:: Updating files that Need-update.
  100. * Tagging files:: Tagging files.
  101. * Miscellaneous commands:: Miscellaneous commands.
  102. Customization
  103. * Customizing Faces::
  104. @end detailmenu
  105. @end menu
  106. @node About PCL-CVS
  107. @chapter About PCL-CVS
  108. @cindex About PCL-CVS
  109. PCL-CVS is a front-end to CVS versions 1.9 and later.
  110. It concisely shows the present status of a checked out module in an
  111. Emacs buffer and provides single-key access to the most frequently used CVS
  112. commands. Note that the @code{vc-dir} command (@pxref{VC Directory
  113. Mode, , , emacs, The GNU Emacs Manual}) provides similar
  114. functionality, but for several version control systems, including CVS.
  115. PCL-CVS was originally written many years ago by Per Cederqvist who
  116. proudly maintained it until January 1996, at which point he released the
  117. beta version 2.0b2 and passed on the maintainership to Greg A Woods.
  118. Development stayed mostly dormant for a few years during which
  119. version 2.0 never seemed to be able to leave the ``beta'' stage while a
  120. separate XEmacs version was slowly splitting away. In late 1998,
  121. Stefan Monnier picked up development again, adding some major new
  122. functionality and taking over the maintenance.
  123. @menu
  124. * Contributors:: Contributors to PCL-CVS.
  125. @end menu
  126. @node Contributors
  127. @section Contributors to PCL-CVS
  128. @cindex Contributors
  129. @cindex Authors
  130. Contributions to the package are welcome. I have limited time to work
  131. on this project, but I will gladly add any code that you contribute to
  132. me to this package (@pxref{Bugs}).
  133. The following persons have made contributions to PCL-CVS.
  134. @itemize @bullet
  135. @item
  136. Brian Berliner wrote CVS, together with some other contributors.
  137. Without his work on CVS this package would be useless@dots{}
  138. @item
  139. Per Cederqvist wrote most of the otherwise unattributed functions in
  140. PCL-CVS as well as all the documentation.
  141. @item
  142. @c inge@@lysator.liu.se
  143. Inge Wallin wrote the skeleton of
  144. @file{pcl-cvs.texi}, and gave useful comments on it. He also wrote
  145. the files @file{elib-node.el} and @file{compile-all.el}. The file
  146. @file{cookie.el} was inspired by Inge.
  147. @item
  148. @c linus@@lysator.liu.se
  149. Linus Tolke contributed useful comments
  150. on both the functionality and the documentation.
  151. @item
  152. @c jwz@@jwz.com
  153. Jamie Zawinski contributed
  154. @file{pcl-cvs-lucid.el}, which was later renamed to
  155. @file{pcl-cvs-xemacs.el}.
  156. @item
  157. Leif Lonnblad contributed RCVS support (since superseded by the new
  158. remote CVS support).
  159. @item
  160. @c jimb@@cyclic.com
  161. Jim Blandy contributed hooks to automatically
  162. guess CVS log entries from @file{ChangeLog} contents, and initial support of
  163. the new Cygnus / Cyclic remote CVS, as well as various sundry bug fixes
  164. and cleanups.
  165. @item
  166. @c kingdon@@cyclic.com
  167. Jim Kingdon contributed lots of fixes to
  168. the build and installation procedure.
  169. @item
  170. @c woods@@weird.com
  171. Greg A. Woods contributed code to implement
  172. the use of per-file diff buffers, and vendor join diffs with emerge and
  173. ediff, as well as various and sundry bug fixes and cleanups.
  174. @item
  175. @c greg.klanderman@@alum.mit.edu
  176. Greg Klanderman implemented
  177. toggling of marked files, setting of CVS command flags via prefix
  178. arguments, updated the XEmacs support, updated the manual, and fixed
  179. numerous bugs.
  180. @item
  181. @c monnier@@gnu.org
  182. Stefan Monnier added a slew of other
  183. features and introduced even more new bugs. If there's any bug left,
  184. you can be sure it's his.
  185. @item
  186. @c wordy to avoid an underfull hbox
  187. @c masata-y@@is.aist-nara.ac.jp
  188. Masatake YAMATO made a gracious
  189. contribution of his cvstree code to display a tree of tags which was later
  190. superseded by the new @code{cvs-status-mode}.
  191. @end itemize
  192. Apart from these, a lot of people have sent us suggestions, ideas,
  193. requests, bug reports and encouragement. Thanks a lot! Without you
  194. there would be no new releases of PCL-CVS.
  195. @node Getting started
  196. @chapter Getting started
  197. @cindex Introduction
  198. @cindex Example run
  199. @cindex Sample session
  200. This document assumes that you know what CVS is, and that you at least
  201. know the fundamental concepts of CVS@. If that is not the case, you
  202. should read the CVS documentation. Type @kbd{info -f cvs} or @kbd{man
  203. cvs}.
  204. PCL-CVS is only useful once you have checked out a module. So before
  205. you invoke it, you must have a copy of a module somewhere in the file
  206. system.
  207. You can invoke PCL-CVS by typing @kbd{M-x cvs-examine @key{RET}}.
  208. You can also invoke it via the menu bar, under @samp{Tools}.
  209. Or, if you prefer, you can also invoke PCL-CVS by simply visiting the
  210. CVS administrative subdirectory of your module, with a prefix argument.
  211. For example, to invoke PCL-CVS in a separate frame, type @kbd{C-u C-x 5
  212. f ~/my/project/CVS @key{RET}}.
  213. The function @code{cvs-examine} will ask for a directory. The command
  214. @samp{cvs -n update} will be run in that directory. (It should contain
  215. files that have been checked out from a CVS archive.) The output from
  216. @code{cvs} will be parsed and presented in a table in a buffer called
  217. @file{*cvs*}. It might look something like this:
  218. @example
  219. Repository : /usr/CVSroot
  220. Module : test
  221. Working dir: /users/ceder/FOO/test
  222. In directory .:
  223. Need-Update bar
  224. Need-Update file.txt
  225. Modified namechange
  226. Need-Update newer
  227. In directory sub:
  228. Modified ChangeLog
  229. --------------------- End ---------------------
  230. -- last cmd: cvs -f -z6 -n update -d -P --
  231. @end example
  232. In this example, your repository is in @file{/usr/CVSroot} and CVS has
  233. been run in the directory @file{/users/ceder/FOO/test}. The three files
  234. (@file{bar}, @file{file.txt} and
  235. @file{newer}) that are marked with @samp{Need-Update} have been changed
  236. by someone else in the CVS repository. Two files (@file{namechange}
  237. and @file{sub/ChangeLog}) have been modified locally, and need to be
  238. checked in.
  239. You can move the cursor up and down in the buffer with @kbd{C-n} and
  240. @kbd{C-p} or @kbd{n} and @kbd{p}. If you press @kbd{c} on one of the
  241. @samp{Modified} files, that file will be checked in to the CVS
  242. repository. @xref{Committing changes}. You can also press @kbd{O} to
  243. update any of the files that are marked @samp{Need-Update}. You can
  244. also run @kbd{M-x cvs-update @key{RET}} (bound to @kbd{M-u} in the
  245. @file{*cvs*} buffer) to update all the files.
  246. You can then press @kbd{=} to easily get a @samp{diff} between your
  247. modified file and the base version that you started from, or you can
  248. press @kbd{l} to get the output from @samp{cvs log}. Many more such
  249. commands are available simply by pressing a key (@pxref{Getting info
  250. about files}).
  251. @node Buffer contents
  252. @chapter Buffer contents
  253. @cindex Buffer contents
  254. @cindex @file{*cvs*} buffer contents
  255. The display contains several columns, some of which are optional.
  256. These columns are, from left to right:
  257. @itemize @bullet
  258. @item
  259. Optionally, the head revision of the file. This is the latest version
  260. found in the repository. It might also contain (instead of the head
  261. revision) a sub status which typically gives further information about
  262. how we got to the current state, for example @samp{patched},
  263. @samp{merged}, @dots{}
  264. @item
  265. An asterisk when the file is @dfn{marked} (@pxref{Selected
  266. files}).
  267. @item
  268. The actual status of the file wrt the repository. See below.
  269. @item
  270. Optionally, the base revision of the file. This is the version
  271. which the copy in your working directory is based upon.
  272. @item
  273. The file name.
  274. @end itemize
  275. The @samp{file status} field can have the following values:
  276. @table @samp
  277. @item Modified
  278. The file is modified in your working directory, and there was no
  279. modification to the same file in the repository. This status can have
  280. the following substatus:
  281. @table @samp
  282. @item merged
  283. The file was modified in your working directory, and there were
  284. modifications in the repository as well, but they were merged
  285. successfully, without conflict, in your working directory.
  286. @end table
  287. @item Conflict
  288. A conflict was detected while trying to merge your changes to @var{file}
  289. with changes from the repository. @var{file} (the copy in your
  290. working directory) is now the output of the @code{rcsmerge} command on
  291. the two versions; an unmodified copy of your file is also in your
  292. working directory, with the name @file{.#@var{file}.@var{version}},
  293. where @var{version} is the RCS revision that your modified file started
  294. from. @xref{Viewing differences}, for more details.
  295. A conflict can also come from a disagreement on the existence of the file
  296. rather than on its content. This case is indicated by the following
  297. possible substatus:
  298. @table @samp
  299. @item removed
  300. The file is locally removed but a new revision has been committed to
  301. the repository by someone else.
  302. @item added
  303. The file is locally added and has also been added to the repository
  304. by someone else.
  305. @item modified
  306. The file is locally modified but someone else has removed it from the
  307. repository.
  308. @end table
  309. @item Added
  310. The file has been added by you, but it still needs to be checked in to
  311. the repository.
  312. @item Removed
  313. The file has been removed by you, but it still needs to be checked in to
  314. the repository. You can resurrect it by typing @kbd{a} (@pxref{Adding
  315. and removing files}).
  316. @item Unknown
  317. A file that was detected in your directory, but that neither appears in
  318. the repository, nor is present on the list of files that CVS should
  319. ignore.
  320. @item Up-to-date
  321. The file is up to date with respect to the version in the repository.
  322. This status can have a substatus of:
  323. @table @samp
  324. @item added
  325. You have just added the file to the repository.
  326. @item updated
  327. The file was brought up to date with respect to the repository. This is
  328. done for any file that exists in the repository but not in your source,
  329. and for files that you haven't changed but are not the most recent
  330. versions available in the repository.
  331. @item patched
  332. The file was brought up to date with respect to the remote repository by
  333. way of fetching and applying a patch to the file in your source. This
  334. is equivalent to @samp{updated} except that CVS decided to use a hopefully
  335. more efficient method.
  336. @item committed
  337. You just committed the file.
  338. @end table
  339. @item Need-Update
  340. Either a newer version than the one in your source is available in the
  341. repository and you have not modified your checked out version, or the
  342. file exists in the repository but not in your source. Use
  343. @samp{cvs-mode-update} bound to @kbd{O} to update the file.
  344. @item Need-Merge
  345. You have modified the checked out version of the file, and a newer
  346. version is available in the repository. A merge will take place when
  347. you run a @samp{cvs-update}.
  348. @item Missing
  349. The file has been unexpectedly removed from your working directory
  350. although it has not been @samp{cvs remove}d.
  351. @end table
  352. @node Selected files
  353. @chapter Selected files
  354. @cindex Selected files
  355. @cindex Marked files
  356. @cindex File selection
  357. @cindex Active files
  358. @cindex Applicable
  359. Many of the commands work on the current set of @dfn{selected} files
  360. which can be either the set of marked files (if any file is marked and
  361. marks are not ignored) or whichever file or directory the cursor is on.
  362. If a directory is selected but the command cannot be applied to a
  363. directory, then it will be applied to the set of files under this
  364. directory which are in the @file{*cvs*} buffer.
  365. @findex cvs-mode-force-command
  366. @findex cvs-allow-dir-commit
  367. Furthermore, each command only operates on a subset of the selected
  368. files, depending on whether or not the command is @dfn{applicable} to
  369. each file (based on the file's status). For example,
  370. @code{cvs-mode-commit} is not applicable to a file whose status is
  371. @samp{Need-Update}. If it should happen that PCL-CVS guesses the
  372. applicability wrong, you can override it with the special prefix
  373. @code{cvs-mode-force-command} normally bound to @kbd{M-f} (and file a
  374. bug report). The applicability rule can be slightly changed with
  375. @code{cvs-allow-dir-commit} and @code{cvs-force-dir-tag}.
  376. By default, marks are always in effect (you may change this, however, by
  377. setting the variable @code{cvs-default-ignore-marks}) except for the
  378. commands that @samp{tag} or @samp{diff} a file (which can be changed
  379. with the variable @code{cvs-invert-ignore-marks}).
  380. In addition, you may use the special prefix @code{cvs-mode-toggle-marks}
  381. normally bound to @key{T} to toggle the use of marks for the following
  382. command.
  383. This scheme might seem a little complicated, but once one gets used to
  384. it, it is quite powerful.
  385. For commands to mark and unmark files, see @ref{Marking files}.
  386. @node Commands
  387. @chapter Commands
  388. @iftex
  389. This chapter describes all the commands that you can use in PCL-CVS.
  390. @end iftex
  391. @ifnottex
  392. The nodes in this menu contains explanations about all the commands that
  393. you can use in PCL-CVS@. They are grouped together by type.
  394. @end ifnottex
  395. @menu
  396. * Entering PCL-CVS:: Commands to invoke PCL-CVS
  397. * Setting flags:: Setting flags for CVS commands
  398. * Updating the buffer::
  399. * Movement commands:: How to move up and down in the buffer
  400. * Marking files:: How to mark files that other commands
  401. will later operate on.
  402. * Committing changes:: Checking in your modifications to the
  403. CVS repository.
  404. * Editing files:: Loading files into Emacs.
  405. * Getting info about files:: Display the log and status of files.
  406. * Adding and removing files:: Adding and removing files
  407. * Undoing changes:: Undoing changes
  408. * Removing handled entries:: Uninteresting lines can easily be removed.
  409. * Ignoring files:: Telling CVS to ignore generated files.
  410. * Viewing differences:: Commands to @samp{diff} different versions.
  411. * Invoking Ediff:: Running @samp{ediff} from @file{*cvs*} buffer.
  412. * Updating files:: Updating files that Need-update.
  413. * Tagging files:: Tagging files.
  414. * Miscellaneous commands:: Miscellaneous commands.
  415. @end menu
  416. @node Entering PCL-CVS
  417. @section Entering PCL-CVS
  418. @findex cvs-update
  419. @findex cvs-examine
  420. @findex cvs-status
  421. @findex cvs-checkout
  422. @findex cvs-quickdir
  423. @cindex Creating the *cvs* buffer
  424. Most commands in PCL-CVS require that you have a @file{*cvs*}
  425. buffer. The commands that you use to get one are listed below.
  426. For each, a @samp{cvs} process will be run, the output will be parsed by
  427. PCL-CVS, and the result will be printed in the @file{*cvs*} buffer (see
  428. @ref{Buffer contents}, for a description of the buffer's contents).
  429. @table @kbd
  430. @item M-x cvs-update
  431. Run a @samp{cvs update} command. You will be asked for the directory
  432. in which the @samp{cvs update} will be run.
  433. @item M-x cvs-examine
  434. Run a @samp{cvs -n update} command. This is identical to the previous
  435. command, except that it will only check what needs to be done but will
  436. not change anything. You will be asked for the directory in
  437. which the @samp{cvs -n update} will be run.
  438. @item M-x cvs-status
  439. Run a @samp{cvs status} command. You will be asked for the directory
  440. in which the @samp{cvs status} will be run.
  441. @item M-x cvs-checkout
  442. Run a @samp{cvs checkout} command. You will be asked for the directory
  443. in which the @samp{cvs update} will be run and the module to be checked
  444. out.
  445. @item M-x cvs-quickdir
  446. Populate the @file{*cvs*} buffer by just looking at the @file{CVS/Entries}
  447. files. This is very much like @code{cvs-examine} except that it does
  448. not access the CVS repository, which is a major advantage when the
  449. repository is far away. But of course, it will not be able to detect
  450. when a file needs to be updated or merged.
  451. @end table
  452. @findex cvs-dired-action
  453. @findex cvs-dired-use-hook
  454. The first four of
  455. those commands are also reachable from the menu bar
  456. under @samp{Tools->PCL-CVS}. Finally, an alternative way is to visit
  457. the CVS administrative subdirectory in your work area with a simple
  458. prefix argument. For example @kbd{C-u C-x C-f ~/my/work/CVS @key{RET}}. This
  459. by default runs @code{cvs-quickdir} but the specific behavior can be
  460. changed with @code{cvs-dired-action} and @code{cvs-dired-use-hook}.
  461. By default, the commands above will descend recursively into
  462. subdirectories. You can avoid that behavior by including @samp{-l} in
  463. the flags for the command. These flags can be set by giving a prefix
  464. argument to the command (e.g., by typing
  465. @kbd{C-u M-x cvs-update @key{RET} -l @key{RET}}).
  466. @node Setting flags
  467. @section Setting flags for CVS commands
  468. @cindex Optional switches to CVS
  469. @cindex Command-line options to CVS
  470. This section describes the convention used by nearly all PCL-CVS
  471. commands for setting optional flags sent to CVS@. A single @kbd{C-u}
  472. prefix argument is used to cause the command to prompt for flags to be
  473. used for the current invocation of the command only. Two @kbd{C-u} prefix
  474. arguments are used to prompt for flags which will be set permanently, for the
  475. current invocation and all that follow, until the flags are changed, or
  476. unless temporary flags are set which override them.
  477. Perhaps an example or two is in order. Say you are about to add a
  478. binary file to the repository, and want to specify the flags @samp{-kb}
  479. to @samp{cvs add}. You can type @kbd{C-u a -kb @key{RET}},
  480. and the file will be added. Subsequent @samp{cvs add}
  481. commands will use the previously prevailing flags.
  482. As a second example, say you are about to perform a diff and want to see
  483. the result in unified diff format, i.e., you'd like to pass the flag
  484. @samp{-u} to both @samp{cvs diff} and @samp{diff}. You'd also like all
  485. subsequent diffs to use this flag. You can type @kbd{C-u C-u = -u @key{RET}}
  486. and the diff will be performed, and the default flags will be set to
  487. @code{("-u")}. You can of course override this flag for a single diff
  488. by using a single @kbd{C-u} prefix argument.
  489. @cindex Special prefix
  490. In addition to this, some commands can take @dfn{special prefix} arguments.
  491. These work as follows: When called with a @kbd{C-u} prefix, the user is
  492. prompted for a new value of the special prefix and the special prefix is
  493. activated for the next command. When called without the @kbd{C-u}
  494. prefix, the special prefix is re-activated (with the same value as last
  495. time) for the next command. Calling the prefix command again when it's
  496. already activated deactivates it. Calling it with the @kbd{C-u C-u}
  497. prefix activates it for all subsequent commands until you deactivate it
  498. explicitly. The special prefixes are:
  499. @table @kbd
  500. @item T
  501. Toggles whether or not marks will be active in the next command.
  502. @item b
  503. Provide the next command with a branch (can be any version
  504. specifier) to work on.
  505. @item B
  506. Secondary branch argument. Only meaningful if @kbd{b} is also used.
  507. It can be used to provide a second branch argument to
  508. @code{cvs-mode-diff} or to @code{cvs-mode-update}.
  509. @item M-f
  510. Forces the next command to apply to every selected file rather than only
  511. to the ones PCL-CVS thinks are relevant.
  512. @end table
  513. @node Updating the buffer
  514. @section Updating the @file{*cvs*} buffer
  515. @findex cvs-update
  516. @findex cvs-examine
  517. @findex cvs-status
  518. @findex cvs-mode-update
  519. @findex cvs-mode-examine
  520. @findex cvs-mode-status
  521. The following commands can be used from within the @file{*cvs*} buffer
  522. to update the display:
  523. @table @kbd
  524. @item M-u
  525. Runs the command @samp{cvs-update}.
  526. @item M-e
  527. Runs the command @samp{cvs-examine}.
  528. @item M-s
  529. Runs the command @samp{cvs-status}.
  530. @end table
  531. In addition to the above commands which operate on the whole module,
  532. you can run the equivalent CVS command on just a subset of the
  533. files/directories with these keys:
  534. @table @kbd
  535. @item O
  536. Runs @code{cvs-mode-update} on the selected files. When run on the
  537. top-level directory, this is equivalent to @kbd{M-u}.
  538. @item e
  539. Runs @code{cvs-mode-examine} on the selected files. When run on the
  540. top-level directory, this is equivalent to @kbd{M-e}.
  541. @findex cvs-status-mode
  542. @item s
  543. Runs @code{cvs-mode-status} on the selected files. When run on the
  544. top-level directory, this is equivalent to @kbd{M-s}, except that
  545. CVS output will be shown in a @file{*cvs-info*} buffer that will be
  546. put in @samp{cvs-status-mode}.
  547. @end table
  548. @node Movement commands
  549. @section Movement Commands
  550. @cindex Movement Commands
  551. @findex cvs-mode-next-line
  552. @findex cvs-mode-previous-line
  553. @kindex SPC@r{--Move down one file}
  554. @kindex n@r{--Move down one file}
  555. @kindex p@r{--Move up one file}
  556. You can use most normal Emacs commands to move forward and backward in
  557. the buffer. Some keys are rebound to functions that take advantage of
  558. the fact that the buffer is a PCL-CVS buffer:
  559. @table @kbd
  560. @item @key{SPC}
  561. @itemx n
  562. These keys move the cursor one file forward, towards the end of the
  563. buffer (@code{cvs-mode-next-line}).
  564. @item p
  565. This key moves one file backward, towards the beginning of the buffer
  566. (@code{cvs-mode-previous-line}).
  567. @end table
  568. @node Marking files
  569. @section Marking files
  570. @cindex Selecting files (commands to mark files)
  571. @cindex Marking files
  572. @kindex m@r{--marking a file}
  573. @kindex M@r{--marking all files}
  574. @kindex u@r{--unmark a file}
  575. @kindex ESC DEL@r{--unmark all files}
  576. @kindex DEL@r{--unmark previous file}
  577. @kindex %@r{--mark files matching regexp}
  578. @kindex S@r{--mark files in a particular state}
  579. @kindex T@r{--toggle marks}
  580. @findex cvs-mode-mark
  581. @findex cvs-mode-unmark
  582. @findex cvs-mode-mark-all-files
  583. @findex cvs-mode-unmark-all-files
  584. @findex cvs-mode-unmark-up
  585. @findex cvs-mode-mark-matching-files
  586. @findex cvs-mode-mark-on-state
  587. @findex cvs-mode-toggle-marks
  588. PCL-CVS works on a set of @dfn{selected files} (@pxref{Selected files}).
  589. You can mark and unmark files with these commands:
  590. @table @kbd
  591. @item m
  592. This marks the file that the cursor is positioned on. If the cursor is
  593. positioned on a directory all files in that directory are marked
  594. (@code{cvs-mode-mark}).
  595. @item u
  596. Unmark the file that the cursor is positioned on. If the cursor is on a
  597. directory, all files in that directory are unmarked
  598. (@code{cvs-mode-unmark}).
  599. @item M
  600. Mark @emph{all} files in the buffer (@code{cvs-mode-mark-all-files}).
  601. @item M-@key{DEL}
  602. Unmark @emph{all} files (@code{cvs-mode-unmark-all-files}).
  603. @item @key{DEL}
  604. Unmark the file on the previous line, and move point to that line
  605. (@code{cvs-mode-unmark-up}).
  606. @item %
  607. Mark all files matching a regular expression
  608. (@code{cvs-mode-mark-matching-files}).
  609. @item S
  610. Mark all files in a particular state, such as ``Modified'' or
  611. ``Removed'' (@code{cvs-mode-mark-on-state}).
  612. @item T
  613. Toggle use of marks for the next command (@code{cvs-mode-toggle-marks}).
  614. @end table
  615. @node Committing changes
  616. @section Committing changes
  617. @cindex Committing changes
  618. @findex cvs-mode-commit
  619. @findex cvs-mode-commit-setup
  620. @kindex c@r{--commit files}
  621. @kindex C@r{--commit files with @file{ChangeLog} message}
  622. @vindex cvs-auto-revert@r{ (variable)}
  623. @cindex Commit buffer
  624. @cindex Edit buffer
  625. @cindex Erasing commit message
  626. @cindex Reverting buffers after commit
  627. Committing changes basically works as follows:
  628. @enumerate
  629. @item
  630. After having selected the files you want to commit, you type either
  631. @kbd{c} or @kbd{C} which brings up a special buffer
  632. @file{*cvs-commit*}.
  633. @item
  634. You type in the log message describing the changes you're about to
  635. commit (@pxref{Log Edit Mode}).
  636. @item
  637. When you're happy with it, you type @kbd{C-c C-c} to do the actual
  638. commit.
  639. @end enumerate
  640. There's no hidden state, so you can abort the process or pick it up
  641. again at any time.
  642. @vindex log-edit-confirm@r{ (variable)}
  643. The set of files actually committed is really decided only during the
  644. very last step, which is a mixed blessing. It allows you to go back and
  645. change your mind about which files to commit, but it also means that you
  646. might inadvertently change the set of selected files. To reduce the
  647. risk of error, @kbd{C-c C-c} will ask for confirmation if the set of
  648. selected files has changed between the first step and the last. You can
  649. change this last detail with @code{log-edit-confirm}.
  650. As for the difference between @kbd{c} (i.e., @code{cvs-mode-commit}) and
  651. @kbd{C} (i.e., @code{cvs-mode-commit-setup}) is that the first gets you
  652. straight to @file{*cvs-commit*} without erasing it or changing anything
  653. to its content, while the second first erases @file{*cvs-commit*}
  654. and tries to initialize it with a sane default (it does that by either
  655. using a template provided by the CVS administrator or by extracting a
  656. relevant log message from a @file{ChangeLog} file).
  657. If you are editing the files in your Emacs, an automatic
  658. @samp{revert-buffer} will be performed. (If the file contains
  659. @samp{$@asis{Id}$} keywords, @samp{cvs commit} will write a new file with
  660. the new values substituted. The auto-revert makes sure that you get
  661. them into your buffer.) The revert will not occur if you have modified
  662. your buffer, or if @samp{cvs-auto-revert} is set to
  663. @samp{nil}.
  664. @node Editing files
  665. @section Editing files
  666. @cindex Editing files
  667. @cindex Finding files
  668. @cindex Loading files
  669. @cindex Dired
  670. @cindex Invoking dired
  671. @findex cvs-mode-find-file
  672. @findex cvs-mode-find-file-other-window
  673. @findex cvs-mode-add-change-log-entry-other-window
  674. @kindex f@r{--find file or directory}
  675. @kindex o@r{--find file in other window}
  676. @kindex A@r{--add @file{ChangeLog} entry}
  677. There are currently three commands that can be used to find a file (that
  678. is, load it into a buffer and start editing it there). These commands
  679. work on the line that the cursor is situated at. They always ignore any marked
  680. files.
  681. @table @kbd
  682. @item f
  683. Find the file that the cursor points to (@code{cvs-mode-find-file}). If
  684. the cursor points to a directory, run @code{dired} on that directory;
  685. @inforef{Dired, , emacs}.
  686. @item o
  687. Like @kbd{f}, but use another window
  688. (@code{cvs-mode-find-file-other-window}).
  689. @item A
  690. Invoke @samp{add-change-log-entry-other-window} to edit a
  691. @file{ChangeLog} file. The @file{ChangeLog} file will be found in the
  692. directory of the file the cursor points to, or in a parent of that
  693. directory (@code{cvs-mode-add-change-log-entry-other-window}).
  694. @end table
  695. @node Getting info about files
  696. @section Getting info about files
  697. @cindex Status (cvs command)
  698. @cindex Log (RCS/cvs command)
  699. @cindex Getting status
  700. @kindex l@r{--run @samp{cvs log}}
  701. @kindex s@r{--run @samp{cvs status}}
  702. @findex cvs-mode-log
  703. @findex cvs-mode-status
  704. @table @kbd
  705. @item l
  706. Call the command @code{cvs-mode-log} which runs @samp{cvs log} on all
  707. selected files, and show the result in a temporary buffer
  708. @file{*cvs-info*} (@pxref{Log View Mode}).
  709. @item s
  710. Call the command @code{cvs-mode-status} which runs @samp{cvs status} on
  711. all selected files, and show the result in a temporary buffer
  712. @file{*cvs-info*}.
  713. @c Fixme: reinstate when node is written:
  714. @c (@pxref{CVS Status Mode}).
  715. @end table
  716. @node Adding and removing files
  717. @section Adding and removing files
  718. @cindex Adding files
  719. @cindex Removing files
  720. @cindex Resurrecting files
  721. @cindex Deleting files
  722. @cindex Putting files under CVS control
  723. @kindex a@r{--add a file}
  724. @kindex r@r{--remove a file}
  725. @findex cvs-mode-add
  726. @findex cvs-mode-remove-file
  727. The following commands are available to make it easy to add files to
  728. and remove them from the CVS repository.
  729. @table @kbd
  730. @item a
  731. Add all selected files. This command can be used on @samp{Unknown}
  732. files (@pxref{Buffer contents}). The status of the file will change to
  733. @samp{Added}, and you will have to use @kbd{c} (@samp{cvs-mode-commit}
  734. @pxref{Committing changes}), to really add the file to the
  735. repository.
  736. This command can also be used on @samp{Removed} files (before you commit
  737. them) to resurrect them.
  738. The command that is run is @code{cvs-mode-add}.
  739. @item r
  740. This command removes the selected files (after prompting for
  741. confirmation). The files are deleted from your directory and
  742. (unless the status was @samp{Unknown}; @pxref{Buffer contents}) they will
  743. also be @samp{cvs remove}d. If the files' status was @samp{Unknown}
  744. they will disappear from the buffer. Otherwise their status will change to
  745. @samp{Removed}, and you must use @kbd{c} (@samp{cvs-mode-commit},
  746. @pxref{Committing changes}) to commit the removal.
  747. The command that is run is @code{cvs-mode-remove-file}.
  748. @end table
  749. @node Undoing changes
  750. @section Undoing changes
  751. @cindex Undo changes
  752. @cindex Flush changes
  753. @kindex U@r{--undo changes}
  754. @findex cvs-mode-undo-local-changes
  755. @table @kbd
  756. @item U
  757. If you have modified a file, and for some reason decide that you don't
  758. want to keep the changes, you can undo them with this command. It works
  759. by removing your working copy of the file and then getting the latest
  760. version from the repository (@code{cvs-mode-undo-local-changes}).
  761. @end table
  762. @node Removing handled entries
  763. @section Removing handled entries
  764. @cindex Expunging uninteresting entries
  765. @cindex Uninteresting entries, getting rid of them
  766. @cindex Getting rid of uninteresting lines
  767. @cindex Removing uninteresting (processed) lines
  768. @cindex Handled lines, removing them
  769. @kindex x@r{--remove processed entries}
  770. @kindex C-k@r{--remove selected entries}
  771. @findex cvs-mode-remove-handled
  772. @findex cvs-mode-acknowledge
  773. @findex cvs-mode-ignore
  774. @table @kbd
  775. @item x
  776. This command allows you to remove all entries that you have processed.
  777. More specifically, the lines for @samp{Up-to-date} files (@pxref{Buffer
  778. contents}) are removed from the buffer. If a directory becomes empty
  779. the heading for that directory is also removed. This makes it easier to
  780. get an overview of what needs to be done.
  781. @vindex cvs-mode-remove-handled@r{ (variable)}
  782. @kbd{x} invokes @code{cvs-mode-remove-handled}. If
  783. @samp{cvs-auto-remove-handled} is set to non-@code{nil}, this will
  784. automatically be performed after every commit.
  785. @item C-k
  786. This command can be used for lines that @samp{cvs-mode-remove-handled} would
  787. not delete, but that you want to delete (@code{cvs-mode-acknowledge}).
  788. @end table
  789. @node Ignoring files
  790. @section Ignoring files
  791. @cindex Ignoring files
  792. @kindex i@r{--ignoring files}
  793. @findex cvs-mode-ignore
  794. @table @kbd
  795. @item i
  796. Arrange so that CVS will ignore the selected files. The file names are
  797. added to the @file{.cvsignore} file in the corresponding directory. If
  798. the @file{.cvsignore} file doesn't exist, it will be created.
  799. The @file{.cvsignore} file should normally be added to the repository,
  800. but you could ignore it as well, if you like it better that way.
  801. This runs @code{cvs-mode-ignore}.
  802. @end table
  803. @node Viewing differences
  804. @section Viewing differences
  805. @cindex Diff
  806. @cindex Invoking @code{diff}
  807. @cindex Conflicts, how to resolve them
  808. @cindex Viewing differences
  809. @kindex d=@r{--run @samp{cvs diff}}
  810. @kindex =@r{--run @samp{cvs diff}}
  811. @kindex db@r{--diff against base version}
  812. @kindex dh@r{--diff against head of repository}
  813. @kindex dr@r{--diff between base and head of repository}
  814. @kindex dv@r{--diff against vendor branch}
  815. @kindex dy@r{--diff against yesterday's head}
  816. @findex cvs-mode-diff
  817. @findex cvs-mode-diff-backup
  818. @findex cvs-mode-diff-head
  819. @findex cvs-mode-diff-repository
  820. @findex cvs-mode-diff-vendor
  821. @findex cvs-mode-diff-yesterday
  822. @vindex cvs-invert-ignore-marks@r{ (variable)}
  823. @table @kbd
  824. @item =
  825. @itemx d =
  826. Display a @samp{cvs diff} between the selected files and the version
  827. that they are based on (@code{cvs-mode-diff}).
  828. @item d b
  829. If CVS finds a conflict while merging two versions of a file (during a
  830. @samp{cvs update}, @pxref{Updating the buffer}) it will save the
  831. original file in a file called @file{.#@var{file}.@var{version}} where
  832. @var{file} is the name of the file, and @var{version} is the revision
  833. number that @var{file} was based on.
  834. With the @kbd{d b} command you can run a @samp{diff} on the files
  835. @file{.#@var{file}.@var{version}} and @file{@var{file}}.
  836. @item d h
  837. Display a @samp{cvs diff} between the selected files and the head
  838. revision (the most recent version on the current
  839. branch) in the repository (@code{cvs-mode-diff-head}).
  840. @item d r
  841. Display a @samp{cvs diff} between the base revision of the selected
  842. files and the head revision in the repository. This displays the
  843. changes anyone has committed to the repository since you last executed
  844. a checkout, update or commit operation
  845. (@code{cvs-mode-diff-repository}).
  846. @item d v
  847. Display a @samp{cvs diff} between the selected files and the head
  848. revision of the vendor branch in the repository
  849. (@code{cvs-mode-diff-vendor}).
  850. @item d y
  851. Display a @samp{cvs diff} between the selected files and yesterday's
  852. head revision in the repository
  853. (@code{cvs-mode-diff-yesterday}).
  854. @end table
  855. By default, @samp{diff} commands ignore the marks. This can be changed
  856. with @code{cvs-invert-ignore-marks}.
  857. @node Invoking Ediff
  858. @section Running ediff
  859. @cindex Ediff
  860. @cindex Invoking ediff
  861. @cindex Viewing differences
  862. @cindex Conflicts, how to resolve them
  863. @cindex Resolving conflicts
  864. @kindex e@r{--invoke @samp{ediff}}
  865. @findex cvs-mode-idiff
  866. @findex cvs-mode-imerge
  867. @table @kbd
  868. @vindex cvs-idiff-imerge-handlers@r{ (variable)}
  869. @item d e
  870. This uses @code{ediff} (or @code{emerge}, depending on
  871. @samp{cvs-idiff-imerge-handlers}) to allow you to view diffs.
  872. If a prefix argument is given, PCL-CVS will prompt for a revision against
  873. which the diff should be made, else the default will be to use the BASE
  874. revision.
  875. @cindex Merging with @code{ediff} and @code{emerge}
  876. @item d E
  877. This command use @code{ediff} (or @code{emerge}, see above) to allow you
  878. to do an interactive 3-way merge.
  879. @strong{Please note:} when the file status is @samp{Conflict},
  880. CVS has already performed a merge. The resulting file is not used in
  881. any way if you use this command. If you use the @kbd{q} command inside
  882. @samp{ediff} (to successfully terminate a merge) the file that CVS
  883. created will be overwritten.
  884. @end table
  885. @node Updating files
  886. @section Updating files
  887. @findex cvs-mode-update
  888. @cindex Updating files
  889. @kindex O@r{--update files}
  890. @table @kbd
  891. @item O
  892. Update all selected files with status @samp{Need-update} by running
  893. @samp{cvs update} on them (@code{cvs-mode-update}).
  894. @end table
  895. @node Tagging files
  896. @section Tagging files
  897. @findex cvs-mode-tag
  898. @findex cvs-mode-untag
  899. @findex cvs-rtag
  900. @cindex Tagging files
  901. @kindex M-t@r{--repository tag files}
  902. @kindex t@r{--tag files}
  903. @vindex cvs-invert-ignore-marks@r{ (variable)}
  904. @vindex cvs-force-dir-tag@r{ (variable)}
  905. @table @kbd
  906. @item t
  907. Tag all selected files by running @samp{cvs tag} on
  908. them (@code{cvs-mode-tag}). It's usually preferable to tag a directory
  909. at a time. Rather than selecting all files (which too often doesn't
  910. select all files but only the few that are displayed), clear the
  911. selection with @kbd{M-DEL} (@code{cvs-mode-unmark-all-files}), position
  912. the cursor on the directory you want to tag and hit @kbd{t}.
  913. @end table
  914. By default, @samp{tag} commands ignore the marks. This can be changed
  915. with @code{cvs-invert-ignore-marks}. Also, by default @samp{tag} can
  916. only be applied to directories, see @code{cvs-force-dir-tag} if you want
  917. to change this behavior.
  918. @node Miscellaneous commands
  919. @section Miscellaneous commands
  920. @findex cvs-mode-byte-compile-files
  921. @cindex Recompiling elisp files
  922. @cindex Byte compilation
  923. @findex cvs-mode-delete-lock
  924. @cindex Getting rid of lock files
  925. @cindex Lock files
  926. @kindex q@r{--bury the PCL-CVS buffer}
  927. @findex cvs-bury-buffer
  928. @findex cvs-mode-quit
  929. @cindex Quitting
  930. @kindex h@r{--help}
  931. @kindex ?@r{--help}
  932. @findex cvs-help
  933. @cindex Help
  934. @table @kbd
  935. @item M-x cvs-mode-byte-compile-files
  936. Byte compile all selected files that end in @file{.el}.
  937. @item M-x cvs-mode-delete-lock
  938. This command deletes the lock files that
  939. the @file{*cvs*} buffer informs you about. You should normally never have to
  940. use this command, since CVS tries very carefully to always remove the
  941. lock files itself.
  942. You can only use this command when a message in the @file{*cvs*} buffer tells
  943. you so. You should wait a while before using this command in case
  944. someone else is running a @code{cvs} command.
  945. Also note that this only works if the repository is local.
  946. @item ?
  947. @itemx h
  948. Show a summary of common command key bindings in the echo
  949. area (@code{cvs-help}).
  950. @item q
  951. Bury the PCL-CVS buffer (@code{cvs-bury-buffer}).
  952. @item M-x cvs-mode-quit
  953. Quit PCL-CVS, killing the @file{*cvs*} buffer.
  954. @end table
  955. @node Log Edit Mode
  956. @chapter Editing a Log Message
  957. @cindex Log Edit mode
  958. @cindex mode, Log Edit
  959. Buffers for entering/editing log messages for changes which are about
  960. to be committed are put into Log Edit mode.
  961. Sometimes the log buffer contains default text when you enter it,
  962. typically the last log message entered. If it does, mark and point
  963. are set around the entire contents of the buffer so that it is easy to
  964. kill the contents of the buffer with @kbd{C-w}.
  965. @findex log-edit-insert-changelog
  966. If you work by writing entries in the @file{ChangeLog}
  967. (@pxref{Change Log,,, emacs, The GNU Emacs Manual}) and then commit the change under revision
  968. control, you can generate the Log Edit text from the ChangeLog using
  969. @kbd{C-c C-a} (@kbd{log-edit-insert-changelog}). This looks for
  970. entries for the file(s) concerned in the top entry in the ChangeLog
  971. and uses those paragraphs as the log text. This text is only inserted
  972. if the top entry was made under your user name on the current date.
  973. @xref{Change Logs and VC,,, emacs, The GNU Emacs Manual}, for the opposite way of
  974. working---generating ChangeLog entries from the revision control log.
  975. In the Log Edit buffer, @kbd{C-c C-f} (@kbd{M-x log-edit-show-files})
  976. shows the list of files to be committed in case you need to check
  977. that.
  978. When you have finished editing the log message, type @kbd{C-c C-c} to
  979. exit the buffer and commit the change.
  980. @c Fixme: customization variables
  981. @node Log View Mode
  982. @chapter Browsing a Log of Changes
  983. @cindex Log View mode
  984. @cindex mode, Log View
  985. @cindex output, logs
  986. @findex cvs-mode-log
  987. @findex vc-print-log
  988. Log View mode provides a few useful commands for navigating revision
  989. control log output. It is used for the output buffers of both
  990. @code{cvs-mode-log} and @code{vc-print-log}.
  991. In this mode, @kbd{n} goes to the next message and @kbd{p} goes to the
  992. previous message and @kbd{N} and @kbd{P} go to the next and previous
  993. files, respectively, in multi-file output. With a numeric prefix
  994. argument, these commands move that many messages of files.
  995. @c @node CVS Status Mode
  996. @c @chapter Viewing CVS' Status output
  997. @node Customization
  998. @chapter Customization
  999. @vindex log-edit-changelog-full-paragraphs@r{ (variable)}
  1000. @vindex cvs-auto-remove-handled@r{ (variable)}
  1001. @vindex cvs-auto-remove-directories@r{ (variable)}
  1002. @vindex cvs-update-prog-output-skip-regexp@r{ (variable)}
  1003. @vindex cvs-cvsroot@r{ (variable)}
  1004. @vindex cvs-auto-revert@r{ (variable)}
  1005. @vindex log-edit-require-final-newline@r{ (variable)}
  1006. @vindex cvs-sort-ignore-file@r{ (variable)}
  1007. @cindex Customization
  1008. @cindex Variables, list of all
  1009. @cindex Erasing input buffer
  1010. @cindex Context diff, how to get
  1011. @cindex Unidiff, how to get
  1012. @cindex Automatically remove handled files
  1013. @cindex @samp{-u} option in modules file
  1014. @cindex Modules file (@samp{-u} option)
  1015. @cindex Update program (@samp{-u} option in modules file)
  1016. @cindex Reverting buffers after commit
  1017. @cindex Require final newline
  1018. @cindex Automatically inserting newline
  1019. @cindex Commit message, inserting newline
  1020. @cindex Sorting @file{.cvsignore} file
  1021. @cindex @file{.cvsignore} file, sorting
  1022. @cindex Automatically sorting @file{.cvsignore}
  1023. @cindex @samp{CVSROOT}, overriding
  1024. If you have an idea about any customization that would be handy but
  1025. isn't present in this list, please tell us!
  1026. For info on how to reach us, see @ref{Bugs}.
  1027. @table @samp
  1028. @item cvs-auto-remove-handled
  1029. If this variable is set to any non-@code{nil} value,
  1030. @samp{cvs-mode-remove-handled} will be called every time you check in
  1031. files, after the check-in is ready. @xref{Removing handled
  1032. entries}.
  1033. @item cvs-auto-remove-directories
  1034. If this variable is set to any non-@code{nil} value, directories that do
  1035. not contain any files to be checked in will not be listed in the
  1036. @file{*cvs*} buffer.
  1037. @item cvs-auto-revert
  1038. If this variable is set to any non-@samp{nil} value any buffers you have
  1039. that visit a file that is committed will be automatically reverted.
  1040. This variable defaults to @samp{t}. @xref{Committing changes}.
  1041. @item cvs-update-prog-output-skip-regexp
  1042. The @samp{-u} flag in the @file{modules} file can be used to run a command
  1043. whenever a @samp{cvs update} is performed (see @code{cvs(5)}). This regexp
  1044. is used to search for the last line in that output. It is normally set
  1045. to @samp{$}. That setting is only correct if the command outputs
  1046. nothing. Note that PCL-CVS will get very confused if the command
  1047. outputs @emph{anything} to @code{stderr}.
  1048. @item cvs-cvsroot
  1049. This variable can be set to override @samp{CVSROOT}. It should be a
  1050. string. If it is set, then every time a @code{cvs} command is run, it
  1051. will be called as @samp{cvs -d @var{cvs-cvsroot}@dots{}}. This can be
  1052. useful if your site has several repositories.
  1053. @item log-edit-require-final-newline
  1054. @c wordy to avoid underfull hbox
  1055. When you enter a log message by typing into the
  1056. @file{*cvs-commit-message*} buffer, PCL-CVS normally automatically
  1057. inserts a trailing newline, unless there already is one. This behavior
  1058. can be controlled via @samp{cvs-commit-buffer-require-final-newline}.
  1059. If it is @samp{t} (the default behavior), a newline will always be
  1060. appended. If it is @samp{nil}, newlines will never be appended. Any
  1061. other value causes PCL-CVS to ask the user whenever there is no trailing
  1062. newline in the commit message buffer.
  1063. @findex cvs-mode-changelog-commit
  1064. @item log-edit-changelog-full-paragraphs
  1065. If this variable is non-@code{nil}, include full @file{ChangeLog}
  1066. paragraphs in the CVS log created by @samp{cvs-mode-changelog-commit}.
  1067. This may be set in the local variables section of a @file{ChangeLog}
  1068. file, to indicate the policy for that @file{ChangeLog}.
  1069. @cindex @file{ChangeLog} paragraphs
  1070. A @dfn{@file{ChangeLog} paragraph} is a bunch of log text containing no
  1071. blank lines; a paragraph usually describes a set of changes with a
  1072. single purpose, but perhaps spanning several functions in several files.
  1073. Changes in different paragraphs are unrelated.
  1074. You could argue that the CVS log entry for a file should contain the
  1075. full @file{ChangeLog} paragraph mentioning the change to the file, even though
  1076. it may mention other files, because that gives you the full context you
  1077. need to understand the change. This is the behavior you get when this
  1078. variable is set to @code{t}, the default.
  1079. On the other hand, you could argue that the CVS log entry for a change
  1080. should contain only the text for the changes which occurred in that
  1081. file, because the CVS log is per-file. This is the behavior you get
  1082. when this variable is set to @code{nil}.
  1083. @findex cvs-mode-ignore@r{, and @file{.cvsignore} sorting}
  1084. @item cvs-sort-ignore-file
  1085. If this variable is set to any non-@samp{nil} value, the
  1086. @file{.cvsignore} file will always be sorted whenever you use
  1087. @samp{cvs-mode-ignore} to add a file to it. This option is on by
  1088. default.
  1089. @end table
  1090. @menu
  1091. * Customizing Faces::
  1092. @end menu
  1093. @node Customizing Faces
  1094. @section Customizing Faces
  1095. @vindex cvs-header (face)
  1096. @vindex cvs-filename (face)
  1097. @vindex cvs-unknown (face)
  1098. @vindex cvs-handled (face)
  1099. @vindex cvs-need-action (face)
  1100. @vindex cvs-marked (face)
  1101. @vindex cvs-msg (face)
  1102. PCL-CVS adds a few extra features, including menus, mouse bindings, and
  1103. fontification of the @file{*cvs*} buffer. The faces defined for
  1104. fontification are listed below:
  1105. @table @samp
  1106. @item cvs-header
  1107. used to highlight directory changes.
  1108. @item cvs-filename
  1109. Used to highlight file names.
  1110. @item cvs-unknown
  1111. Used to highlight the status of files which are @samp{Unknown}.
  1112. @item cvs-handled
  1113. Used to highlight the status of files which are handled and
  1114. need no further action.
  1115. @item cvs-need-action
  1116. Used to highlight the status of files which still need action.
  1117. @item cvs-marked
  1118. Used to highlight the marked file indicator (@samp{*}).
  1119. @item cvs-msg
  1120. Used to highlight CVS messages.
  1121. @end table
  1122. @node Bugs
  1123. @chapter Bugs (known and unknown)
  1124. @cindex Reporting bugs and ideas
  1125. @cindex Bugs, how to report them
  1126. @cindex Author, how to reach
  1127. @cindex Email to the author
  1128. @cindex Known bugs
  1129. @cindex Bugs, known
  1130. @cindex FAQ
  1131. @cindex Problems, list of common
  1132. If you find a bug or misfeature, don't hesitate to tell us!
  1133. Use @kbd{M-x report-emacs-bug} to send us a report.
  1134. You can follow the same process for feature requests.
  1135. We prefer discussing one thing at a time. If you find several unrelated
  1136. bugs, please report them separately. If you are running PCL-CVS under
  1137. XEmacs, you should also send a copy of bug reports to
  1138. the @url{http://lists.xemacs.org/mailman/listinfo/xemacs-beta,
  1139. XEmacs mailing list}.
  1140. If you have problems using PCL-CVS or other questions, send them to
  1141. the @url{http://lists.gnu.org/mailman/listinfo/help-gnu-emacs,
  1142. help-gnu-emacs mailing list}. This is a good place to get help, as is
  1143. the @url{http://lists.nongnu.org/mailman/listinfo/info-cvs, info-cvs list}.
  1144. If you have ideas for improvements, or if you have written some
  1145. extensions to this package, we would like to hear from you. We hope that
  1146. you find this package useful!
  1147. Below is a partial list of currently known problems with PCL-CVS.
  1148. @table @asis
  1149. @item Unexpected output from CVS
  1150. Unexpected output from CVS may confuse PCL-CVS@. It will create
  1151. warning messages in the @file{*cvs*} buffer alerting you to any parse errors.
  1152. If you get these messages, please send a bug report to the email
  1153. addresses listed above. Include the contents of the @file{*cvs*} buffer, the
  1154. output of the CVS process (which should be found in the @file{ *cvs-tmp*}
  1155. buffer), and the versions of Emacs, PCL-CVS and CVS you are using.
  1156. @end table
  1157. @node GNU Free Documentation License
  1158. @appendix GNU Free Documentation License
  1159. @include doclicense.texi
  1160. @node Function and Variable Index
  1161. @unnumbered Function and Variable Index
  1162. This is an index of all the functions and variables documented in this
  1163. manual.
  1164. @printindex fn
  1165. @node Concept Index
  1166. @unnumbered Concept Index
  1167. This is an index of concepts discussed in this manual.
  1168. @printindex cp
  1169. @node Key Index
  1170. @unnumbered Key Index
  1171. This index includes an entry for each PCL-CVS key sequence documented in
  1172. this manual.
  1173. @printindex ky
  1174. @bye