From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/37343 Path: main.gmane.org!not-for-mail From: Pavel@Janik.cz (Pavel =?iso-8859-2?q?Jan=EDk?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Feature request: Plugged/Unplugged via Mouse-2 Date: Wed, 01 Aug 2001 02:10:23 +0200 Message-ID: References: <2nbsm52ev1.fsf@piglet.jia.vnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035172774 13351 80.91.224.250 (21 Oct 2002 03:59:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:59:34 +0000 (UTC) Cc: ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 29371 invoked from network); 1 Aug 2001 00:11:33 -0000 Original-Received: from czlug1.razdva.cz (HELO SnowWhite.SuSE.cz) (194.212.65.172) by gnus.org with SMTP; 1 Aug 2001 00:11:33 -0000 Original-Received: by SnowWhite.SuSE.cz (PJ, from userid 500) id 76F2F4C03F; Wed, 1 Aug 2001 02:12:51 +0200 (CEST) Original-To: ShengHuo ZHU X-Face: $"d&^B_IKlTHX!y2d,3;grhwjOBqOli]LV`6d]58%5'x/kBd7.MO&n3bJ@Zkf&RfBu|^qL+ ?/Re{MpTqanXS2'~Qp'J2p^M7uM:zp[1Xq#{|C!*'&NvCC[9!|=>#qHqIhroq_S"MH8nSH+d^9*BF: iHiAs(t(~b#1.{w.d[=Z In-Reply-To: <2nbsm52ev1.fsf@piglet.jia.vnet> (ShengHuo ZHU's message of "Sat, 28 Jul 2001 09:33:06 -0700") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105 Original-Lines: 45 Xref: main.gmane.org gmane.emacs.gnus.general:37343 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:37343 From: ShengHuo ZHU Date: Sat, 28 Jul 2001 09:33:06 -0700 Hi, > > we can toggle topics off via Mouse-2 on "Topic" in the mode-line. What > > about Mouse-2 on Unplugged to become Plugged and Mouse-2 on Plugged to > > become Unplugged? It shouldn't be that hard - if no one will implement it > > over weekend, I can do it myself. > > Have you got this implemented? yes, I have this implemented, but I do not think that this should be added to Gnus as is, because it will not work for other Emacs flavors. But here it is (maybe I should also add help-echo property there): --- gnus/lisp/gnus-agent.el Mon Jul 30 10:15:12 2001 +++ gnus-pj/lisp/gnus-agent.el Wed Aug 1 01:57:19 2001 @@ -318,11 +318,17 @@ (setq gnus-plugged plugged) (gnus-agent-possibly-synchronize-flags) (gnus-run-hooks 'gnus-agent-plugged-hook) - (setcar (cdr gnus-agent-mode-status) " Plugged")) + (setcar (cdr gnus-agent-mode-status) + (propertize " Plugged" + 'local-map + (make-mode-line-mouse2-map 'gnus-agent-toggle-plugged)))) (gnus-agent-close-connections) (setq gnus-plugged plugged) (gnus-run-hooks 'gnus-agent-unplugged-hook) - (setcar (cdr gnus-agent-mode-status) " Unplugged")) + (setcar (cdr gnus-agent-mode-status) + (propertize " Unplugged" + 'local-map + (make-mode-line-mouse2-map 'gnus-agent-toggle-plugged)))) (set-buffer-modified-p t)) (defun gnus-agent-close-connections () -- Pavel Janík You're right, this should be fixed. Do you happen to have a patch? -- Rik van Riel in linux-kernel about VM bug