[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Behavior of M-s (repeat last search)
From: |
Sébastien Vauban |
Subject: |
Behavior of M-s (repeat last search) |
Date: |
Mon, 26 Dec 2005 10:13:35 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) Hamster/2.1.0.0 |
Hi,
I tried to modify the behavior of M-s to be able to *repeat the
last search* through the articles in the summary buffer, without
having to type enter each time.
What I wrote in my .gnus:
,----
| (defun gnus-summary-search-article-forward-next ()
| "Repeat the last forward search."
| (interactive)
| (when (stringp gnus-last-search-regexp)
| (gnus-summary-search-article-forward gnus-last-search-regexp nil)))
|
| (define-key gnus-summary-mode-map [(meta s)]
| 'gnus-summary-search-article-forward-next)
`----
But it does not behave correctly the first time... i.e. its
behavior is not correct, whether the function
'gnus-summary-search-article-forward´ has already been called or
not.
Can you help me?
Many thanks in advance,
Seb
PS- With a bit of advance, best wishes for 2006!
--
Sébastien Vauban
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Behavior of M-s (repeat last search),
Sébastien Vauban <=