From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7591: 24.0.50; incorrect `make-obsolete' for `mouse-major-mode-menu' Date: Fri, 10 Dec 2010 08:46:09 -0800 Message-ID: <612738B99E514F4084A6029D9CD79436@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292002200 18910 80.91.229.12 (10 Dec 2010 17:30:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 17:30:00 +0000 (UTC) Cc: 7591@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 18:29:55 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 1PR6n1-0003RQ-28 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 18:29:51 +0100 Original-Received: from localhost ([127.0.0.1]:52312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR6ZT-0005uX-G4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 12:15:51 -0500 Original-Received: from [140.186.70.92] (port=44594 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR6ZL-0005rl-4o for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2010 12:15:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PR6ZE-0005e3-Qr for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2010 12:15:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PR6ZE-0005du-NB for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2010 12:15:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PR61m-0002gN-0j; Fri, 10 Dec 2010 11:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" 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 16:41:01 +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.129199924310286 (code B ref 7591); Fri, 10 Dec 2010 16:41:01 +0000 Original-Received: (at 7591) by debbugs.gnu.org; 10 Dec 2010 16:40:43 +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 1PR61S-0002fq-OU for submit@debbugs.gnu.org; Fri, 10 Dec 2010 11:40:43 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PR61Q-0002fd-6k for 7591@debbugs.gnu.org; Fri, 10 Dec 2010 11:40:40 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBAGkfCQ031741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Dec 2010 16:46:42 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBAGkXKU008734; Fri, 10 Dec 2010 16:46:39 GMT Original-Received: from abhmt018.oracle.com by acsmt354.oracle.com with ESMTP id 864308841291999570; Fri, 10 Dec 2010 08:46:10 -0800 Original-Received: from dradamslap1 (/10.159.225.165) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 10 Dec 2010 08:46:10 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Thread-Index: AcuX89EHmFnbEYQuTSSqutnu1kS8bQAAO9lQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 10 Dec 2010 11:41:02 -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:42395 Archived-At: > > (make-obsolete 'mouse-major-mode-menu > > 'mouse-menu-major-mode-map "23.1") > > > > That is incorrect. `mouse-major-mode-menu' is a > > _command_ (and can thus be bound to a key). > > `mouse-menu-major-mode-map' is not a command. > > 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'. Consider this user's request: http://lists.gnu.org/archive/html/help-gnu-emacs/2010-12/msg02016.html My suggestion to him was this: >> If you don't care about modes that might bind `C-mouse-3' >> specially, then just remap its command: >> >> (define-key global-map [remap mouse-save-then-kill] >> 'mouse-major-mode-menu) Unless there is a _command_ that does what `mouse-major-mode-menu' does, you cannot do something like that. Or you need to roll your own command. 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? If you have in mind a better definition, then please add it. But Emacs should have a command for this, whatever the name and whatever the exact definition.