+2013-01-30 Juri Linkov <juri@jurta.org>
+
+ * frame.el (toggle-frame-maximized, toggle-frame-fullscreen):
+ Use fullboth as an alias for fullscreen. Suggested by Jan Djärv in
+ <http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00203.html>.
+
2013-01-30 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/make-mode.el (makefile-backslash-region): Don't compute
after disabling fullscreen mode.
See also `toggle-frame-fullscreen'."
(interactive)
- (if (eq (frame-parameter nil 'fullscreen) 'fullscreen)
+ (if (memq (frame-parameter nil 'fullscreen) '(fullscreen fullboth))
(modify-frame-parameters
nil
`((maximized
(modify-frame-parameters
nil
`((maximized
- . ,(unless (eq (frame-parameter nil 'fullscreen) 'fullscreen)
+ . ,(unless (memq (frame-parameter nil 'fullscreen) '(fullscreen fullboth))
(frame-parameter nil 'fullscreen)))
(fullscreen
- . ,(if (eq (frame-parameter nil 'fullscreen) 'fullscreen)
+ . ,(if (memq (frame-parameter nil 'fullscreen) '(fullscreen fullboth))
(if (eq (frame-parameter nil 'maximized) 'maximized)
'maximized)
'fullscreen)))))