for the displayed buffer (bug#4887).
2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
+ * emacs-lisp/shadow.el (list-load-path-shadows): Setup a major mode
+ for the displayed buffer (bug#4887).
+
* man.el (Man-completion-table): New function.
(man): Use it.
;; Create the *Shadows* buffer and display shadowings there.
(let ((string (buffer-string)))
(with-current-buffer (get-buffer-create "*Shadows*")
+ (fundamental-mode) ;run after-change-major-mode-hook.
(display-buffer (current-buffer))
(setq buffer-undo-list t
buffer-read-only nil)