aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-12-08 01:14:10 +0000
committerLuc Teirlinck2004-12-08 01:14:10 +0000
commit91c5141258ec8dc828d8b558e3df72696ca9aa4e (patch)
tree7b1ab9f3de0f456812bd1c92f2fa1d08fc168acb
parentb680abcbeb4b5192c35a5602a8d6e9240ffdde74 (diff)
downloademacs-91c5141258ec8dc828d8b558e3df72696ca9aa4e.tar.gz
emacs-91c5141258ec8dc828d8b558e3df72696ca9aa4e.zip
(mouse-set-font): Handle the case where the command was not invoked
using the mouse.
-rw-r--r--lisp/mouse.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 912048cd1de..b2fa71dde24 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -2201,7 +2201,9 @@ and selects that window."
2201 (progn (unless (display-multi-font-p) 2201 (progn (unless (display-multi-font-p)
2202 (error "Cannot change fonts on this display")) 2202 (error "Cannot change fonts on this display"))
2203 (x-popup-menu 2203 (x-popup-menu
2204 last-nonmenu-event 2204 (if (listp last-nonmenu-event)
2205 last-nonmenu-event
2206 (list '(0 0) (selected-window)))
2205 ;; Append list of fontsets currently defined. 2207 ;; Append list of fontsets currently defined.
2206 (append x-fixed-font-alist (list (generate-fontset-menu)))))) 2208 (append x-fixed-font-alist (list (generate-fontset-menu))))))
2207 (if fonts 2209 (if fonts