From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/41103 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: menubar Commands Hide Signature vs. mode-line Date: Sat, 29 Dec 2001 22:42:09 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035176553 4381 80.91.224.250 (21 Oct 2002 05:02:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:02:33 +0000 (UTC) Return-Path: Original-Received: (qmail 1043 invoked from network); 29 Dec 2001 21:45:32 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 29 Dec 2001 21:45:32 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16KRGA-0004i5-00; Sat, 29 Dec 2001 15:43:18 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 29 Dec 2001 15:43:09 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA28443 for ; Sat, 29 Dec 2001 15:42:51 -0600 (CST) Original-Received: (qmail 983 invoked by alias); 29 Dec 2001 21:42:42 -0000 Original-Received: (qmail 978 invoked from network); 29 Dec 2001 21:42:42 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 29 Dec 2001 21:42:42 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id fBTLgEb28566 for ; Sat, 29 Dec 2001 22:42:14 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id WAA25101; Sat, 29 Dec 2001 22:42:09 +0100 (MET) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 3CB443B03C; Sat, 29 Dec 2001 22:42:09 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sat, 29 Dec 2001 11:52:20 +0100") Original-Lines: 47 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:41103 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:41103 Lars Magne Ingebrigtsen writes: > At present, they are generated by the `gnus-article-wash-status' > function, which just returns a string. The mode line is updated by > `gnus-set-mode-line'. I'm guessing that there'll have to be voodoo in > that function to add these mousey thingies? Or what? I don't know, but I think it is enough to just return a propertized string (with the `help-echo' text property?). Ah. Cf the following node in the lispref for Emacs 21: /----[ Properties in the Mode Line ] | | Properties in the Mode Line | --------------------------- | | Starting in Emacs 21, certain text properties are meaningful in the | mode line. The `face' property affects the appearance of text; the | `help-echo' property associate help strings with the text, and | `local-map' can make the text mouse-sensitive. | | There are three ways to specify text properties for text in the mode | line: | | 1. Put a string with the `local-map' property directly into the | mode-line data structure. | | 2. Put a `local-map' property on a mode-line %-construct such as | `%12b'; then the expansion of the %-construct will have that same | text property. | | 3. Use a list containing `:eval FORM' in the mode-line data | structure, and make FORM evaluate to a string that has a | `local-map' property. | | You use the `local-map' property to specify a keymap. Like any | keymap, it can bind character keys and function keys; but that has no | effect, since it is impossible to move point into the mode line. This | keymap can only take real effect for mouse clicks. | \---- kai -- Simplification good! Oversimplification bad! (Larry Wall)