From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58850 Path: main.gmane.org!not-for-mail From: Cristian Gutierrez Newsgroups: gmane.emacs.gnus.general Subject: Re: Bookmarking summary limit commands? Date: Wed, 13 Oct 2004 17:13:18 -0300 Sender: ding-owner@lists.math.uh.edu Message-ID: <87brf6js0x.fsf@guti.no-ip.org> 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 1097699530 6525 80.91.229.6 (13 Oct 2004 20:32:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2004 20:32:10 +0000 (UTC) Original-X-From: ding-owner+M7388@lists.math.uh.edu Wed Oct 13 22:31:57 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 1CHpmv-0008CT-00 for ; Wed, 13 Oct 2004 22:31:57 +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 1CHpmo-0001jt-00; Wed, 13 Oct 2004 15:31:50 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CHpmk-0001jo-00 for ding@lists.math.uh.edu; Wed, 13 Oct 2004 15:31:46 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CHpmc-0003wd-8F for ding@lists.math.uh.edu; Wed, 13 Oct 2004 15:31:38 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by justine.libertine.org (Postfix) with ESMTP id 1EF463A0043 for ; Wed, 13 Oct 2004 15:31:36 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CHpmZ-0008E5-00 for ; Wed, 13 Oct 2004 22:31:35 +0200 Original-Received: from 14-3-112.adsl.terra.cl ([200.112.3.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Oct 2004 22:31:35 +0200 Original-Received: from crgutier by 14-3-112.adsl.terra.cl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Oct 2004 22:31:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 59 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 14-3-112.adsl.terra.cl Face: iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAADFBMVEUWFhZfX1+ioqL6+vr8 dj+QAAAAAWJLR0QAiAUdSAAAAg5JREFUeNql0s9r02AYB/B4GIHuoAgVVmG9CVYwf4ILrht40Ynd dEXioWUsA3PaQQ8LKHpYLnbTThwiHbWYV9Sj9rL36NUObGkPUrVzuIs/6BvyluZ9ljcxaXI2lzwf eJOH9/k+AvhP/7j/Fv65OxMzmynhqO1zH/So+29NLeqvh6YU8WADmemIP4lxL8pxp6p3o2aZegZl R3YyaBJNaaGHKkqgxOXQNkKXzLQR+g9C6+b5kfcQevgmpYRuIrRZn5BCryO0US3ogW1BdV0J+3dz grpXmQXYfuf5nkLH5ksK/SIrnq/rg26ioTmdygtupwgWHSvoTnvF4CZl17dOYNoWy9yNPOzXfstg tYtXuR9o0JwlL+HgeWGBW8ZgGBbFnWUhw33Sbdz6TvHN1ey8a3YGIN+6T2C5PYFdD2sA6d5FAu9v LH3WBbAJBgmIDJ3ioooFoCzPNDq5in82TX7egsdXcE+0pZ3sEr+fxW7XoCvS3HRS4f7rrGHojRP0 6A72TOtuoBrZnVvz5kGIzVejX0jpvi2bF0Q+iz1TWuXFwbOkP7/hrrdaH58u+HakX7wwSsF8/eDT wf45417kFwIPd7yIcWDS52UDApevuZ86p0PLK1tuZHpoBN8YLgOM9pswfft/vO9oMf9g6UbMYNij /jDYglZwHRCYIIgx56aO4earyPlD89R0Mvo/9kR9HfgIgorhXaQc58oAAAAASUVORK5CYII= User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:tv3YecS/AB0uvTPzp51/thkCgk8= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58850 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58850 Jesper Harder wrote: > 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. [code] This is just nice, thank you Jesper! I added a pop-limit command just before the actual limit command for each entry, to be able to switch between them without manually doing "/w" every time: ,---- | (defvar my-limit-bookmark-alist | '(("analytics" . (progn | (gnus-summary-pop-limit) | (gnus-summary-limit-to-author "analytics\\|dads"))) | ("irf" . (progn | (gnus-summary-pop-limit) | (gnus-summary-limit-to-author "rlemus\\|javier g"))) | ("memoria" . (progn | (gnus-summary-pop-limit) | (gnus-summary-limit-to-author "cecilia\\|garreaud")))) | "Alist of limit bookmarks.") `---- But now when a limit fails, I get blocked trying to switch to another one with the message "No limit to pop" (yes, because the limit has already been popped in the last [failed] limit). How could I force the second command in (progn ...) to be evaluated even if the first fails? I tried surrounding the first one in a condition-case construct, for example: ,---- | ("analytics" . (progn | (condition-case nil | (gnus-summary-pop-limit) | (error nil)) | (gnus-summary-limit-to-author "analytics\\|dads"))) `---- ... but the result is the same. Any insights are appreciated. -- Cristian Gutierrez http://www.dcc.uchile.cl/~crgutier crgutier[@]dcc.uchile.cl Jabber:crgutier@jabber.org "Today's piece of secure software is the subject of tomorrow's Bugtraq posting. -- http://www.landfield.com/isn/mail-archive/2001/Nov/0076.html