* bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
@ 2017-02-28 17:08 Charles A. Roelli
2017-03-01 8:28 ` martin rudalics
2021-08-14 14:01 ` Lars Ingebrigtsen
0 siblings, 2 replies; 6+ messages in thread
From: Charles A. Roelli @ 2017-02-28 17:08 UTC (permalink / raw)
To: 25901
- 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
2017-02-28 17:08 bug#25901: 25.2; fit-frame-to-buffer not functional in OS X Charles A. Roelli
@ 2017-03-01 8:28 ` martin rudalics
2017-03-01 23:43 ` Glenn Morris
2017-03-02 20:57 ` Charles A. Roelli
2021-08-14 14:01 ` Lars Ingebrigtsen
1 sibling, 2 replies; 6+ messages in thread
From: martin rudalics @ 2017-03-01 8:28 UTC (permalink / raw)
To: Charles A. Roelli, 25901
> - 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
2017-03-01 8:28 ` martin rudalics
@ 2017-03-01 23:43 ` Glenn Morris
2017-03-02 20:57 ` Charles A. Roelli
1 sibling, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2017-03-01 23:43 UTC (permalink / raw)
To: martin rudalics; +Cc: Charles A. Roelli, 25901
>> 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.
[...]
> 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'?
So on OS X, (frame-parameter nil 'display) returns a non-nil value that
is not acceptable for use in places that need a display?
That seems like a recipe for trouble?
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
2017-03-01 8:28 ` martin rudalics
2017-03-01 23:43 ` Glenn Morris
@ 2017-03-02 20:57 ` Charles A. Roelli
1 sibling, 0 replies; 6+ messages in thread
From: Charles A. Roelli @ 2017-03-02 20:57 UTC (permalink / raw)
To: martin rudalics; +Cc: 25901
On Wed, Mar 01 2017 at 09:28:40 am, martin rudalics wrote:
>> - 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
That does work. I don't understand exactly how the display naming
things work on OS X (no time to look into it ATM), but if the docstring
of display-monitor-attributes-list is correct:
Return a list of physical monitor attributes on DISPLAY.
DISPLAY can be a display name, a terminal name, or a frame.
then the DISPLAY argument should work with the return value of
(frame-parameter frame 'display).
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
2017-02-28 17:08 bug#25901: 25.2; fit-frame-to-buffer not functional in OS X Charles A. Roelli
2017-03-01 8:28 ` martin rudalics
@ 2021-08-14 14:01 ` Lars Ingebrigtsen
2022-05-06 15:11 ` Lars Ingebrigtsen
1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-14 14:01 UTC (permalink / raw)
To: Charles A. Roelli; +Cc: 25901
charles@aurox.ch (Charles A. Roelli) writes:
> - 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)
(I'm going through old bug reports that unfortunately got weren't
resolved at the time.)
I'm unable to reproduce this problem in Emacs 28 on the current Macos
version. Are you still seeing this problem?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
2021-08-14 14:01 ` Lars Ingebrigtsen
@ 2022-05-06 15:11 ` Lars Ingebrigtsen
0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-06 15:11 UTC (permalink / raw)
To: Charles A. Roelli; +Cc: 25901
Lars Ingebrigtsen <larsi@gnus.org> writes:
> I'm unable to reproduce this problem in Emacs 28 on the current Macos
> version. Are you still seeing this problem?
More information was requested, but no response was given within a
few months, so I'm closing this bug report. If the problem still exists,
please respond to this email and we'll reopen the bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-05-06 15:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-28 17:08 bug#25901: 25.2; fit-frame-to-buffer not functional in OS X Charles A. Roelli
2017-03-01 8:28 ` martin rudalics
2017-03-01 23:43 ` Glenn Morris
2017-03-02 20:57 ` Charles A. Roelli
2021-08-14 14:01 ` Lars Ingebrigtsen
2022-05-06 15:11 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).