From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Sebastian Wiesner <swiesner@lunaryorn.com>
Newsgroups: gmane.emacs.help
Subject: Re: Menu on minor mode lighter
Date: Sat, 2 Aug 2014 15:42:20 +0200
Message-ID: <9E5A493E-136F-4280-B3D2-7BB0F3FCA39F@lunaryorn.com>
References: <E23806B9-ED5C-410B-9561-3F068CF65502@lunaryorn.com>
	<8738dg6sd0.fsf@web.de>
	<020BFB09-E6B9-462F-8C29-882795452C3A@lunaryorn.com>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1406986973 23963 80.91.229.3 (2 Aug 2014 13:42:53 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 2 Aug 2014 13:42:53 +0000 (UTC)
Cc: help-gnu-emacs@gnu.org
To: Michael Heerdegen <michael_heerdegen@web.de>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 02 15:42:46 2014
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1XDZa9-0006eh-0m
	for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Aug 2014 15:42:45 +0200
Original-Received: from localhost ([::1]:44324 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1XDZa8-0007fw-Jv
	for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Aug 2014 09:42:44 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51182)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <swiesner@lunaryorn.com>) id 1XDZZt-0007fm-2I
	for help-gnu-emacs@gnu.org; Sat, 02 Aug 2014 09:42:34 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <swiesner@lunaryorn.com>) id 1XDZZl-00085S-Pf
	for help-gnu-emacs@gnu.org; Sat, 02 Aug 2014 09:42:28 -0400
Original-Received: from vega.uberspace.de ([95.143.172.245]:55858)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <swiesner@lunaryorn.com>) id 1XDZZl-00085N-GF
	for help-gnu-emacs@gnu.org; Sat, 02 Aug 2014 09:42:21 -0400
Original-Received: (qmail 17124 invoked from network); 2 Aug 2014 13:42:19 -0000
Original-Received: from localhost (HELO hostname.fritz.box) (127.0.0.1)
	by vega.uberspace.de with SMTP; 2 Aug 2014 13:42:19 -0000
In-Reply-To: <020BFB09-E6B9-462F-8C29-882795452C3A@lunaryorn.com>
X-Mailer: Apple Mail (2.1878.6)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 95.143.172.245
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:99055
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/99055>


Am 02.08.2014 um 15:12 schrieb Sebastian Wiesner =
<swiesner@lunaryorn.com>:

>=20
> Am 01.08.2014 um 19:18 schrieb Michael Heerdegen =
<michael_heerdegen@web.de>:
>=20
>> Sebastian Wiesner <swiesner@lunaryorn.com> writes:
>>=20
>>> how can I add a menu to the mode line lighter of a minor mode, =
similar
>>> to the menu that appears when you click on the mode line lighter of
>>> Dired?  However, the menu should *not* appear in the global menu =
bar,
>>> if the minor mode is enabled.
>>=20
>> In the mode-line, down-mouse-1 is bound to `mouse-minor-mode-menu'.
>> `mouse-minor-mode-menu' determines the indicator string you clicked =
on
>> and calls `minor-mode-menu-from-indicator' on it.
>>=20
>> So the presumably easiest way to do what you want is to advice
>> `minor-mode-menu-from-indicator' to pop up a different menu for =
certain
>> indicators.
>=20
> Mh, the doctoring of `minor-mode-menu-from-indicator' says (emphasis =
mine):

It=92s the _docstring_ of course=85 sorry about that.