From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Modifier state? Date: Sat, 14 Feb 2009 09:34:04 -0500 Message-ID: References: <1B1D3F3E-49CC-4488-B3D8-5189B834412E@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/signed; boundary=Apple-Mail-8-764290797; micalg=sha1; protocol="application/pkcs7-signature" X-Trace: ger.gmane.org 1234622091 9355 80.91.229.12 (14 Feb 2009 14:34:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2009 14:34:51 +0000 (UTC) Cc: Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 14 15:36:07 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LYLcb-0001g7-OR for ged-emacs-devel@m.gmane.org; Sat, 14 Feb 2009 15:35:58 +0100 Original-Received: from localhost ([127.0.0.1]:38339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYLbH-0005Ja-Or for ged-emacs-devel@m.gmane.org; Sat, 14 Feb 2009 09:34:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LYLau-0005Cl-Ni for emacs-devel@gnu.org; Sat, 14 Feb 2009 09:34:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LYLas-0005C9-SS for emacs-devel@gnu.org; Sat, 14 Feb 2009 09:34:12 -0500 Original-Received: from [199.232.76.173] (port=49299 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYLas-0005C3-Jg for emacs-devel@gnu.org; Sat, 14 Feb 2009 09:34:10 -0500 Original-Received: from mail-qy0-f20.google.com ([209.85.221.20]:49159) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LYLas-00036h-8S for emacs-devel@gnu.org; Sat, 14 Feb 2009 09:34:10 -0500 Original-Received: by qyk13 with SMTP id 13so1236612qyk.18 for ; Sat, 14 Feb 2009 06:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=Cxzw5CpsA2ZRYS3R4r77YrHwIPKHFyg/JzO6iX7xjNI=; b=igyAHc2Rl3Xdqs+LaKVQUFfUZZNj3bWUfv4zeiFdWu20XdYLRrWKTatBbKhs74jDQN bcyiHRZdwYuTgtFgPUdKOh5BXIVz0NTpZuGKeuTV3ML4GsmSuXn/D70Ab9Sy18OYuMwE PqwvMtgx4KzHClNsQC0QAgi/VcH6T4aiMcNUs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=xNSLzMUAAg60xTkjSm7XG+7B4HudHmJCwqD0kAKPsVgb2WvyPWhO8AgyCp7WlvZ2Rj TNslVW1cz4fG+QGEGI1VQqo7kz0gVy9Pw9cNB9w1jMquYlVPpYUcoI8Fkr9OLPOPwh+h ikjOdYLk0nDUT43DTWBgxnKxu3o/TQ/T/zRU0= Original-Received: by 10.224.20.76 with SMTP id e12mr1353444qab.47.1234622049857; Sat, 14 Feb 2009 06:34:09 -0800 (PST) Original-Received: from scarlett.local (pool-71-162-28-49.pitbpa.east.verizon.net [71.162.28.49]) by mx.google.com with ESMTPS id 6sm3258198yxg.16.2009.02.14.06.34.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 14 Feb 2009 06:34:08 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109064 Archived-At: --Apple-Mail-8-764290797 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 13 Feb 2009, at 20:43, Stefan Monnier wrote: >> Do we have a way to detect the modifier state from the Lisp level, >> or bind >> commands to modifier state changes? > > No. > > I did some simple experiments with it, in order to get events like > and (which actually were and > because when the release event is received, the modifier > state is not yet cleared). I did get it to work OK without too much > trouble (mostly I had to add some function-key-map entries to drop > those > events when not bound, and I had to rework C-q so that it waits for > a "real" key press rather than stopping at the ), but > haven't investigated much further. And I guess there's a bit of port-specific work involved, too. It would be excellent to have this post-23.1. --Apple-Mail-8-764290797 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFxDCCAn0w ggHmoAMCAQICED6shx13jEDrq0eL8FRq5ykwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MTIwOTAyMDgwMVoXDTA5MTIwOTAyMDgw MVowYjEQMA4GA1UEBBMHUmVpdHRlcjEOMAwGA1UEKhMFRGF2aWQxFjAUBgNVBAMTDURhdmlkIFJl aXR0ZXIxJjAkBgkqhkiG9w0BCQEWF2RhdmlkLnJlaXR0ZXJAZ21haWwuY29tMIGfMA0GCSqGSIb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