Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Kevin Brubeck Unhammer <unhammer@fsfe.org>
To: info-gnus-english@gnu.org
Subject: Re: How to save the attachment?)
Date: Mon, 22 Sep 2014 11:53:46 +0200	[thread overview]
Message-ID: <87d2aoyo9h.fsf@fsfe.org> (raw)
In-Reply-To: <87sijkcbor.fsf@gmx.us>


[-- Attachment #1.1: Type: text/plain, Size: 2088 bytes --]

Rasmus <rasmus@gmx.us> writes:

> Emanuel Berg <embe8573@student.uu.se> writes:
>
>> Quanyang Liu <lqymgt@gmail.com> writes:
>>
>>> Hi all
>>
>> Quanyang Liu also posted this post on gnu.emacs.help,
>> although it doesn't show in the headers. Maybe he did
>> two individual postings.
>>
>> I replied here, and I wonder if I can make a reference
>> to that post, on the gnu.emacs.help, as a followup to
>> "this" post (the one that appeared on that list)?
>>
>> Is there a Gnus/Goggle Groups interface so that I
>> quickly can get the URL? Or an interface to where the
>> list is archived? Yeah, where *is* the list/group
>> archived the usual GNU way? I Googled and surprisingly
>> enough it gave me GG as the first hit (which I don't
>> want to use as it requires JavaScript and I don't have
>> that in Emacs-w3m).
>
> I'm *probably* misunderstanding you here, but is the "Archived-At"
> header that's on every Gmane message what you are looking for?

I rebind M-w in summary-mode to grab the Archived-at header if there's
no active region, find it very handy for sharing links to gmane (and
it's easy to make a further function to open blog posts in a browser):

--8<---------------cut here---------------start------------->8---
(defun gnus-article-gwene/gmane-link ()
  (let ((url (with-current-buffer gnus-original-article-buffer
	       (setq url (gnus-fetch-field "Archived-at")))))
    (if (not (stringp url))
	(gnus-message 1 "No \"Archived-at\" header found.")
      (gnus-replace-in-string url "^<\\|>$" ""))))

(defun gnus-summary-kill-region-or-url-at-point ()
  (interactive)
  (let ((url (gnus-article-gwene/gmane-link)))
    (if (or (region-active-p)
	    (not url))
	(kill-ring-save (region-beginning) (region-end))
      (kill-new url)
      (message "%s" url))))

(add-hook
 'gnus-startup-hook
 (lambda nil
   (define-key gnus-summary-mode-map (kbd "M-w") 'gnus-summary-kill-region-or-url-at-point)))
--8<---------------cut here---------------end--------------->8---

-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C

[-- Attachment #1.2: Type: application/pgp-signature, Size: 472 bytes --]



  reply	other threads:[~2014-09-22  9:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.9299.1411299479.1147.info-gnus-english@gnu.org>
2014-09-21 15:26 ` How to save the attachment? Emanuel Berg
2014-09-22  1:06   ` Quanyang Liu
2014-09-22  1:15     ` Quanyang Liu
     [not found]     ` <mailman.9347.1411348641.1147.info-gnus-english@gnu.org>
2014-09-22  1:49       ` Emanuel Berg
2014-09-22  4:03         ` Quanyang Liu
     [not found]         ` <mailman.9355.1411369533.1147.info-gnus-english@gnu.org>
2014-09-22 13:44           ` Gijs Hillenius
     [not found]   ` <mailman.9346.1411348090.1147.info-gnus-english@gnu.org>
2014-09-22  1:32     ` Emanuel Berg
2014-09-21 23:12 ` make a reference, or 'reconnect' sent post somewhere else (was: Re: How to save the attachment?) Emanuel Berg
2014-09-21 23:18   ` Emanuel Berg
2014-09-22  8:16   ` Rasmus
2014-09-22  9:53     ` Kevin Brubeck Unhammer [this message]
     [not found]     ` <mailman.9375.1411379666.1147.info-gnus-english@gnu.org>
2014-09-22 22:03       ` Emanuel Berg
2014-09-23  0:52         ` Rasmus
     [not found]         ` <mailman.9412.1411433560.1147.info-gnus-english@gnu.org>
2014-09-23  1:35           ` Emanuel Berg
2014-09-23 23:45           ` Emanuel Berg
2014-09-24  0:24             ` Rasmus
     [not found]             ` <mailman.9455.1411518329.1147.info-gnus-english@gnu.org>
2014-09-24  1:23               ` Emanuel Berg
2014-09-27  1:12                 ` Rasmus
     [not found]                 ` <mailman.9774.1411780384.1147.info-gnus-english@gnu.org>
2014-09-27  2:04                   ` Emanuel Berg
2014-09-27 11:29                     ` Rasmus
     [not found]                     ` <mailman.9806.1411825835.1147.info-gnus-english@gnu.org>
2014-09-27 15:47                       ` Emanuel Berg
2014-09-21  2:08 How to save the attachment? Quanyang Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d2aoyo9h.fsf@fsfe.org \
    --to=unhammer@fsfe.org \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).