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
+++ b/contrib/mercurial.el
@@ -972,7 +972,8 @@ With a prefix argument, prompt for the p
       (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)