GNU bug report logs - #25901
25.2; fit-frame-to-buffer not functional in OS X

Previous Next

Package: emacs;

Reported by: charles <at> aurox.ch (Charles A. Roelli)

Date: Tue, 28 Feb 2017 17:09:02 UTC

Severity: normal

Found in version 25.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25901 in the body.
You can then email your comments to 25901 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#25901; Package emacs. (Tue, 28 Feb 2017 17:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to charles <at> aurox.ch (Charles A. Roelli):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 28 Feb 2017 17:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: charles <at> aurox.ch (Charles A. Roelli)
To: bug-gnu-emacs <at> gnu.org
Subject: 25.2; fit-frame-to-buffer not functional in OS X
Date: Tue, 28 Feb 2017 18:08:38 +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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25901; Package emacs. (Wed, 01 Mar 2017 08:30:04 GMT) Full text and rfc822 format available.

Message #8 received at 25901 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: "Charles A. Roelli" <charles <at> aurox.ch>, 25901 <at> debbugs.gnu.org
Subject: Re: 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





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25901; Package emacs. (Wed, 01 Mar 2017 23:44:01 GMT) Full text and rfc822 format available.

Message #11 received at 25901 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: "Charles A. Roelli" <charles <at> aurox.ch>, 25901 <at> debbugs.gnu.org
Subject: Re: bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
Date: Wed, 01 Mar 2017 18:43:02 -0500
>>    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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25901; Package emacs. (Thu, 02 Mar 2017 20:58:01 GMT) Full text and rfc822 format available.

Message #14 received at 25901 <at> debbugs.gnu.org (full text, mbox):

From: charles <at> aurox.ch (Charles A. Roelli)
To: martin rudalics <rudalics <at> gmx.at>
Cc: 25901 <at> debbugs.gnu.org
Subject: Re: bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
Date: Thu, 02 Mar 2017 21:57:36 +0100
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).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25901; Package emacs. (Sat, 14 Aug 2021 14:02:02 GMT) Full text and rfc822 format available.

Message #17 received at 25901 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: charles <at> aurox.ch (Charles A. Roelli)
Cc: 25901 <at> debbugs.gnu.org
Subject: Re: bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
Date: Sat, 14 Aug 2021 16:01:12 +0200
charles <at> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25901; Package emacs. (Fri, 06 May 2022 15:12:02 GMT) Full text and rfc822 format available.

Message #20 received at 25901 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: charles <at> aurox.ch (Charles A. Roelli)
Cc: 25901 <at> debbugs.gnu.org
Subject: Re: bug#25901: 25.2; fit-frame-to-buffer not functional in OS X
Date: Fri, 06 May 2022 17:11:01 +0200
Lars Ingebrigtsen <larsi <at> 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




bug closed, send any further explanations to 25901 <at> debbugs.gnu.org and charles <at> aurox.ch (Charles A. Roelli) Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 06 May 2022 15:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 04 Jun 2022 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.