2008-06-17 Miles Bader <miles@gnu.org>
+ * mouse.el (mouse-appearance-menu): Use buffer-face-mode.
+
* face-remap.el (buffer-face-mode-face)
(buffer-face-mode-remapping): New variables.
(buffer-face-mode, buffer-face-set, buffer-face-toggle)
(text-scale-increase -1))
((eq choice 'face-remap-reset-base)
(text-scale-mode 0)
- (let ((entry (assq 'default face-remapping-alist)))
- (when entry
- (setq face-remapping-alist
- (remq entry face-remapping-alist))
- (force-window-update (current-buffer)))))
+ (buffer-face-mode 0))
(t
;; Either choice == 'x-select-font, or choice is a
;; symbol whose name is a font.
- (make-local-variable 'face-remapping-alist)
- (apply 'face-remap-add-relative
- 'default
- (font-face-attributes
- (if (eq choice 'x-select-font)
- (x-select-font)
- (symbol-name choice))))
- (force-window-update (current-buffer))))))))
+ (buffer-face-mode-invoke (font-face-attributes
+ (if (eq choice 'x-select-font)
+ (x-select-font)
+ (symbol-name choice)))
+ t (interactive-p))))))))
\f
;;; Bindings for mouse commands.