GNU bug report logs - #79717
31.0.50; Setting ns-command-modifier breaks C-M-d on macOS

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Arash Esbati <arash@HIDDEN>; Keywords: notabug; Done: Arash Esbati <arash@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug closed, send any further explanations to 79717 <at> debbugs.gnu.org and Arash Esbati <arash@HIDDEN> Request was from Arash Esbati <arash@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) notabug. Request was from Arash Esbati <arash@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 79717 <at> debbugs.gnu.org:


Received: (at 79717) by debbugs.gnu.org; 30 Oct 2025 09:02:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 30 05:02:14 2025
Received: from localhost ([127.0.0.1]:34040 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vEOXu-0004Xe-49
	for submit <at> debbugs.gnu.org; Thu, 30 Oct 2025 05:02:14 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59578)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <arash@HIDDEN>)
 id 1vEOXp-0004XI-MB; Thu, 30 Oct 2025 05:02:11 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>)
 id 1vEOXj-0000O4-3m; Thu, 30 Oct 2025 05:02:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=8m1OzNljYqjPpju1V9QgVLD9Ng1AccNh9sOwzuLHrmQ=; b=jCd81MM+kscVEgw69StV
 teoK891KKX17tvGOYKVMFWVcZYo9ouHTee6281cE39F/gB5yoDOLHrNQMTGR8Eldhq85gQkDDEOJH
 LAEvCWGxefJPW4mRDzdjPoDpzjBEJuIITd5nMTln5sIMriEQ8UiR/AFF2/m51w1/Me/JxOCrSBkqm
 qwE1v8R1TN1Xn2FpgdKBXS/m9rWENUsWNr8dzGBqXo8stS3fhKlUtgf5sXSqX4IgaEPNpXI314Hhb
 jIRRXMcN5HFi6sCNiRGDgMW9LgcoeaQgx3+rK9vJOad6iiUAhByirp959+Aa27chkLTSTp1QrbnfK
 PBQuvqI2dSgDlQ==;
From: Arash Esbati <arash@HIDDEN>
To: Rudolf Schlatte <rudi@HIDDEN>
Subject: Re: bug#79717: 31.0.50; Setting ns-command-modifier breaks C-M-d on
 macOS
In-Reply-To: <m1zf99d8u4.fsf@HIDDEN>
References: <m2ikfy3qwy.fsf@HIDDEN>
 <m1zf99d8u4.fsf@HIDDEN>
Date: Thu, 30 Oct 2025 10:01:34 +0100
Message-ID: <m27bwc7ogh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79717
Cc: 79717 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 79717 notabug
close 79717
thanks

Rudolf Schlatte <rudi@HIDDEN> writes:

> Hmm, C-M-d rings a bell -- in MacOS programs, it summons a pop-up with
> the dictionary definition for the word under the cursor IIRC.  I can't
> test if that's stil true, since I applied the fix at
> https://stackoverflow.com/a/20692071 to turn that off.

Thanks, I briefly had a look at general macOS shortcuts, but obviously
missed this one and now had a closer look (under Text-editing
shortcuts[1]):

  Control-Command-D: Show or hide the definition of the selected word.

I'm not familiar enough with Emacs and macOS to say why C-M-d is
intercepted by the OS and other things like C-b not, so I take it for
granted and close this report.

Best, Arash

