+2006-04-09 Richard Stallman <rms@gnu.org>
+
+ * textmodes/picture.el (picture-mode-exit): Run picture-mode-exit-hook.
+
+ * play/landmark.el (lm-font-lock-face-O, lm-font-lock-face-X):
+ Make them faces.
+ (lm-font-lock-keywords): Update appropriately.
+
2006-04-10 Kim F. Storm <storm@cua.dk>
* simple.el (filter-buffer-substring): Add NOPROPS arg, so
(defun picture-mode-exit (&optional nostrip)
"Undo `picture-mode' and return to previous major mode.
-With no argument strips whitespace from end of every line in Picture buffer
- otherwise just return to previous mode."
+With no argument, strip whitespace from end of every line in Picture buffer;
+ otherwise, just return to previous mode.
+Runs `picture-mode-exit-hook' at the end."
(interactive "P")
(if (not (eq major-mode 'picture-mode))
(error "You aren't editing a Picture")
(setq major-mode picture-mode-old-major-mode)
(kill-local-variable 'tab-stop-list)
(setq truncate-lines picture-mode-old-truncate-lines)
- (force-mode-line-update)))
+ (force-mode-line-update)
+ (run-hooks 'picture-mode-exit-hook)))
(provide 'picture)