(list-load-path-shadows): Setup a major mode

for the displayed buffer (bug#4887).
This commit is contained in:
Stefan Monnier 2009-11-24 21:36:10 +00:00
parent 28259cac70
commit 32fe5377a3
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,8 @@
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.

View file

@ -234,6 +234,7 @@ function, `find-emacs-lisp-shadows'."
;; 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)