Gnus development mailing list
 help / color / mirror / Atom feed
* menubar Commands Hide Signature vs. mode-line
@ 2001-12-16 15:26 Pavel Janík
  2001-12-29  0:36 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Pavel Janík @ 2001-12-16 15:26 UTC (permalink / raw)


Hi,

menubar Commands Hide Signature in Article mode does not show/hide `s' in
the mode-line, but the signature itself is shown/hidden.

BTW - what about making these letters "active" so e.g. Mouse-2 on `s' will
toggle signature visibility? 'help-echo on this letter is nice, but that
would be nicer ;-)
-- 
Pavel Janík

An innovation a day keeps the monopolist away.
                  -- Alan Cox in linux-kernel



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: menubar Commands Hide Signature vs. mode-line
  2001-12-16 15:26 menubar Commands Hide Signature vs. mode-line Pavel Janík
@ 2001-12-29  0:36 ` Lars Magne Ingebrigtsen
  2001-12-29 10:45   ` Kai Großjohann
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2001-12-29  0:36 UTC (permalink / raw)


Pavel@Janik.cz (Pavel Janík) writes:

> menubar Commands Hide Signature in Article mode does not show/hide `s' in
> the mode-line, but the signature itself is shown/hidden.

Yup.  Fix in Oort Gnus v0.04.

> BTW - what about making these letters "active" so e.g. Mouse-2 on `s' will
> toggle signature visibility? 'help-echo on this letter is nice, but that
> would be nicer ;-)

Hm...  Do people really click around on the mode line?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: menubar Commands Hide Signature vs. mode-line
  2001-12-29  0:36 ` Lars Magne Ingebrigtsen
@ 2001-12-29 10:45   ` Kai Großjohann
  2001-12-29 10:52     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 8+ messages in thread
From: Kai Großjohann @ 2001-12-29 10:45 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Pavel@Janik.cz (Pavel Janík) writes:
>
>> BTW - what about making these letters "active" so e.g. Mouse-2 on `s' will
>> toggle signature visibility? 'help-echo on this letter is nice, but that
>> would be nicer ;-)
>
> Hm...  Do people really click around on the mode line?

I expect people to do that more and more, especially newbies.  Now
that there are nice tooltips in the mode line, and stuff...

kai
-- 
Simplification good!  Oversimplification bad!  (Larry Wall)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: menubar Commands Hide Signature vs. mode-line
  2001-12-29 10:45   ` Kai Großjohann
@ 2001-12-29 10:52     ` Lars Magne Ingebrigtsen
  2001-12-29 21:42       ` Kai Großjohann
  2001-12-29 22:10       ` Pavel Janík
  0 siblings, 2 replies; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2001-12-29 10:52 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

>>> BTW - what about making these letters "active" so e.g. Mouse-2 on `s' will
>>> toggle signature visibility? 'help-echo on this letter is nice, but that
>>> would be nicer ;-)
>>
>> Hm...  Do people really click around on the mode line?
>
> I expect people to do that more and more, especially newbies.  Now
> that there are nice tooltips in the mode line, and stuff...

In that case, I think it would be nice if tooltips and clickability
was added to the characters.

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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: menubar Commands Hide Signature vs. mode-line
  2001-12-29 10:52     ` Lars Magne Ingebrigtsen
@ 2001-12-29 21:42       ` Kai Großjohann
  2001-12-29 22:09         ` Lars Magne Ingebrigtsen
  2001-12-29 22:10       ` Pavel Janík
  1 sibling, 1 reply; 8+ messages in thread
From: Kai Großjohann @ 2001-12-29 21:42 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> 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)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: menubar Commands Hide Signature vs. mode-line
  2001-12-29 21:42       ` Kai Großjohann
@ 2001-12-29 22:09         ` Lars Magne Ingebrigtsen
  2002-01-02 14:22           ` Per Abrahamsen
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2001-12-29 22:09 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> I don't know, but I think it is enough to just return a propertized
> string (with the `help-echo' text property?).

That would be a very convenient way of doing it -- then the
`gnus-article-wash-status' could just return a string with the
required text props set.

> |    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.

That would be the way to do it, then.

I don't mouse much, so could someone else implement this?

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: menubar Commands Hide Signature vs. mode-line
  2001-12-29 10:52     ` Lars Magne Ingebrigtsen
  2001-12-29 21:42       ` Kai Großjohann
@ 2001-12-29 22:10       ` Pavel Janík
  1 sibling, 0 replies; 8+ messages in thread
From: Pavel Janík @ 2001-12-29 22:10 UTC (permalink / raw)


   From: Lars Magne Ingebrigtsen <larsi@gnus.org>
   Date: Sat, 29 Dec 2001 11:52:20 +0100

   > In that case, I think it would be nice if tooltips and clickability
   > was added to the characters.

[...]

   > `gnus-set-mode-line'.  I'm guessing that there'll have to be voodoo in
   > that function to add these mousey thingies?  Or what?

It is very easy in GNU Emacs - look at the function propertize and how it
is used. Just put 'local-map property on these characters along with
current 'help-echo and you are done.
-- 
Pavel Janík

An innovation a day keeps the monopolist away.
                  -- Alan Cox in linux-kernel



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: menubar Commands Hide Signature vs. mode-line
  2001-12-29 22:09         ` Lars Magne Ingebrigtsen
@ 2002-01-02 14:22           ` Per Abrahamsen
  0 siblings, 0 replies; 8+ messages in thread
From: Per Abrahamsen @ 2002-01-02 14:22 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> I don't mouse much, so could someone else implement this?

I added the tooptip properties to the string some month ago (it is in
CVS Gnus), and it worked fine.  At the same time, I also tried adding
the mouse properties, but got no effect.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-01-02 14:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-16 15:26 menubar Commands Hide Signature vs. mode-line Pavel Janík
2001-12-29  0:36 ` Lars Magne Ingebrigtsen
2001-12-29 10:45   ` Kai Großjohann
2001-12-29 10:52     ` Lars Magne Ingebrigtsen
2001-12-29 21:42       ` Kai Großjohann
2001-12-29 22:09         ` Lars Magne Ingebrigtsen
2002-01-02 14:22           ` Per Abrahamsen
2001-12-29 22:10       ` Pavel Janík

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).