{"comment":{"created_at":"2011-10-24T14:47:11Z","body":"I guess you are right. Thank you.","updated_at":"2011-10-24T14:47:11Z","url":"https://api.github.com/repos/magit/magit/issues/comments/2504320","id":2504320,"user":{"avatar_url":"https://secure.gravatar.com/avatar/3520b54f71411005bbe731e3d2e1d649?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3520b54f71411005bbe731e3d2e1d649","url":"https://api.github.com/users/christopherschmidt","id":1061531,"login":"christopherschmidt"}},"action":"created","issue":{"number":276,"created_at":"2011-09-30T15:35:12Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I am using a custom display-buffer-function which displays magit in a special popup-window.  This function also enables a special minor mode with some key binding, such as \"q\" for killing the popup-window.  I set the keymap of the popup window via minor-mode-overriding-map-alist.\r\n\r\nNow here's the problem: inside magit-mode kill-all-local-variables is called.  As minor-mode-overriding-map-alist is\r\nbuffer-local, this variable is reset and my keymap is gone.  Therefore is it possible to setup magit-mode before calling magit-status-buffer-switch-function?\r\n\r\n-(funcall magit-status-buffer-switch-function buf)\r\n(magit-mode-init topdir 'status #'magit-refresh-status)\r\n-(magit-status-mode t)))))\r\n+(magit-status-mode t)\r\n+(funcall magit-status-buffer-switch-function buf)))))\r\n","comments":4,"title":"kill-all-local-variables abuse","updated_at":"2011-10-24T14:47:11Z","url":"https://api.github.com/repos/magit/magit/issues/276","id":1786707,"assignee":null,"milestone":null,"closed_at":"2011-10-24T14:47:11Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/3520b54f71411005bbe731e3d2e1d649?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3520b54f71411005bbe731e3d2e1d649","url":"https://api.github.com/users/christopherschmidt","id":1061531,"login":"christopherschmidt"},"html_url":"https://github.com/magit/magit/issues/276","labels":[],"state":"closed"},"legacy":{"issue_id":1786707,"comment_id":2504320}}