# HG changeset patch # User Robin Farine # Date 1127929323 -7200 # Node ID 68e84563c54055c3c5a11d6d51a6444784744ebc # Parent 51ac9a79f3e5bda2c734106a7a221376f1331066 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. diff -r 51ac9a79f3e5 -r 68e84563c540 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