From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: [OT, meta] markup (Re: have emacs use SIGTERM to end a process instead of SIGHUP)
Date: Sat, 20 Jul 2013 07:53:00 +0200 [thread overview]
Message-ID: <87a9lhg4lf.fsf@VLAN-3434.student.uu.se> (raw)
In-Reply-To: mailman.1423.1374252559.12400.help-gnu-emacs@gnu.org
Tassilo Horn <tsdh@gnu.org> writes:
> Hm, not sure what might be the culprit. But what is
> `new-message' good for, i.e., what does it do that C-x m
> (`compose-mail') with `mail-user-agent' set to `gnus-user-agent'
> wouldn't also do?
OK, I looked into this.
`new-message' looks like the below code. I improved the docstring
a bit.
With `new-message', I can fill in the provided, blank headers like
this -
Newsgroups: alt.test
To: Emanuel Berg <embe8573@...>
Subject: test
- and then fire away: I'll get a mail, *and* alt.test will get a
post.
This is just an example (and I don't use it regularly), but I
think it is kind of cool.
Anyway, it seems to work *both* with `message-user-agent' and
`gnus-user-agent' as `mail-user-agent' (both mail and post work,
for both).
`compose-mail' with `gnus-user-agent' worked for mail, but not for
posts, when I gave it a "Newsgroup:" header manually.
Just to have done something, I changed to `gnus-user-agent' (for
the old new-message). But I don't see how that would help, because
Gnus has always been the sender in my interaction with Usenet.
(defun new-message ()
"Open a new, empty message,
be it a Usenet post or a mail (or both),
with `gnus-post-news'.
This requires Gnus to run:
that is, there must be a *Group* buffer.
If there isn't, then `gnus' is started;
after that, a second attempt is made.
Also, a \"To:\" header is added, and point is moved
so that any typing will go into that header field."
(interactive)
(if (get-buffer "*Group*")
(progn
(gnus-post-news 'post "")
(insert "\nTo: ")
(transpose-lines 1)
(set-buffer-modified-p nil)
(goto-char 1)
(end-of-line) )
(progn
(gnus)
(new-message) )))
--
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573
next prev parent reply other threads:[~2013-07-20 5:53 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-08 22:16 have emacs use SIGTERM to end a process instead of SIGHUP John Leach
2013-07-09 12:02 ` Tassilo Horn
2013-07-12 11:01 ` John Leach
2013-07-15 10:46 ` Tassilo Horn
[not found] ` <mailman.1087.1373885216.12400.help-gnu-emacs@gnu.org>
2013-07-15 14:10 ` [OT, meta] markup (Re: have emacs use SIGTERM to end a process instead of SIGHUP) Emanuel Berg
2013-07-16 7:47 ` Tassilo Horn
[not found] ` <mailman.1147.1373960909.12400.help-gnu-emacs@gnu.org>
2013-07-16 23:16 ` Emanuel Berg
2013-07-17 0:42 ` Emanuel Berg
2013-07-17 10:11 ` Tassilo Horn
[not found] ` <mailman.1235.1374055880.12400.help-gnu-emacs@gnu.org>
2013-07-19 10:24 ` Emanuel Berg
2013-07-19 13:05 ` Tassilo Horn
[not found] ` <mailman.1386.1374239175.12400.help-gnu-emacs@gnu.org>
2013-07-19 13:21 ` Emanuel Berg
2013-07-19 16:48 ` Tassilo Horn
[not found] ` <mailman.1423.1374252559.12400.help-gnu-emacs@gnu.org>
2013-07-20 4:32 ` Emanuel Berg
2013-07-20 5:53 ` Emanuel Berg [this message]
2013-07-22 9:17 ` Emanuel Berg
2013-07-22 9:31 ` Emanuel Berg
2013-07-23 6:59 ` Tassilo Horn
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=87a9lhg4lf.fsf@VLAN-3434.student.uu.se \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.