From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#16565: 24.3.50; x-popup-menu just returns nil Date: Tue, 28 Jan 2014 04:11:42 +0100 Message-ID: <87ppnc7qc1.fsf@web.de> References: <87r47urvcy.fsf@web.de> <83d2jd9zig.fsf@gnu.org> <874n4ptfhy.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390878736 8715 80.91.229.3 (28 Jan 2014 03:12:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jan 2014 03:12:16 +0000 (UTC) Cc: 16565@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 28 04:12:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W7z65-0004LO-Ad for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Jan 2014 04:12:21 +0100 Original-Received: from localhost ([::1]:35079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7z64-0002Yh-M3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 22:12:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7z5t-0002Y8-Ot for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 22:12:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7z5m-0002Oy-ET for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 22:12:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7z5m-0002Ou-Az for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 22:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7z5m-0007NU-0K for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 22:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Jan 2014 03:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16565 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16565-submit@debbugs.gnu.org id=B16565.139087871228343 (code B ref 16565); Tue, 28 Jan 2014 03:12:01 +0000 Original-Received: (at 16565) by debbugs.gnu.org; 28 Jan 2014 03:11:52 +0000 Original-Received: from localhost ([127.0.0.1]:38607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7z5c-0007N5-Eg for submit@debbugs.gnu.org; Mon, 27 Jan 2014 22:11:52 -0500 Original-Received: from mout.web.de ([212.227.15.14]:59390) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7z5a-0007Mw-G0 for 16565@debbugs.gnu.org; Mon, 27 Jan 2014 22:11:51 -0500 Original-Received: from drachen.dragon ([90.186.218.106]) by smtp.web.de (mrweb103) with ESMTPA (Nemesis) id 0LjJH1-1VZBN601ZH-00dZjq for <16565@debbugs.gnu.org>; Tue, 28 Jan 2014 04:11:49 +0100 In-Reply-To: <874n4ptfhy.fsf@web.de> (Michael Heerdegen's message of "Mon, 27 Jan 2014 20:02:33 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:m0xffRZx52quXI6EXIizTOV/nu7cajH+FP+M6jHNnVVGkCOWEMn MSrzByvDKucfsUzvZ8pa3wgMJBG+mg9oVcrUJcsOMZvkMeZD7tB22d+zhepYJxyP47MpgxZ gmjlzPT3IN5uQrilPvBIrfKj9NEOuHYui3jbqF+n46I4DuSNYTRNEU0z73qeVKcxZcTJcKN woxGyVoIp/zwoJnRf/b3w== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:84151 Archived-At: Michael Heerdegen writes: > Will try to do that today, thanks. Ok, I tried to do my best to understand the C code and GUD. If I understand correctly, this is executed for me: selection = xmenu_show (f, xpos, ypos, for_click, keymaps, title, &error_name); In the good case, SELECTION is bound to different integers, in the bad case, it is always the same integer, which seems to mean "nil". But there is a difference in the arguments of the xmenu_show call. In the bad case calling with an event: (x-popup-menu event (mouse-menu-bar-map)) FOR_CLICK is bound to true. In the good case with (x-popup-menu t (mouse-menu-bar-map)) FOR_CLICK is bound to false. That made me wonder what happened when I bind `foo' to a mouse-down event. Then the bug doesn't happen, `foo' doesn't return nil. HTH, Michael.