bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25901: 25.2; fit-frame-to-buffer not functional in OS X


From: martin rudalics
Subject: bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
Date: Wed, 01 Mar 2017 09:28:40 +0100

> - emacs -Q
> - (M-x toggle-debug-on-error)
> - M-x fit-frame-to-buffer
>
> Debugger entered--Lisp error: (wrong-type-argument terminal-live-p "gray")
>    ns-display-monitor-attributes-list("gray")
>    display-monitor-attributes-list("gray")
>    fit-frame-to-buffer()
>    funcall-interactively(fit-frame-to-buffer)
>
> "gray" is the hostname of the machine.
>
>   GNU Emacs 25.2.1 (x86_64-apple-darwin10.8.0, NS appkit-1038.36 Version 
10.6.8 (Build 10K549))
>   of 2017-02-22 built on gray
> Windowing system distributor 'Apple', version 10.3.1038
> Configured using:
>   'configure --with-modules'
>
> Configured features:
> JPEG RSVG NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

Too bad.  Does it work when you replace

             (monitor-attributes (car (display-monitor-attributes-list
                                       (frame-parameter frame 'display))))

by

             (monitor-attributes (car (display-monitor-attributes-list frame)))

in ‘fit-frame-to-buffer’?

martin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]