[PATCH] emacs minor mode optional argument
Robin Farine
robin.farine at terminus.org
Sat Sep 10 04:25:21 CDT 2005
Hi,
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.
Robin
diff -r effff847870f contrib/mercurial.el
--- a/contrib/mercurial.el Fri Sep 9 19:19:24 2005
+++ b/contrib/mercurial.el Sat Sep 10 11:11:24 2005
@@ -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
More information about the Mercurial
mailing list