emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Rottmann <a.rottmann@gmx.at>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Small fix for Gnus integration
Date: Fri, 03 Jul 2009 23:00:35 +0200	[thread overview]
Message-ID: <87zlblscr0.fsf@delenn.lan> (raw)

[-- Attachment #1: Type: text/plain, Size: 202 bytes --]

Without the following patch, storing links to Gnus Article buffers fails
on CVS Emacs, as they (at least in my setup -- IMAP) always contain a
"From " line, which can't be parsed as an RFC822 header.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: +gnus-tweak.patch --]
[-- Type: text/x-diff, Size: 965 bytes --]

From: Andreas Rottmann <a.rottmann@gmx.at>
Subject: [PATCH] Fixes for the Gnus integration

- `org-gnus-store-link': When the article buffer starts with "From ",
    ignore the first line. This is necessary at least on Gnus v5.13,
    as shipped with emacs23 (CVS 2009-06-18).

 lisp/org-gnus.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
index 41b1be7..4cc5adb 100644
--- a/lisp/org-gnus.el
+++ b/lisp/org-gnus.el
@@ -128,6 +128,8 @@ If `org-store-link' was called with a prefix arg the meaning of
 	   (header (with-current-buffer gnus-article-buffer
 		     (gnus-summary-toggle-header 1)
 		     (goto-char (point-min))
+                     (when (looking-at "From ")
+                       (next-line))
 	   (from (mail-header 'from header))
 	   (message-id (org-remove-angle-brackets
tg: (0795e42..) t/gnus-fixes (depends on: master)

[-- Attachment #3: Type: text/plain, Size: 16 bytes --]

Regards, Rotty

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

             reply	other threads:[~2009-07-03 21:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-03 21:00 Andreas Rottmann [this message]
2009-07-06 18:16 ` Small fix for Gnus integration Tassilo Horn
2009-07-07 10:34   ` Andreas Rottmann
2009-07-07 10:56     ` Tassilo Horn
2009-07-07 11:35       ` Andreas Rottmann
2009-07-07 11:27     ` Carsten Dominik

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:

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87zlblscr0.fsf@delenn.lan \
    --to=a.rottmann@gmx.at \
    --cc=emacs-orgmode@gnu.org \


* 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.
Code repositories for project(s) associated with this public inbox


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 read-only IMAP folder(s) and NNTP newsgroup(s).