Gnus development mailing list
 help / color / mirror / Atom feed
* [gnu.emacs.sources] gnus-easy-threading.el
@ 2000-04-21 20:09 Arcady Genkin
  2000-04-22 11:15 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Arcady Genkin @ 2000-04-21 20:09 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

While Lars is hacking at gnus, I would like to suggest adding this
code which I found in gnu.emacs.sources. I have been using it from my
.gnus and have been very happy with it. ;^)


[-- Attachment #2: Type: message/rfc822, Size: 1485 bytes --]

From: Ingo Ruhnke <grumbel@gmx.de>
Subject: gnus-easy-threading.el
Date: 30 Mar 2000 01:14:21 +0200
Message-ID: <do2ub8.68i.ln@grumbel.subdomain.de>

Hi,

this is just a micro addition to the keybindings. It enables you to
browse threads in Gnus with the cursor keys in a IMHO very intuitive
way. 

;; Set some easier keybindings to make browsing more intuitive

(defun my-gnus-summary-show-thread ()
  "Show thread without changing cursor positon."
  (interactive)
  (gnus-summary-show-thread)
  (beginning-of-line)
  (forward-char 1))

(define-key gnus-summary-mode-map [(right)] 'my-gnus-summary-show-thread)
(define-key gnus-summary-mode-map [(left)]  'gnus-summary-hide-thread)

(setq gnus-thread-hide-subtree t)

;; EOF ;;

-- 
ICQ: 59461927                                    http://pingus.seul.org | 
Ingo Ruhnke <grumbel@gmx.de>             http://home.pages.de/~grumbel/ |
------------------------------------------------------------------------'

[-- Attachment #3: Type: text/plain, Size: 751 bytes --]


And similar code for topics:

From: Dick Knowles <knowles@averstar.com>
Subject: Re: gnus-easy-threading.el
Newsgroups: gnu.emacs.sources
Date: Fri Mar 31 14:06:13 2000 -0500
Organization: Intermetrics, Inc.

Taking my lead from Ingo's threading code, I made some for topic mode:

(defun my-gnus-topic-show-topic ()
  "Show the hidden topic."
  (interactive)
  (if (gnus-group-topic-p)
      (gnus-topic-show-topic)
    (gnus-topic-read-group)))

(add-hook 
 'gnus-started-hook
 '(lambda ()
    (define-key gnus-topic-mode-map [(right)] 'my-gnus-topic-show-topic)
    (define-key gnus-topic-mode-map [(left)]  'gnus-topic-hide-topic)
    ))

-- 
Arcady Genkin                                 http://www.thpoon.com
Nostalgia isn't what it used to be.

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

* Re: [gnu.emacs.sources] gnus-easy-threading.el
  2000-04-21 20:09 [gnu.emacs.sources] gnus-easy-threading.el Arcady Genkin
@ 2000-04-22 11:15 ` Lars Magne Ingebrigtsen
  2000-04-22 13:13   ` Arcady Genkin
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-22 11:15 UTC (permalink / raw)


Arcady Genkin <a.genkin@utoronto.ca> writes:

> (define-key gnus-summary-mode-map [(right)] 'my-gnus-summary-show-thread)
> (define-key gnus-summary-mode-map [(left)]  'gnus-summary-hide-thread)

Hm.  Well, I don't think this is something that most people would
appreciate.  :-)

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



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

* Re: [gnu.emacs.sources] gnus-easy-threading.el
  2000-04-22 11:15 ` Lars Magne Ingebrigtsen
@ 2000-04-22 13:13   ` Arcady Genkin
  2000-04-22 13:48     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Arcady Genkin @ 2000-04-22 13:13 UTC (permalink / raw)


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

> > (define-key gnus-summary-mode-map [(right)] 'my-gnus-summary-show-thread)
> > (define-key gnus-summary-mode-map [(left)]  'gnus-summary-hide-thread)
> 
> Hm.  Well, I don't think this is something that most people would
> appreciate.  :-)

IMHO those keys are hardly of any use in the summary buffer, and
assigning them that function would be intuitive, but at the worst
harmless.
-- 
Arcady Genkin                                 http://www.thpoon.com
Nostalgia isn't what it used to be.



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

* Re: [gnu.emacs.sources] gnus-easy-threading.el
  2000-04-22 13:13   ` Arcady Genkin
@ 2000-04-22 13:48     ` Lars Magne Ingebrigtsen
  2000-04-22 14:02       ` Arcady Genkin
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-22 13:48 UTC (permalink / raw)


Arcady Genkin <a.genkin@utoronto.ca> writes:

> IMHO those keys are hardly of any use in the summary buffer, and
> assigning them that function would be intuitive, but at the worst
> harmless.

I use the arrow keys in all kinds of buffers, and I loathe modes that
alter them to be "intuitive".  Like the completion buffers, dired,
etc.  What if you want to kill'n'yank stuff from the buffers?

Rebinding the arrow keys is evil.

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



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

* Re: [gnu.emacs.sources] gnus-easy-threading.el
  2000-04-22 13:48     ` Lars Magne Ingebrigtsen
@ 2000-04-22 14:02       ` Arcady Genkin
  0 siblings, 0 replies; 5+ messages in thread
From: Arcady Genkin @ 2000-04-22 14:02 UTC (permalink / raw)


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

> I use the arrow keys in all kinds of buffers, and I loathe modes that
> alter them to be "intuitive".  Like the completion buffers, dired,
> etc.  What if you want to kill'n'yank stuff from the buffers?
> Rebinding the arrow keys is evil.

You're probably right. I usually use C-n, C-p and friends for buffer
navigation, so I have little other use to the arrow keys.
-- 
Arcady Genkin                                 http://www.thpoon.com
Nostalgia isn't what it used to be.



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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-21 20:09 [gnu.emacs.sources] gnus-easy-threading.el Arcady Genkin
2000-04-22 11:15 ` Lars Magne Ingebrigtsen
2000-04-22 13:13   ` Arcady Genkin
2000-04-22 13:48     ` Lars Magne Ingebrigtsen
2000-04-22 14:02       ` Arcady Genkin

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