aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/faces.el2
-rw-r--r--lisp/international/mule-diag.el2
-rw-r--r--lisp/menu-bar.el22
-rw-r--r--lisp/mouse.el8
-rw-r--r--lisp/scroll-bar.el8
5 files changed, 15 insertions, 27 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index d5fc3ce834b..426de3b81db 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -2881,7 +2881,7 @@ also the same size as FACE on FRAME, or fail."
2881 pattern face))) 2881 pattern face)))
2882 (error "No fonts match `%s'" pattern))) 2882 (error "No fonts match `%s'" pattern)))
2883 (car fonts)) 2883 (car fonts))
2884 (cdr (assq 'font (frame-parameters (selected-frame)))))) 2884 (frame-parameter nil 'font)))
2885 2885
2886(defcustom font-list-limit 100 2886(defcustom font-list-limit 100
2887 "This variable is obsolete and has no effect." 2887 "This variable is obsolete and has no effect."
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el
index 731d6889ef5..f543083b8c5 100644
--- a/lisp/international/mule-diag.el
+++ b/lisp/international/mule-diag.el
@@ -1114,7 +1114,7 @@ system which uses fontsets)."
1114 (insert "\n\n") 1114 (insert "\n\n")
1115 1115
1116 (if window-system 1116 (if window-system
1117 (let ((font (cdr (assq 'font (frame-parameters))))) 1117 (let ((font (frame-parameter nil 'font)))
1118 (insert "The font and fontset of the selected frame are:\n" 1118 (insert "The font and fontset of the selected frame are:\n"
1119 " font: " font "\n" 1119 " font: " font "\n"
1120 " fontset: " (face-attribute 'default :fontset) "\n")) 1120 " fontset: " (face-attribute 'default :fontset) "\n"))
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index a6541182e24..c4f094a1793 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -989,49 +989,43 @@ The selected font will be the default on both the existing and future frames."
989 (customize-set-variable 'horizontal-scroll-bar-mode nil)) 989 (customize-set-variable 'horizontal-scroll-bar-mode nil))
990 990
991(defvar menu-bar-showhide-scroll-bar-menu 991(defvar menu-bar-showhide-scroll-bar-menu
992 (let ((menu (make-sparse-keymap "Scroll-bar"))) 992 (let ((menu (make-sparse-keymap "Scroll-bar"))
993 (vsb (frame-parameter nil 'vertical-scroll-bars))
994 (hsb (frame-parameter nil 'horizontal-scroll-bars)))
993 (bindings--define-key menu [horizontal] 995 (bindings--define-key menu [horizontal]
994 '(menu-item "Horizontal" 996 '(menu-item "Horizontal"
995 menu-bar-horizontal-scroll-bar 997 menu-bar-horizontal-scroll-bar
996 :help "Horizontal scroll bar" 998 :help "Horizontal scroll bar"
997 :visible (horizontal-scroll-bars-available-p) 999 :visible (horizontal-scroll-bars-available-p)
998 :button (:radio . (cdr (assq 'horizontal-scroll-bars 1000 :button (:radio . hsb)))
999 (frame-parameters))))))
1000 1001
1001 (bindings--define-key menu [none-horizontal] 1002 (bindings--define-key menu [none-horizontal]
1002 '(menu-item "None-horizontal" 1003 '(menu-item "None-horizontal"
1003 menu-bar-no-horizontal-scroll-bar 1004 menu-bar-no-horizontal-scroll-bar
1004 :help "Turn off horizontal scroll bars" 1005 :help "Turn off horizontal scroll bars"
1005 :visible (horizontal-scroll-bars-available-p) 1006 :visible (horizontal-scroll-bars-available-p)
1006 :button (:radio . (not (cdr (assq 'horizontal-scroll-bars 1007 :button (:radio . (not hsb))))
1007 (frame-parameters)))))))
1008 1008
1009 (bindings--define-key menu [right] 1009 (bindings--define-key menu [right]
1010 '(menu-item "On the Right" 1010 '(menu-item "On the Right"
1011 menu-bar-right-scroll-bar 1011 menu-bar-right-scroll-bar
1012 :help "Scroll-bar on the right side" 1012 :help "Scroll-bar on the right side"
1013 :visible (display-graphic-p) 1013 :visible (display-graphic-p)
1014 :button (:radio . (eq (cdr (assq 'vertical-scroll-bars 1014 :button (:radio . (eq vsb 'right))))
1015 (frame-parameters)))
1016 'right))))
1017 1015
1018 (bindings--define-key menu [left] 1016 (bindings--define-key menu [left]
1019 '(menu-item "On the Left" 1017 '(menu-item "On the Left"
1020 menu-bar-left-scroll-bar 1018 menu-bar-left-scroll-bar
1021 :help "Scroll-bar on the left side" 1019 :help "Scroll-bar on the left side"
1022 :visible (display-graphic-p) 1020 :visible (display-graphic-p)
1023 :button (:radio . (eq (cdr (assq 'vertical-scroll-bars 1021 :button (:radio . (eq vsb 'left))))
1024 (frame-parameters)))
1025 'left))))
1026 1022
1027 (bindings--define-key menu [none] 1023 (bindings--define-key menu [none]
1028 '(menu-item "None" 1024 '(menu-item "None"
1029 menu-bar-no-scroll-bar 1025 menu-bar-no-scroll-bar
1030 :help "Turn off scroll-bar" 1026 :help "Turn off scroll-bar"
1031 :visible (display-graphic-p) 1027 :visible (display-graphic-p)
1032 :button (:radio . (eq (cdr (assq 'vertical-scroll-bars 1028 :button (:radio . (nilp vsb))))
1033 (frame-parameters)))
1034 nil))))
1035 menu)) 1029 menu))
1036 1030
1037(defun menu-bar-frame-for-menubar () 1031(defun menu-bar-frame-for-menubar ()
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 8d727536e05..53d5a22167e 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -420,10 +420,8 @@ must be one of the symbols `header', `mode', or `vertical'."
420 (let ((divider-width (frame-right-divider-width frame))) 420 (let ((divider-width (frame-right-divider-width frame)))
421 (when (and (or (not (numberp divider-width)) 421 (when (and (or (not (numberp divider-width))
422 (zerop divider-width)) 422 (zerop divider-width))
423 (eq (cdr (assq 'vertical-scroll-bars 423 (eq (frame-parameter frame 'vertical-scroll-bars) 'left))
424 (frame-parameters frame))) 424 (setq window (window-in-direction 'left window t))))))
425 'left))
426 (setq window (window-in-direction 'left window t))))))
427 425
428 (let* ((exitfun nil) 426 (let* ((exitfun nil)
429 (move 427 (move
@@ -1705,7 +1703,7 @@ and selects that window."
1705;; Font selection. 1703;; Font selection.
1706 1704
1707(defun font-menu-add-default () 1705(defun font-menu-add-default ()
1708 (let* ((default (cdr (assq 'font (frame-parameters (selected-frame))))) 1706 (let* ((default (frame-parameter nil 'font))
1709 (font-alist x-fixed-font-alist) 1707 (font-alist x-fixed-font-alist)
1710 (elt (or (assoc "Misc" font-alist) (nth 1 font-alist)))) 1708 (elt (or (assoc "Misc" font-alist) (nth 1 font-alist))))
1711 (if (assoc "Default" elt) 1709 (if (assoc "Default" elt)
diff --git a/lisp/scroll-bar.el b/lisp/scroll-bar.el
index 838f9bf80cd..e5fe31675da 100644
--- a/lisp/scroll-bar.el
+++ b/lisp/scroll-bar.el
@@ -183,9 +183,7 @@ when they are turned on; if it is nil, they go on the left."
183 (interactive "P") 183 (interactive "P")
184 (if (null arg) 184 (if (null arg)
185 (setq arg 185 (setq arg
186 (if (cdr (assq 'vertical-scroll-bars 186 (if (frame-parameter nil 'vertical-scroll-bars) -1 1))
187 (frame-parameters (selected-frame))))
188 -1 1))
189 (setq arg (prefix-numeric-value arg))) 187 (setq arg (prefix-numeric-value arg)))
190 (modify-frame-parameters 188 (modify-frame-parameters
191 (selected-frame) 189 (selected-frame)
@@ -199,9 +197,7 @@ With ARG, turn vertical scroll bars on if and only if ARG is positive."
199 (interactive "P") 197 (interactive "P")
200 (if (null arg) 198 (if (null arg)
201 (setq arg 199 (setq arg
202 (if (cdr (assq 'horizontal-scroll-bars 200 (if (frame-parameter nil 'horizontal-scroll-bars) -1 1))
203 (frame-parameters (selected-frame))))
204 -1 1))
205 (setq arg (prefix-numeric-value arg))) 201 (setq arg (prefix-numeric-value arg)))
206 (modify-frame-parameters 202 (modify-frame-parameters
207 (selected-frame) 203 (selected-frame)