Emacs: apply kill-local-variable instead of make-local-variable to FORGET
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sat, 22 Jul 2006 23:30:19 +0900
changeset 2667 92ba858ed640
parent 2666 ebf033bc8eb2
child 2668 7a32b7e6c563
Emacs: apply kill-local-variable instead of make-local-variable to FORGET
contrib/mercurial.el
--- a/contrib/mercurial.el	Mon Jul 24 23:06:05 2006 -0700
+++ b/contrib/mercurial.el	Sat Jul 22 23:30:19 2006 +0900
@@ -972,7 +972,8 @@
       (cd (hg-root path)))
     (when update
       (with-current-buffer buf
-	(set (make-local-variable 'backup-inhibited) nil)
+        (when (local-variable-p 'backup-inhibited)
+          (kill-local-variable 'backup-inhibited))
 	(hg-mode-line)))))
 
 (defun hg-incoming (&optional repo)