Footnotes:
[1]  https://support.apple.com/en-us/102650




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79717; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Oct 2025 15:30:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 29 11:30:57 2025
Received: from localhost ([127.0.0.1]:59456 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vE88W-0001P4-II
	for submit <at> debbugs.gnu.org; Wed, 29 Oct 2025 11:30:57 -0400
Received: from lists.gnu.org ([2001:470:142::17]:39144)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1vE88H-0001OD-Fu
 for submit <at> debbugs.gnu.org; Wed, 29 Oct 2025 11:30:47 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1vE889-0007Ch-Gd
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2025 11:30:33 -0400
Received: from ciao.gmane.io ([116.202.254.214])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1vE882-0008Rw-4x
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2025 11:30:32 -0400
Received: from list by ciao.gmane.io with local (Exim 4.92)
 (envelope-from <geb-bug-gnu-emacs@HIDDEN>)
 id 1vE87v-0009RS-Cz
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2025 16:30:19 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Rudolf Schlatte <rudi@HIDDEN>
Subject: Re: bug#79717: 31.0.50;
 Setting ns-command-modifier breaks C-M-d on macOS
Date: Wed, 29 Oct 2025 16:30:11 +0100
Message-ID: <m1zf99d8u4.fsf@HIDDEN>
References: <m2ikfy3qwy.fsf@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:4vI5K/mulKAeKByqkGB9Yus/eDM=
Received-SPF: pass client-ip=116.202.254.214;
 envelope-from=geb-bug-gnu-emacs@HIDDEN; helo=ciao.gmane.io
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9,
 HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Arash Esbati <arash@HIDDEN> writes:

> Hi all,
>
> I start with 'emacs -Q' from a shell and hit 'C-h k C-M-d' and in the
> Help buffer, I see:
>
>   C-M-d runs the command down-list (found in global-map), which is an
>   interactive native-comp-function in ‘lisp.el’.
>
>   It is bound to C-M-<down>, C-M-d and ESC C-<down>.
>
>   (down-list &optional ARG INTERACTIVE)
>   ...
>
> C-M is in this case the Control-key and the Option-key on my keyboard.
>
> Now I eval:
>
>   (setq ns-command-modifier 'meta)
>
> and hit 'C-h k C-M-d' again (Control-key and Command-key), Emacs waits
> with "Describe the following key, mouse click or menu item: " in the
> minibuffer, and I see this in the shell where I started Emacs (line
> breaks added for legibility):
>
>   2025-10-29 11:58:18.545 emacs[16778:138670] Lookup: Unhandled exception
>   'NSInternalInconsistencyException' caught in
>   +[LULookupDefinitionModule _focusTermUsingQueue:handler:]
>
> C-d and M-d both work as expected, but C-M-d not.  C-M-f works as
> expected.

Hmm, C-M-d rings a bell -- in MacOS programs, it summons a pop-up with
the dictionary definition for the word under the cursor IIRC.  I can't
test if that's stil true, since I applied the fix at
https://stackoverflow.com/a/20692071 to turn that off.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79717; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Oct 2025 11:10:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 29 07:10:34 2025
Received: from localhost ([127.0.0.1]:57884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vE44X-00069O-Mx
	for submit <at> debbugs.gnu.org; Wed, 29 Oct 2025 07:10:34 -0400
Received: from lists.gnu.org ([2001:470:142::17]:35044)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <arash@HIDDEN>) id 1vE44J-00061N-Pk
 for submit <at> debbugs.gnu.org; Wed, 29 Oct 2025 07:10:27 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>) id 1vE44A-00022b-6q
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2025 07:10:10 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <arash@HIDDEN>) id 1vE447-0005JR-CS
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2025 07:10:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to:
 references; bh=Q6gx9Cm3yWSfZrRgjXmdnihBbKMh8/PF279Hj79JCjo=; b=fm5DQe+FFPIxaB
 M2I7Wirf/6xIxA0B5hxLpppTDdmA/A7WWhAzwuzy2LED46AivTL9KBw4TQF7XvGsSWYbH/+nHZhPS
 306VFNg9PzOHmQz8ZNYILK23uCSOYl4NGAk4i9wsxytWR0ImnZZuTr6IQ3YiXBNxGIFN7Eey87MuO
 G2tI1w2w+PxOj2+fCb9y8Wa+JQu4/rOm9Q1jXX+kVlg83Vj4jBucNeAd2ZtO7TIkdwLZGEsY/ZFGD
 8KR7ThTQ7IOaDH6Jwp+7xC0hmsWP/gyC72qRWUV2Z4ixBIgE0brItdKhINDK23KTxQ21jVth+hlkE
 hpv1whY5pLzbMUJ65VkQ==;
From: Arash Esbati <arash@HIDDEN>
To: "emacs-bugs" <bug-gnu-emacs@HIDDEN>
Subject: 31.0.50; Setting ns-command-modifier breaks C-M-d on macOS
Date: Wed, 29 Oct 2025 12:09:49 +0100
Message-ID: <m2ikfy3qwy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi all,

I start with 'emacs -Q' from a shell and hit 'C-h k C-M-d' and in the
Help buffer, I see:

  C-M-d runs the command down-list (found in global-map), which is an
  interactive native-comp-function in =E2=80=98lisp.el=E2=80=99.

  It is bound to C-M-<down>, C-M-d and ESC C-<down>.

  (down-list &optional ARG INTERACTIVE)
  ...

C-M is in this case the Control-key and the Option-key on my keyboard.

Now I eval:

  (setq ns-command-modifier 'meta)

and hit 'C-h k C-M-d' again (Control-key and Command-key), Emacs waits
with "Describe the following key, mouse click or menu item: " in the
minibuffer, and I see this in the shell where I started Emacs (line
breaks added for legibility):

  2025-10-29 11:58:18.545 emacs[16778:138670] Lookup: Unhandled exception
  'NSInternalInconsistencyException' caught in
  +[LULookupDefinitionModule _focusTermUsingQueue:handler:]

C-d and M-d both work as expected, but C-M-d not.  C-M-f works as
expected.

Best, Arash

In GNU Emacs 31.0.50 (build 2, aarch64-apple-darwin24.6.0, NS
 appkit-2575.70 Version 15.7.1 (Build 24G231)) of 2025-10-18
Repository revision: 48357dc612ffe2d6b286e3f99a0e7e9c80cfcbb8
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2575
System Description:  macOS 15.7.1

Configured using:
 'configure --with-ns --with-threads --with-modules
 --with-native-compilation --without-compress-install --without-harfbuzz
 --without-mailutils --without-pop 'CFLAGS=3D-O2 -g0 -pipe '
 'CPPFLAGS=3D-I/opt/homebrew/opt/gcc/include
 -I/opt/homebrew/opt/libgccjit/include -I/opt/homebrew/opt/gmp/include
 -I/opt/homebrew/opt/libxml2/include '
 'LDFLAGS=3D-L/opt/homebrew/opt/gcc/lib/gcc/current
 -L/opt/homebrew/opt/gmp/lib -L/opt/homebrew/opt/libxml2/lib ''




Acknowledgement sent to Arash Esbati <arash@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79717; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 30 Oct 2025 09:15:02 UTC

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