From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#55940: macOS: displayed as keybinding for \\[customize] Date: Sat, 18 Jun 2022 14:06:09 +0200 Message-ID: <87tu8i18i6.fsf@gnus.org> References: <87mtegr49m.fsf@gnus.org> <87bkuwr3nh.fsf@gnus.org> <87ilp3o3ga.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18841"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55940@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 18 14:07:26 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2XEa-0004eG-In for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jun 2022 14:07:24 +0200 Original-Received: from localhost ([::1]:34456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2XEX-0006Kc-0p for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jun 2022 08:07:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2XEE-0006J9-Lq for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 08:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2XED-0003Xw-Uk for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 08:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o2XED-0002LM-N0 for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 08:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Jun 2022 12:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55940 X-GNU-PR-Package: emacs Original-Received: via spool by 55940-submit@debbugs.gnu.org id=B55940.16555539818946 (code B ref 55940); Sat, 18 Jun 2022 12:07:01 +0000 Original-Received: (at 55940) by debbugs.gnu.org; 18 Jun 2022 12:06:21 +0000 Original-Received: from localhost ([127.0.0.1]:47736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2XDY-0002KE-V6 for submit@debbugs.gnu.org; Sat, 18 Jun 2022 08:06:21 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:38820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2XDW-0002Jv-O2 for 55940@debbugs.gnu.org; Sat, 18 Jun 2022 08:06:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=H8Hgwr2FewTuicFR1tsiU5YLQf9TVH4Bf+ihIlOhtyI=; b=oyR8+9JVMh5lLAFUXKIEpeGBAB Yr77YEqXklC6symJ8gTgyh2MAqpIE0r0GsqQsGi6LqQwHq+FCTrF548lz0ubG0fWlrPuCwclLQOx+ lVfsnoXqh4SgltcrZuBDPoaDFqxCO4FWxQ6jJgPlEn5IrBnPA7Xy0e2t4k40ne094E3w=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2XDN-0005MU-MJ; Sat, 18 Jun 2022 14:06:12 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEWwdmqWYVlhLitD MDKROS+nRjXAgXHCbFn///97ekHOAAAAAWJLR0QIht6VegAAAAd0SU1FB+YGEgsRMXfL9EAAAAGy SURBVDjLrZNNTgMxDIUzCA3bZuAC46QHIOEChMwBqBKx7Wr2ICSuz7Od+aNboqpS/eU5L8+pMf+8 rN396HZlXqeb7Z21w2gPImwWAcUYR7trJds6qcdgjz3wPURZz3YVcAkyInJHiXUMnogXwLj4kh6m SwLcBjrWRxUkllDr9SZHmoEo55w2cK9eDAnI6NXA4xEkcgq6uACfa2UJKbhbAeq1sjWE0q+dGEwA JTnStNwGVOI0xuWIaLIoaiH3F3C58uEjz+prBZOC1MDwBxQAme7jLUgMHhBUcDuAi+QF6BQWkGni Oe+AuoLdBoJOJxrfbOXKZwO0rI0XScnpvQH8muAeNy+4O8ArX7wBmIGirQ0UAUsdbs3MriCHiBqg Bbh4ZlAU8Hhf7anfQFqBh6CfZ4AXTchoXcYHgMcWFlBXMCuYOCDirJK0wv75+gmgzc36RiC49gz8 lLNrwBPeYT9f5wHx+ZySgpLOheIIu99EASBvoArpPJq6Fxm0aZnXiwvjwFtd8DjbrQAOop8S5odP FvCB0Dl5cr4mnmwgnyLAT5MUdL/IyL2/NNBeSlAF/hmX+AuOVbuTqAOyYwAAACV0RVh0ZGF0ZTpj cmVhdGUAMjAyMi0wNi0xOFQxMToxNzo0OSswMDowMDm8Rw4AAAAldEVYdGRhdGU6bW9kaWZ5ADIw MjItMDYtMThUMTE6MTc6NDkrMDA6MDBI4f+yAAAAAElFTkSuQmCC X-Now-Playing: Insides's _Soft Bonds_: "Half Past 4" In-Reply-To: (Stefan Kangas's message of "Sat, 18 Jun 2022 00:40:14 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234748 Archived-At: Stefan Kangas writes: >> `where-is-internal' should never return these "synthetic" events (that >> are only created to have a way to have Emacs process them in the normal >> event loop). So perhaps we should just mark these symbols with a >> special property to make `where-is-internal' ignore them? > > Sounds good to me. These "keys" are added in places like: (when (featurep 'ns) (setq system-key-alist (list ;; These are special "keys" used to pass events from C to lisp. (cons 1 'ns-power-off) (cons 2 'ns-open-file) (cons 3 'ns-open-temp-file) (cons 4 'ns-drag-file) (cons 5 'ns-drag-color) (cons 6 'ns-drag-text) (cons 8 'ns-open-file-line) ;;; (cons 9 'ns-insert-working-text) ;;; (cons 10 'ns-delete-working-text) (cons 11 'ns-spi-service-call) (cons 12 'ns-new-frame) (cons 13 'ns-toggle-toolbar) (cons 14 'ns-show-prefs) )))) Adding a symbol property like `non-key-event' to these symbols would be easy enough, but perhaps we should have a bit of infrastructure to make this easier to do. Uhm... Just adding a little helper function here does the trick, I think. Now pushed to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no