From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tomas Abrahamsson Newsgroups: gmane.emacs.devel Subject: Re: artist-mouse-choose-operation Date: Tue, 10 Nov 2009 22:06:37 +0100 Message-ID: References: <834opfeq8a.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257912187 30538 80.91.229.12 (11 Nov 2009 04:03:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Nov 2009 04:03:07 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 11 05:02:59 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 1N84Q7-0005ec-4x for ged-emacs-devel@m.gmane.org; Wed, 11 Nov 2009 05:02:59 +0100 Original-Received: from localhost ([127.0.0.1]:42864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N84Q6-0008AB-Q5 for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2009 23:02:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7xvO-0001bm-6j for emacs-devel@gnu.org; Tue, 10 Nov 2009 16:06:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7xvJ-0001Vm-3U for emacs-devel@gnu.org; Tue, 10 Nov 2009 16:06:49 -0500 Original-Received: from [199.232.76.173] (port=44277 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7xvI-0001VS-TF for emacs-devel@gnu.org; Tue, 10 Nov 2009 16:06:44 -0500 Original-Received: from mail.lysator.liu.se ([130.236.254.3]:33724) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N7xvE-0007dv-9P; Tue, 10 Nov 2009 16:06:40 -0500 Original-Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 511FA40059; Tue, 10 Nov 2009 22:05:40 +0100 (CET) Original-Received: by mail.lysator.liu.se (Postfix, from userid 1674) id 44DF040096; Tue, 10 Nov 2009 22:05:40 +0100 (CET) Original-Received: from stalhein.lysator.liu.se (stalhein.lysator.liu.se [130.236.254.204]) by mail.lysator.liu.se (Postfix) with ESMTP id 06FCB40059; Tue, 10 Nov 2009 22:05:39 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Tue, 10 Nov 2009 12:20:09 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (usg-unix-v) X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 10 Nov 2009 23:02:45 -0500 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:116825 Archived-At: Stefan Monnier writes: >>> The function in the Subject calls x-popup-menu, evidently under the >>> assumption that if Emacs can use a mouse, it also supports menus. But >>> that assumption is false: Emacs configured --without-x can have mouse >>> support, e.g. via gpm-mouse, but does not have x-popup-menu. > >> Yes, I agree this is a bug. Below is a patch for fixing the bug and a >> proposal for a ChangeLog entry. > > Makes me wonder: is it really the only place where this kind of problem > shows up? I think not. I grepped the sources briefly, and found only one call to tmm-prompt outside of tmm.el, in cperl-mode.el. I found 34 calls to x-popup-menu. (I did: "find . -name \*.el | xargs egrep '\(x-popup-menu' | wc -l".) BRs Tomas