GNU bug report logs - #66190
30.0.50; ns-use-proxy-icon has no effect on macOS 12.6.9

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Mon, 25 Sep 2023 09:22:02 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 29.2

Done: Stefan Kangas <stefankangas <at> gmail.com>

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 66190 in the body.
You can then email your comments to 66190 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 alan <at> idiocy.org, bug-gnu-emacs <at> gnu.org:
bug#66190; Package emacs. (Mon, 25 Sep 2023 09:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefankangas <at> gmail.com>:
New bug report received and forwarded. Copy sent to alan <at> idiocy.org, bug-gnu-emacs <at> gnu.org. (Mon, 25 Sep 2023 09:22:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; ns-use-proxy-icon has no effect on macOS 12.6.9
Date: Mon, 25 Sep 2023 02:20:51 -0700
[Message part 1 (text/plain, inline)]
In emacs -Q, the `ns-use-proxy-icon' option (introduced in Emacs 27)
doesn't appear to have any effect on macOS 12.6.9.  See the attached
screenshot, and compare it to the one here:

https://emacs.stackexchange.com/questions/33680/how-to-remove-the-icon-in-the-titlebar

Changing the value to nil also seems to have no effect.

While we're at it, the documentation of this could be clearer; neither
the manual nor the docstring explain what a "proxy icon" even is.  I had
to search online, and find the above link, to understand what it is
supposed to do.

In addition, can this variable be set in a running Emacs?  The above
Stackoverflow link suggests that you might need to restart Emacs, but
AFAICT there is nothing about that in our documentation.

Am I missing something about how this is supposed to work?


In GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin21.6.0, NS
 appkit-2113.60 Version 12.6.9 (Build 21G726)) of 2023-09-25 built on
 MY-MacBook-Pro
Repository revision: 22fe8955c21dbcc5c7c422a9917f77bf73794cc4
Repository branch: HEAD
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.6.9

Configured using:
 'configure --with-native-compilation'

Configured features:
ACL GIF GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY
KQUEUE NS PDUMPER PNG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XIM ZLIB

Important settings:
  value of $LC_COLLATE: C
  value of $LC_CTYPE: sv_SE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr compile comint ansi-osc ansi-color ring emacsbug
message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec
password-cache epa derived epg rfc6068 epg-config gnus-util
text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date cl-print byte-opt comp comp-cstr
warnings icons subr-x rx cl-seq cl-macs gv cl-extra bytecomp
byte-compile thingatpt help-fns radix-tree help-mode cl-loaddefs cl-lib
rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win touch-screen tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads kqueue cocoa ns lcms2
multi-tty make-network-process native-compile emacs)

Memory information:
((conses 16 98657 9013) (symbols 48 8006 0) (strings 32 24246 1887)
 (string-bytes 1 712069) (vectors 16 17617)
 (vector-slots 8 357076 11706) (floats 8 32 44) (intervals 56 294 0)
 (buffers 992 13))
[ns-use-proxy-icon.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66190; Package emacs. (Mon, 25 Sep 2023 10:59:01 GMT) Full text and rfc822 format available.

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

From: Alan Third <alan <at> idiocy.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 66190 <at> debbugs.gnu.org
Subject: Re: bug#66190: 30.0.50; ns-use-proxy-icon has no effect on macOS
 12.6.9
Date: Mon, 25 Sep 2023 11:57:55 +0100
On Mon, Sep 25, 2023 at 02:20:51AM -0700, Stefan Kangas wrote:
> In emacs -Q, the `ns-use-proxy-icon' option (introduced in Emacs 27)
> doesn't appear to have any effect on macOS 12.6.9.  See the attached
> screenshot, and compare it to the one here:
> 
> https://emacs.stackexchange.com/questions/33680/how-to-remove-the-icon-in-the-titlebar
> 
> Changing the value to nil also seems to have no effect.

A quick search indicates that you may need to enable it in the system
Accessibility settings. Or possibly just mouse-over the space next to
the title.

I've never even seen a real machine running macOS > 10, so I've no
idea what Apple have done to the title bar.

> While we're at it, the documentation of this could be clearer; neither
> the manual nor the docstring explain what a "proxy icon" even is.  I had
> to search online, and find the above link, to understand what it is
> supposed to do.

I honestly don't know what it's for. I think you can maybe drag it to
other applications like you can drag icons from Finder?

IIRC the main driver for implementing that option was that we used to
have one single variable that controlled the text in the titlebar and
the proxy icon, and it was inflexible and behaved very differently
from other terms. So I separated it out and made it compatible.

> In addition, can this variable be set in a running Emacs?  The above
> Stackoverflow link suggests that you might need to restart Emacs, but
> AFAICT there is nothing about that in our documentation.

I'm pretty sure he only suggests restarting because he's setting it in
his .emacs file and doesn't realise he can run it right there.

-- 
Alan Third




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66190; Package emacs. (Mon, 25 Sep 2023 11:40:02 GMT) Full text and rfc822 format available.

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

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Alan Third <alan <at> idiocy.org>
Cc: Stefan Kangas <stefankangas <at> gmail.com>, 66190 <at> debbugs.gnu.org
Subject: Re: bug#66190: 30.0.50; ns-use-proxy-icon has no effect on macOS
 12.6.9
Date: Mon, 25 Sep 2023 13:39:02 +0200
Alan Third <alan <at> idiocy.org> writes:

> I've never even seen a real machine running macOS > 10, so I've no
> idea what Apple have done to the title bar.

It's still there in Ventura (macOS 13).  You might have to disable
Emacs' tool-bar-mode, though, to see it.

>> While we're at it, the documentation of this could be clearer; neither
>> the manual nor the docstring explain what a "proxy icon" even is.  I had
>> to search online, and find the above link, to understand what it is
>> supposed to do.
>
> I honestly don't know what it's for. I think you can maybe drag it to
> other applications like you can drag icons from Finder?

Yup.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66190; Package emacs. (Mon, 25 Sep 2023 11:55:02 GMT) Full text and rfc822 format available.

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

From: Alan Third <alan <at> idiocy.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 66190 <at> debbugs.gnu.org
Subject: Re: bug#66190: 30.0.50; ns-use-proxy-icon has no effect on macOS
 12.6.9
Date: Mon, 25 Sep 2023 12:53:55 +0100
On Mon, Sep 25, 2023 at 02:20:51AM -0700, Stefan Kangas wrote:
> 
> Am I missing something about how this is supposed to work?

Oh, I just remembered. The proxy icon represents a file, so if there's
no file on the filesystem, there's no icon.

So *scratch* will never display a proxy icon.
-- 
Alan Third




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Sun, 01 Oct 2023 13:43:02 GMT) Full text and rfc822 format available.

