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 01:03:45 +0200	[thread overview]
Message-ID: <867fci7dm6.fsf@student.uu.se> (raw)
In-Reply-To: <86eg6q7eb5.fsf@student.uu.se>

Emanuel Berg [embe8573(a)student.uu.se] writes:

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

What do you think of this one? (I mean the
first line, not the citation which happens to
contain one as well.) Looks kinda' good, ey? :)

By the way, is the OP's "citation style" what
is called the "attribution line" in the
Gnus source? E.g., line 117, in:

    /usr/share/emacs/24.4/lisp/gnus/gnus-cite.el.gz

Only remaining obstacle changing it is the
regexp setting the face must change as well!
On the other hand, keeping the attribution line
simple and the regexp detecting it is simple
as well!

And the function producing it? I'd say,
pretty simple!

(defun citation-style-function ()
  (let*((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 "%s [%s] writes:" name email))
        (masked-string   (replace-regexp-in-string "@" "(a)"
                                                   citation-string) ))
    (insert masked-string)
    (newline)
    (newline) ))
(setq message-citation-line-function 'citation-style-function)

From: http://user.it.uu.se/~embe8573/conf/emacs-init/gnus/article.el

-- 
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 23:03 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
2016-07-18 23:03             ` Emanuel Berg [this message]
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=867fci7dm6.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).