Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Alberto Luaces <aluaces@udc.es>
To: info-gnus-english@gnu.org
Subject: Re: [Q] what is mean posting-from-work-p in gnus-posting-style
Date: Mon, 25 Nov 2019 13:58:14 +0100	[thread overview]
Message-ID: <87blt0t8nt.fsf@eps142.cdf.udc.es> (raw)
In-Reply-To: <yw87h7vzvu.fsf@delta.birch.chromebook>

(황병희) writes:

> Hellow, i am seeing Gnus manual [1]. At there is odd statement.
>
> #+BEGIN_SRC emacs lisp
> (setq gnus-posting-styles
>       '((".*"
>         (signature-file "~/.signature"))
>        ((posting-from-work-p) ;; A user defined function
>         (signature-file "~/.work-signature"))))
> #+END_SRC
>
> What does (posting-from-work-p) means?
> Actually i did fail to read and understand...

It is a fictitious (example) function that could be able to know if you
are at your work desk or at any other place, in order to select the
appropriate posting style.

Actually, it is an example of the degree of customization that you can
reach with posting styles, since they can also evaluate custom elisp
functions that can output different things even after configuration
time.

-- 
Alberto


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2019-11-25 12:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-25 10:16 황병희
2019-11-25 12:58 ` Alberto Luaces [this message]
2019-11-26  2:25   ` 황병희

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=87blt0t8nt.fsf@eps142.cdf.udc.es \
    --to=aluaces@udc.es \
    --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).