Notification sent to Stefan Kangas <stefankangas <at> gmail.com>:
bug acknowledged by developer. (Sun, 01 Oct 2023 13:43:02 GMT) Full text and rfc822 format available.

Message #19 received at 66190-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Cc: Alan Third <alan <at> idiocy.org>, 66190-done <at> debbugs.gnu.org
Subject: Re: bug#66190: 30.0.50;
 ns-use-proxy-icon has no effect on macOS 12.6.9
Date: Sun, 1 Oct 2023 06:41:36 -0700
Version: 29.2

Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:

> Alan Third <alan <at> idiocy.org> writes:
>
>> I've never even seen a real machine running macOS > 10, so I've no
>> idea what Apple have done to the title bar.
>
> It's still there in Ventura (macOS 13).  You might have to disable
> Emacs' tool-bar-mode, though, to see it.
>
>>> While we're at it, the documentation of this could be clearer; neither
>>> the manual nor the docstring explain what a "proxy icon" even is.  I had
>>> to search online, and find the above link, to understand what it is
>>> supposed to do.
>>
>> I honestly don't know what it's for. I think you can maybe drag it to
>> other applications like you can drag icons from Finder?
>
> Yup.

Thanks, disabling tool-bar-mode and dragging it to another application
works here.

I've now installed a fix on emacs-29, which should hopefully make the
situation a bit more clear [1: 3ef259e28a8].  Let me know if you see
anything there that could be improved.

