comparison 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
comparison
equal deleted inserted replaced
1359:51ac9a79f3e5 1371:68e84563c540
631 (removed . "r") 631 (removed . "r")
632 (added . "a") 632 (added . "a")
633 (modified . "m"))))))) 633 (modified . "m")))))))
634 status))) 634 status)))
635 635
636 (defun hg-mode () 636 (defun hg-mode (&optional toggle)
637 "Minor mode for Mercurial distributed SCM integration. 637 "Minor mode for Mercurial distributed SCM integration.
638 638
639 The Mercurial mode user interface is based on that of VC mode, so if 639 The Mercurial mode user interface is based on that of VC mode, so if
640 you're already familiar with VC, the same keybindings and functions 640 you're already familiar with VC, the same keybindings and functions
641 will generally work. 641 will generally work.