Gnus development mailing list
 help / color / mirror / Atom feed
From: Jesper Harder <harder@ifa.au.dk>
Subject: Re: Bookmarking summary limit commands?
Date: Tue, 12 Oct 2004 22:34:12 +0200	[thread overview]
Message-ID: <m3wtxvvfp7.fsf@defun.localdomain> (raw)
In-Reply-To: <871xg4ekn5.fsf@guti.no-ip.org> (Cristian Gutierrez's message of "Mon, 11 Oct 2004 23:27:10 -0300")

Cristian Gutierrez <crgutier@dcc.uchile.cl> writes:

> But switching between these is somewhat tiresome, and cluttering the
> keymap with hotkeys for each one of them is not very useful; so my
> question is: Is there some way to `bookmark' a limit command/author
> combo, so I can assign _one_ keybinding and use it to select what
> "view" (entry on the bookmarks list) I want to apply?

There's no predefined functionality.  But it's fairly straightforward
to make, e.g.

(defvar my-limit-bookmark-alist
  '(("Lars" . (gnus-summary-limit-to-author "Lars"))
    ("Not Lars" . (gnus-summary-limit-to-author "Lars" t))
    ("RSS" . (gnus-summary-limit-to-subject "rss")))
  "Alist of limit bookmarks.")

(defun my-limit-bookmark (limit)
  "Apply a limit in `my-limit-bookmark-alist'."
  (interactive
   (list (completing-read "Bookmark: " my-limit-bookmark-alist)))
  (eval (cdr (assoc limit my-limit-bookmark-alist))))

-- 
Jesper Harder                                <http://purl.org/harder/>



  reply	other threads:[~2004-10-12 20:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-12  2:27 Cristian Gutierrez
2004-10-12 20:34 ` Jesper Harder [this message]
2004-10-13 20:13   ` Cristian Gutierrez
2004-10-13 21:42     ` Jesper Harder
2004-10-14  0:23       ` Cristian Gutierrez
2004-10-17 12:45 ` Kai Grossjohann
2004-10-18  3:09   ` Cristian Gutierrez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3wtxvvfp7.fsf@defun.localdomain \
    --to=harder@ifa.au.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).