From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9356: `event-modifiers' documentation Date: Tue, 30 Aug 2011 10:51:38 -0400 Message-ID: References: <4E549021.50203@gmail.com> <4E55133E.1030308@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1314715932 15792 80.91.229.12 (30 Aug 2011 14:52:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2011 14:52:12 +0000 (UTC) Cc: 9356-done@debbugs.gnu.org To: Jonathan Ganc Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 30 16:52:07 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QyPfZ-0004SV-Vz for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Aug 2011 16:52:06 +0200 Original-Received: from localhost ([::1]:44186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyPfZ-0003Cn-4K for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Aug 2011 10:52:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyPfQ-0003Cc-3Z for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 10:51:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyPfP-00063S-15 for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 10:51:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyPfO-00063L-Vd for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 10:51:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QyPiQ-0003yv-5W for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2011 10:55:02 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2011 14:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 9356 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 9356@debbugs.gnu.org, monnier@iro.umontreal.ca Original-Received: via spool by 9356-done@debbugs.gnu.org id=D9356.131471609715292 (code D ref 9356); Tue, 30 Aug 2011 14:55:01 +0000 Original-Received: (at 9356-done) by debbugs.gnu.org; 30 Aug 2011 14:54:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyPiL-0003yb-Hy for submit@debbugs.gnu.org; Tue, 30 Aug 2011 10:54:57 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyPiI-0003yT-HR for 9356-done@debbugs.gnu.org; Tue, 30 Aug 2011 10:54:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAPv3XE64rwMJ/2dsb2JhbABCqBV4gUABAQQBViMFCwsOChwSFBgNJIgFuQCGTQSgCIQ9 X-IronPort-AV: E=Sophos;i="4.68,302,1312171200"; d="scan'208";a="133528175" Original-Received: from 184-175-3-9.dsl.teksavvy.com (HELO ceviche.home) ([184.175.3.9]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 30 Aug 2011 10:51:45 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 7B52F66108; Tue, 30 Aug 2011 10:51:38 -0400 (EDT) In-Reply-To: <4E55133E.1030308@gmail.com> (Jonathan Ganc's message of "Wed, 24 Aug 2011 10:05:34 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Aug 2011 10:55:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50439 Archived-At: > Does that qualify, though? I'm not sure what the desired behavior for > mouse-10 would be but, for example, (event-modifiers 'mouse-9) => (click) > and I certainly don't have a mouse-9 button. If you ever manage to get a mouse-10 event, it should (and will) be labeled as a click. I've slightly changed the docstring to reflect the fact that only `click' may be missing (and that this can not only result in a nil result, e.g. C-mouse-10 will only say (control) instead of (control click)). Stefan > On 08/24/2011 09:27 AM, Stefan Monnier wrote: >>> The documentation for `event-modifiers' states: >>> "If EVENT is a symbol that has never been used in an event that has been >>> read as input in the current Emacs session, then this function can return >>> nil, even when EVENT actually has modifiers." However, looking in the >>> event-modifier' definition, the function >>> internal-event-symbol-parse-modifiers' seems to deal with this (potential) >>> issue. Can someone give me an example where `event-modifier' would >>> inappropriately return nil? >> (event-modifiers 'mouse-1) => (click) >> (event-modifiers 'mouse-10) => nil >> >> Not sure if other modifiers than `click' can be missing. >> >> >> Stefan >> >>