From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58854 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 21:23:19 -0300 Sender: ding-owner@lists.math.uh.edu Message-ID: <87y8iagnbc.fsf@guti.no-ip.org> References: <871xg4ekn5.fsf@guti.no-ip.org> <87brf6js0x.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 1097713985 15950 80.91.229.6 (14 Oct 2004 00:33:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Oct 2004 00:33:05 +0000 (UTC) Original-X-From: ding-owner+M7392@lists.math.uh.edu Thu Oct 14 02:32:48 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 1CHtXz-0008Uh-00 for ; Thu, 14 Oct 2004 02:32:47 +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 1CHtX4-0002OL-00; Wed, 13 Oct 2004 19: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 1CHtWx-0002OF-00 for ding@lists.math.uh.edu; Wed, 13 Oct 2004 19:31:43 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CHtWt-0006oM-QZ for ding@lists.math.uh.edu; Wed, 13 Oct 2004 19:31:39 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by justine.libertine.org (Postfix) with ESMTP id 9CD363A0058 for ; Wed, 13 Oct 2004 19:31:38 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CHtWq-000400-00 for ; Thu, 14 Oct 2004 02:31:36 +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 ; Thu, 14 Oct 2004 02: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 ; Thu, 14 Oct 2004 02:31:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 46 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:LI4ryk3B8Rp4BW6KTV20aZvgQvI= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58854 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58854 Jesper Harder wrote: > Cristian Gutierrez writes: > >> 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: > > You could move pop-limit down to the function instead to make the > bookmarks easier to write. Good idea. [...] > Remember that evaluating a defvar, e.g. with `C-j', does not change > the value if the variable is already defined. To set it > unconditionally you can use `C-M-x'. Couldn't be more right: I was merely doing a `C-x C-e' in front of the defvar. Now it works flawlessly. Thanks again! If anyone feels like trying this, here it is what I'm using now: ,---- | (defvar my-limit-bookmark-alist | '(("job" . (gnus-summary-limit-to-author "jobdomain.com")) | ("thesis" . (gnus-summary-limit-to-author "someteacher"))) | "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))) | (condition-case nil | (gnus-summary-pop-limit) | (error nil)) | (eval (cdr (assoc limit my-limit-bookmark-alist)))) | | (define-key gnus-summary-mode-map "/q" 'my-limit-bookmark) `---- -- Cristian Gutierrez http://www.dcc.uchile.cl/~crgutier crgutier[@]dcc.uchile.cl Jabber:crgutier@jabber.org Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!