From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84038 Path: news.gmane.org!not-for-mail From: Alexander Baier Newsgroups: gmane.emacs.gnus.general Subject: Re: From Elisp: Do stuff with article at point Date: Wed, 08 Jan 2014 17:09:57 +0100 Message-ID: <87eh4ie9pm.fsf@gmail.com> References: <8761pvfpka.fsf@gmail.com> <87vbxua4hm.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389197442 8540 80.91.229.3 (8 Jan 2014 16:10:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2014 16:10:42 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32290@lists.math.uh.edu Wed Jan 08 17:10:48 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W0viN-0004f5-Uw for ding-account@gmane.org; Wed, 08 Jan 2014 17:10:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1W0vi8-0006OP-BX; Wed, 08 Jan 2014 10:10:28 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1W0vi5-0006OC-R6 for ding@lists.math.uh.edu; Wed, 08 Jan 2014 10:10:25 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1W0vi0-0007XL-Ra for ding@lists.math.uh.edu; Wed, 08 Jan 2014 10:10:25 -0600 Original-Received: from mail-ea0-f177.google.com ([209.85.215.177]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1W0vhz-0000Hb-FQ for ding@gnus.org; Wed, 08 Jan 2014 17:10:19 +0100 Original-Received: by mail-ea0-f177.google.com with SMTP id n15so919795ead.22 for ; Wed, 08 Jan 2014 08:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=/sazvr+N35A6XkfeBqtQpiiZ+nnrh21SeiQgpPj4g+I=; b=M4liiq9BvQ6iV8xrXA9593MEqOMEmRKXCiJsDhcYVDU4+1cDl9M+wNPmg19CAoNjo2 Db9LV+wHkIudLLR4xF4+yhm+dy4yKC28YOCPSv+o10G76VWimRr10/XhqiswTUAGcdJ0 Jmm1/PKy45C3g6u/dac/2giJ8ms04LZyhyUBMamdujEVa9WGyrMOG+1EydpXfwCEthOF ebrPiYg3z90nON3grjDns6HrFbgRuZUTVnWqsTUj6fHCcnsdA2TwIko3gkqDHmiKUjVZ zTUD3QVLqZtl+uJJwuBIjFpjyFXRdO0wX366qINmaVhJvei1kFDDUvqo5foAOjXCAIwB +Dxw== X-Received: by 10.14.104.7 with SMTP id h7mr14219879eeg.95.1389197413776; Wed, 08 Jan 2014 08:10:13 -0800 (PST) Original-Received: from T420s (nat-wh-wh36.rz.uni-karlsruhe.de. [141.70.81.154]) by mx.google.com with ESMTPSA id o47sm190972016eem.21.2014.01.08.08.10.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2014 08:10:13 -0800 (PST) Mail-Followup-To: ding@gnus.org In-Reply-To: <87vbxua4hm.fsf@flea.lifelogs.com> (Ted Zlatanov's message of "Wed, 08 Jan 2014 10:16:21 -0500") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84038 Archived-At: Hello Ted, On 2014-01-08 16:16 Ted Zlatanov wrote: > On Tue, 07 Jan 2014 22:29:57 +0100 Alexander Baier wrote: > > AB> I want to do "something" (what exactly is not really interesting I > AB> think) with the article at point. In this scenario the cursor is either > AB> in the summary or the article buffer. > > AB> What are the recommended means of doing something like that from emacs > AB> lisp? Are there some functions I can take a look at, or even a macro in > AB> the form of (with-article-at-point BODY)? Or some documentation that > AB> adresses such questions? > > Take a look at `gnus-summary-save-article'. Note how it can handle > multiple articles, that's a pretty common usage pattern in Gnus: mark a > number of articles, then run a single command on all of them. Thank you for the quick reply. Unfortunatley this is not what I was looking for. Maybe my explanation was misleading--Let me try again: I do not want to save the article to disk, I merely want to do some searching and copying in the buffer containing the article in question. So I "just" need a fuction that gives me the buffer name or buffer object of the current article at point, so that I can use it with `with-current-buffer'. Thanks, -- Alexander Baier