Gnus development mailing list
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: ding@gnus.org
Subject: Re: Endless impression~ Gnus' citation style..
Date: Tue, 19 Jul 2016 00:48:46 +0200	[thread overview]
Message-ID: <86eg6q7eb5.fsf@student.uu.se> (raw)
In-Reply-To: <86oa5u7fgc.fsf@student.uu.se>

In article <86oa5u7fgc.fsf (at) student.uu.se>,
Emanuel Berg <embe8573 (at) student.uu.se>
writes:

> OK, so now most definitely the OP has enough
> material to present a qualified attempt at
> solving his problem! Until then I'll lay low
> :)

OK, I take that back! Seeing how easy it would
be to complete JAAMs function, I couldn't
resist doing it (actually I didn't try to
resist it).

I already tried it on my previous message - see
the first three lines of this message - is that
what you (the OP) had in mind?

Note that I did (at) instead of <at> because
there are already angle brackets on the outside
so it looks strange to have them on the inside
as well <i.e. <nested>, like that> - anyway
this can be changed easily enough...

By the way, what is the reason for knowing the
message ID? Can you do anything interesting
with that information? If so, what?

Here is the function:

(defun citation-style-function ()
  (let*((id           (mail-header-id   message-reply-headers))
        (from         (mail-header-from message-reply-headers))
        (from-data    (gnus-extract-address-components from))
        (name         (car  from-data))
        (email        (cadr from-data))
        (citation-string (format "In article %s, %s <%s> writes:"
                                 id name email) )
        (masked-string (replace-regexp-in-string "@" " (at) "
                                                 citation-string) ))
    (insert masked-string)
    (newline)
    (newline) ))

(setq message-citation-line-function 'citation-style-function)

-- 
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 58 Blogomatic articles -                   




  reply	other threads:[~2016-07-18 22:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-18 11:17 Byung-Hee HWANG (황병희)
2016-07-18 14:13 ` Emanuel Berg
2016-07-18 15:40   ` Jorge A. Alfaro-Murillo
2016-07-18 15:54     ` Byung-Hee HWANG (황병희)
2016-07-18 19:44     ` Emanuel Berg
2016-07-18 20:32       ` Jorge A. Alfaro-Murillo
2016-07-18 22:24         ` Emanuel Berg
2016-07-18 22:48           ` Emanuel Berg [this message]
2016-07-18 23:03             ` Emanuel Berg
2016-07-18 23:44             ` Dmitry Alexandrov
2016-07-19  0:15               ` Dmitry Alexandrov
2016-07-19  0:40                 ` Emanuel Berg
2016-07-19  0:27               ` Emanuel Berg
2016-07-21 13:03             ` Byung-Hee HWANG (황병희)
2016-07-21 15:27               ` Emanuel Berg
2016-07-18 15:42   ` Byung-Hee HWANG (황병희)
2016-07-18 17:13 ` Andreas Schwab

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=86eg6q7eb5.fsf@student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=ding@gnus.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).