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#7591: 24.0.50; incorrect `make-obsolete' for `mouse-major-mode-menu' Date: Fri, 10 Dec 2010 16:01:47 -0500 Message-ID: References: <612738B99E514F4084A6029D9CD79436@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292016149 20384 80.91.229.12 (10 Dec 2010 21:22:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 21:22:29 +0000 (UTC) Cc: 7591@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 22:22:24 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PRAQ4-0001l5-1E for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 22:22:24 +0100 Original-Received: from localhost ([127.0.0.1]:40813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRAQ3-0005XN-Bo for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 16:22:23 -0500 Original-Received: from [140.186.70.92] (port=54325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRAPz-0005X8-AN for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2010 16:22:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRAPy-0001Ha-4L for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2010 16:22:19 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRAPy-0001HV-0E for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2010 16:22:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PRA0Z-0001GA-0T; Fri, 10 Dec 2010 15:56:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Dec 2010 20:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7591 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7591-submit@debbugs.gnu.org id=B7591.12920145474820 (code B ref 7591); Fri, 10 Dec 2010 20:56:02 +0000 Original-Received: (at 7591) by debbugs.gnu.org; 10 Dec 2010 20:55:47 +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 1PRA0J-0001Fg-Cp for submit@debbugs.gnu.org; Fri, 10 Dec 2010 15:55:47 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRA0G-0001FR-FE for 7591@debbugs.gnu.org; Fri, 10 Dec 2010 15:55:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8LAFMkAk3O+KIs/2dsb2JhbACic4Eaeb9VhUoEhGSOBQ X-IronPort-AV: E=Sophos;i="4.59,326,1288584000"; d="scan'208";a="85137130" Original-Received: from 206-248-162-44.dsl.teksavvy.com (HELO ceviche.home) ([206.248.162.44]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 10 Dec 2010 16:01:48 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id BBCA26616B; Fri, 10 Dec 2010 16:01:47 -0500 (EST) In-Reply-To: <612738B99E514F4084A6029D9CD79436@us.oracle.com> (Drew Adams's message of "Fri, 10 Dec 2010 08:46:09 -0800") 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: Fri, 10 Dec 2010 15:56:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42402 Archived-At: >> The argument to make-obsolete is not intended to say "foobar is >> a drop-in-replacement for barbaz", just that "barbaz has been found >> undesirable, its successor is foobar". Often one needs to >> adjust things if one wants to switch to the new non-obsolete >> alternative. > Even if that is the case it is not helpful here. The best command to use for > this is the _only_ command that exists (so far): `mouse-major-mode-menu'. Right, so you "need to adjust things". This case really doesn't seem to be any different. > Unless there is a _command_ that does what `mouse-major-mode-menu' does, you > cannot do something like that. No part of Emacs needs such a command, and very few users (or external packages) would use it. So I'm far from convinced it is warranted. > Or you need to roll your own command. Exactly. Something along lines of (defun my-command () (x-popup-menu nil mouse-menu-major-mode-map)) should do the trick. > Emacs should offer a command for this, as it has in the past. What is wrong > with the existing `mouse-major-mode-menu' that it should be removed? mouse-menu-major-mode-map works as well or better (better because C-h k can be used to find the name of a function bound to a particular menu entry) for all uses we care about. So we don't need mouse-major-mode-menu any more. Stefan