Search: 
 
View
  By section
  As outline
  Fully expanded

FAQ sections
  cvs

Questions
  Getting account
  Getting started
  cvs-remote-links
  CVS Clients
  cvs-local-resources
  common-commands
  common-tasks
  CVS and Eclipse
  admin-commands
  EDITOR-variable
  no password
  cvs-laptop
  change-password
  cvs-authoring
  Administrator/mkpasswd
  CVS account name
  Cygwin home dir
  Cygwin CR/NL problems
  Who gets one?
  anonymous access
  SCCS/RCS/CVS conversion
  Failed to connect . . .
  cvs update is slow
  cvs mail
  Cygwin copy & paste
  CVS Web Interface
  SVN vs CVS
  CVS on the Mac
 
Software Development
FAQ
CVS
Previous section  |  This section  |  Next section
Previous question  |  This question  |  Next question

EDITOR Variable
Christopher Brooks, 27 Aug 1999
Last updated: 21 Oct 2002

When CVS commits a change, it needs a log message. One quick workaround is to use the -m "log message" option to commit:

cvs commit -m "Fixed off by one error" foo.java
If you do not use the -m option, then CVS will need a log message. When CVS needs a log message, it reads the EDITOR environment variable to determine which editor to startup.

If you set EDITOR to emacs, then each time CVS needs a log message it will start up an emacs. If you always have an emacs process running. Consider using emacsclient instead.

  1. Edit your ~/.emacs file and add
    (server-start)
    
    to it
  2. Edit your ~/.cshrc file and add
    setenv EDITOR emacsclient
    
Now, when you CVS needs a log message, it will bring up a window in your emacs process. When you are done editing, type C-x #

For more information about emacsclient, start up emacs and type M-x info and search for the emacs online documentation.

There is an easier solution:
If you use emacs as your editor, then you can use C-x C-q to commit your change. After filling in the message, type C-c C-c to exit the log message editor window. For C-x C-q to work with CVS from a laptop you must have your laptop set up so that it does not require a password when committing a cvs change. See How do I use CVS without typing my password each time? for details.

 
Previous section  |  This section  |  Next section
Previous question  |  This question  |  Next question
You are not logged in
©1998-2008 GSRC