From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Should this package be included into the NS port? Date: Sat, 2 Jun 2018 21:11:35 +0100 Message-ID: <20180602201135.GA97920@breton.holly.idiocy.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1527970181 1503 195.159.176.226 (2 Jun 2018 20:09:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 2 Jun 2018 20:09:41 +0000 (UTC) User-Agent: Mutt/1.9.3 (2018-01-21) Cc: George Plymale II , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 02 22:09:37 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPCqG-0000Id-Ve for ged-emacs-devel@m.gmane.org; Sat, 02 Jun 2018 22:09:37 +0200 Original-Received: from localhost ([::1]:60926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPCsN-0006GS-Cq for ged-emacs-devel@m.gmane.org; Sat, 02 Jun 2018 16:11:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPCsG-0006GJ-P8 for emacs-devel@gnu.org; Sat, 02 Jun 2018 16:11:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPCsF-0005DR-Qw for emacs-devel@gnu.org; Sat, 02 Jun 2018 16:11:40 -0400 Original-Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:46872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPCsF-0005C4-JV for emacs-devel@gnu.org; Sat, 02 Jun 2018 16:11:39 -0400 Original-Received: by mail-wr0-x22f.google.com with SMTP id v13-v6so27640334wrp.13 for ; Sat, 02 Jun 2018 13:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=oiM6KQPDk4TKyFuwL07wfQSk/6p5SaAFN7gCAL5DSa8=; b=R7VBhirskmKkfr4dTjmqQKodI4NAuKlMsbz3ixI98Mhy2TZLMyegr6jxVMuMdNSbuL EauHmdclMY51iFJYuFbM5Tj/R4P94cVMKae35m22/FehsaFuP4n1AZUFoYhYRLAPyNng G7XG+gV/RMFgY3BMLg3srgOxSMNjl8qxqRrVX5hKvTnsEnct90p7AcIdOXfutMR480ld YUcRrv+t9fdi3TWOitAV46ehgDyvfWeiTEYtlBJddjVKFdqCqEBDx9vBk2aC4OlYLB2b E2gF4tPwZSEeavmeT1Y+IeUNGLnmDUcWz/KWCXkeoMY2dK79hHIrHwJ/DLw4lGPxuusL g4Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=oiM6KQPDk4TKyFuwL07wfQSk/6p5SaAFN7gCAL5DSa8=; b=pLX/Czat+4098F64tFgIiaZtGUjTyO/p6qhDlZlMJ6isSHFZdKJbVg/JoO7CD0j0II wFp6o9bAt4sCQgvYu0z9mRxwft23wsODPPy38eRtT4rVnzHszf/N9d4APe5/Vv+8WvX8 p8KOPRgpaAYCKQd0OAZVbpO5xodS3XUivKLcnVnmTaU5DFxBZTIzTHo7hzzcMPuZm6rU 15L+eCZxrVnCvKtVs6cBYaXD4+lSz76Kpu9GzMa7ebtGrpetkepx8Ama46y8XY2WogE1 +HdWrEdD0paJhu6+3Q8IxmZCVPaI2BgrmRbfRpO1CmFDn5akzfdaWUFViYCZsJcsgNmt 26/g== X-Gm-Message-State: ALKqPwfIdr/kp86jnt3MYQAPoB4k5iuiVCkd60mKHowTlpSEb1pgn78Q 3FSXnK0qLobF67tfW5rkdCM= X-Google-Smtp-Source: ADUXVKImFy+C/R2BGbJqfT5zsTVCI+qJ/Fbt2/wxDy+QLocr7OvRiDJYFBL40skuKh6wC0RaMe4Dhg== X-Received: by 2002:adf:b979:: with SMTP id b54-v6mr12803018wrg.265.1527970298371; Sat, 02 Jun 2018 13:11:38 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-acd0-c556-d8b1-5ceb.holly.idiocy.org. [2001:8b0:3f8:8129:acd0:c556:d8b1:5ceb]) by smtp.gmail.com with ESMTPSA id o53-v6sm67876904wrc.96.2018.06.02.13.11.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Jun 2018 13:11:37 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225939 Archived-At: On Sat, Jun 02, 2018 at 03:39:19PM -0400, Stefan Monnier wrote: > > <268435468> is undefined > > Hmm... that is a weird event, indeed. > [ No surprise you can't "catch the error", because it's not an `error`: > you just end up running the `undefined` command which emits this > message and beeps. ] I’m pretty sure that number is the one defined in nsterm.h line 751: #define KEY_NS_NEW_FRAME ((1<<28)|(0<<16)|12) and it looks like it’s defined for lisp in x-setup-function-keys in common-win.el, but it looks to me like it should be set up in all frames where (featurep 'ns) is true. If I run emacsclient -nw (featurep 'ns) returns true, but the event appears to be undefined (just shows the number). Oh, I just read the docstring: "Set up `function-key-map' on the graphical frame FRAME." I guess that function doesn’t run on terminal frames, then. That might explain it. Would we be able to define this (or maybe all of the NS events?) in ns-win.el instead of in this function? Would that be a bad idea? -- Alan Third