[1: 3ef259e28a8]: 2023-10-01 15:37:06 +0200
  Improve documentation of `ns-use-proxy-icon`
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3ef259e28a84049fdb4499c9ad81ed2c3216f76b




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66190; Package emacs. (Sun, 01 Oct 2023 14:08:02 GMT) Full text and rfc822 format available.

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

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: 66190 <at> debbugs.gnu.org
Cc: stefankangas <at> gmail.com
Subject: Re: bug#66190: 30.0.50; ns-use-proxy-icon has no effect on macOS
 12.6.9
Date: Sun, 01 Oct 2023 16:06:52 +0200
Stefan Kangas <stefankangas <at> gmail.com> writes:

> I've now installed a fix on emacs-29, which should hopefully make the
> situation a bit more clear [1: 3ef259e28a8].  Let me know if you see
> anything there that could be improved.
>
> [1: 3ef259e28a8]: 2023-10-01 15:37:06 +0200
>   Improve documentation of `ns-use-proxy-icon`
>   https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3ef259e28a84049fdb4499c9ad81ed2c3216f76b

The text sounds a bit like you can drag the icon to other applications,
only.

Actually, it is 100% (AFAIK) like dragging an icon from the Finder.  You
can drag the icon to the bin, a printer, the desktop, an application...
(Sometimes the results can be a bit surprising for the uniniatiated, for
example, when dragging moves the file to a different location :-)).

Alas, I can't find an official documentation of that feature.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66190; Package emacs. (Sun, 01 Oct 2023 15:46:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>, 
 66190 <at> debbugs.gnu.org
Subject: Re: bug#66190: 30.0.50;
 ns-use-proxy-icon has no effect on macOS 12.6.9
Date: Sun, 1 Oct 2023 08:45:13 -0700
Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>> I've now installed a fix on emacs-29, which should hopefully make the
>> situation a bit more clear [1: 3ef259e28a8].  Let me know if you see
>> anything there that could be improved.
>>
>> [1: 3ef259e28a8]: 2023-10-01 15:37:06 +0200
>>   Improve documentation of `ns-use-proxy-icon`
>>   https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3ef259e28a84049fdb4499c9ad81ed2c3216f76b
>
> The text sounds a bit like you can drag the icon to other applications,
> only.
>
> Actually, it is 100% (AFAIK) like dragging an icon from the Finder.  You
> can drag the icon to the bin, a printer, the desktop, an application...
> (Sometimes the results can be a bit surprising for the uniniatiated, for
> example, when dragging moves the file to a different location :-)).
>
> Alas, I can't find an official documentation of that feature.

Does this sound better?

    The proxy icon can be used to drag the file associated with the
    current buffer to other applications, a printer, the desktop, etc.,
    in the same way you can from Finder.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66190; Package emacs. (Sun, 01 Oct 2023 16:04:01 GMT) Full text and rfc822 format available.

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

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 66190 <at> debbugs.gnu.org
Subject: Re: bug#66190: 30.0.50; ns-use-proxy-icon has no effect on macOS
 12.6.9
Date: Sun, 01 Oct 2023 18:02:34 +0200
Stefan Kangas <stefankangas <at> gmail.com> writes:

> Does this sound better?
>
>     The proxy icon can be used to drag the file associated with the
>     current buffer to other applications, a printer, the desktop, etc.,
>     in the same way you can from Finder.

👍




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66190; Package emacs. (Sun, 01 Oct 2023 16:29:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Cc: 66190 <at> debbugs.gnu.org
Subject: Re: bug#66190: 30.0.50;
 ns-use-proxy-icon has no effect on macOS 12.6.9
Date: Sun, 1 Oct 2023 09:28:22 -0700
Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>> Does this sound better?
>>
>>     The proxy icon can be used to drag the file associated with the
>>     current buffer to other applications, a printer, the desktop, etc.,
>>     in the same way you can from Finder.
>
> 👍

Thanks, so I installed that.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 Oct 2023 11:24:12 GMT) Full text and rfc822 format available.

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

Previous Next


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