emacs minor mode optional argument
authorRobin Farine <robin.farine@terminus.org>
Wed, 28 Sep 2005 19:42:03 +0200
changeset 1371 68e84563c540
parent 1359 51ac9a79f3e5
child 1372 544633f0080d
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.
contrib/mercurial.el
--- a/contrib/mercurial.el	Tue Sep 27 18:30:54 2005 -0700
+++ b/contrib/mercurial.el	Wed Sep 28 19:42:03 2005 +0200
@@ -633,7 +633,7 @@
 						     (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