From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50202 Path: main.gmane.org!not-for-mail From: sigurd@12move.de (Karl =?iso-8859-1?q?Pfl=E4sterer?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Better definition for `gnus-article-refer-article' Date: Thu, 20 Feb 2003 14:08:43 +0100 Organization: Lemis World Sender: owner-ding@hpc.uh.edu Message-ID: References: <84isvfe05f.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045746692 27779 80.91.224.249 (20 Feb 2003 13:11:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 13:11:32 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lqU5-0007DY-00 for ; Thu, 20 Feb 2003 14:11:29 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18lqTM-0001KR-00; Thu, 20 Feb 2003 07:10:44 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 20 Feb 2003 07:11:43 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id HAA23167 for ; Thu, 20 Feb 2003 07:11:31 -0600 (CST) Original-Received: (qmail 1795 invoked by alias); 20 Feb 2003 13:10:27 -0000 Original-Received: (qmail 1790 invoked from network); 20 Feb 2003 13:10:27 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 20 Feb 2003 13:10:27 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18lqgW-0008Qf-00 for ; Thu, 20 Feb 2003 14:24:20 +0100 Original-To: ding@gnus.org Original-Path: wintendo.pflaesterer.de!not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 39 Original-NNTP-Posting-Host: p62.246.146.164.tisdip.tiscali.de Original-X-Trace: quimby.gnus.org 1045747460 32404 62.246.146.164 (20 Feb 2003 13:24:20 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 20 Feb 2003 13:24:20 GMT X-Face: #iIcL\6>Qj/G*F@AL9T*v/R$j@7Q`6#FU&Flg6u6aVsLdWf(H$U5>:;&*>oy>jOIWgA%8w* A!V7X`\fEGoQ[@D'@i^*p3FCC6&Rg~JT/H_*MOX;"o~flADb8^ Mail-Copies-To: never User-Agent: Oort Gnus v0.16 Hamster/2.0.0.1 Cancel-Lock: sha1:BbdFsnxzi2xBLKi3FsvGPROEAmU= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50202 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50202 Kai Großjohann <- kai.grossjohann@uni-duisburg.de wrote: > In principle, it's a good idea. There could be a problem, though. > Have you tried it on buttons looking like ? I think it Yes. > might set message-id to something like <> -- one set of > angle brackets too many. No that doesn't happen. I have another IMO better definition of the function here. I think it is enough to search on the line where point is. (defun gnus-article-refer-article () "Read article specified by message-id around point." (interactive) (save-excursion (re-search-backward ""))) (set-buffer gnus-summary-buffer) (gnus-summary-refer-article msg-id))) (t (error "No references around point"))))) A check for already existing angle brackets would be possible but IMO it is not necessary. I tried some message ids and saw no expresssion where there brackets get caught by `match-string'. bye KP -- 'Twas brillig, and the slithy toves Did gyre and gimble in the wabe; All mimsy were the borogoves, And the mome raths outgrabe. "Lewis Carroll" "Jabberwocky"