From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58829 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Bookmarking summary limit commands? Date: Tue, 12 Oct 2004 22:34:12 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <871xg4ekn5.fsf@guti.no-ip.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097613528 12116 80.91.229.6 (12 Oct 2004 20:38:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Oct 2004 20:38:48 +0000 (UTC) Original-X-From: ding-owner+M7367@lists.math.uh.edu Tue Oct 12 22:38:27 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CHTPe-0001a0-00 for ; Tue, 12 Oct 2004 22:38:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CHTM2-0005dW-00; Tue, 12 Oct 2004 15:34:42 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CHTLu-0005dO-00 for ding@lists.math.uh.edu; Tue, 12 Oct 2004 15:34:34 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CHTLr-0004QV-Oz for ding@lists.math.uh.edu; Tue, 12 Oct 2004 15:34:31 -0500 Original-Received: from fitch5.uni2.net (fitch5.uni2.net [130.227.52.108]) by justine.libertine.org (Postfix) with ESMTP id 4A6533A01FC for ; Tue, 12 Oct 2004 15:34:29 -0500 (CDT) Original-Received: from defun.localdomain (83.72.232.87.ip.tele2adsl.dk [83.72.232.87]) by fitch5.uni2.net (8.12.6/8.11.6) with ESMTP id i9CKYRWI016806 for ; Tue, 12 Oct 2004 22:34:28 +0200 Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org In-Reply-To: <871xg4ekn5.fsf@guti.no-ip.org> (Cristian Gutierrez's message of "Mon, 11 Oct 2004 23:27:10 -0300") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58829 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58829 Cristian Gutierrez 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