diff contrib/mercurial.el @ 1371:68e84563c540

emacs minor mode optional argument With GNU Emacs 21.4.1 and desktop save/restore enabled, loading "mercurial.el" from ".emacs" breaks Emacs' initialization sequence when the desktop restore code loads a file under Mercurial control. The function 'desktop-create-buffer' passes an argument to each minor mode it activates for the buffer.
author Robin Farine <robin.farine@terminus.org>
date Wed, 28 Sep 2005 19:42:03 +0200
parents 2073e5a71008
children c4a2d8502cc0 3d58376a7103
line wrap: on
line diff
--- a/contrib/mercurial.el
+++ b/contrib/mercurial.el
@@ -633,7 +633,7 @@ the file."
 						     (modified . "m")))))))
       status)))
 
-(defun hg-mode ()
+(defun hg-mode (&optional toggle)
   "Minor mode for Mercurial distributed SCM integration.
 
 The Mercurial mode user interface is based on that of VC mode, so if