unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sebastian Tennant <sebyte@smolny.plus.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs bindings in other programs
Date: Tue, 04 Dec 2007 22:55:35 +0200	[thread overview]
Message-ID: <87k5nunprs.fsf@moley.moleskin.org> (raw)
In-Reply-To: 87ir3e5xhw.fsf@W0053328.mgh.harvard.edu

Quoth jadamson@partners.org (Joel J. Adamson):
>>> I use MozEx to follow mailto links and edit text fields.
>> Could you tell us exactly how you use MozEx for following mailto: links
>> Joel?
> Definitely: I have the following shell-script (suggestions welcome) that
> I found on some webpage somewhere (~/.emacs.d/gnus-mailto.sh):
>
> #!/bin/sh
> /usr/bin/emacsclient -e "(message-mail \"$1\")"
>
> and then in MozEx I enter "/home/joel/.emacs.d/gnus-mailto.sh %a" in the
> "Mailer: " field, and check the "intercept mail clicks" box.

Many thanks.  This is something I've been wanting to do for ages.  Since
discovering MozEx I felt certain it was quite possible, and as always,
it's easy when you know the trick.

I've adapted the script slightly, well... a lot I suppose, because I
don't want to use (message-mail ...) to compose my mails.

I want to use (gnus-group-mail ARG), whose argument has nothing to do
with who you want to send the email to, but it does have the advantage
of making use of any posting styles you may have defined.

My script therefore simply puts the address in the kill ring so it can
be yanked into place once gnus-group-mail has set up the mail buffer.

Here it is:

 #!/bin/sh
 /usr/bin/emacsclient -e "(with-temp-buffer \
                            (insert \"$1\") \
                            (kill-region    \
                              (point) (progn (beginning-of-line) (point))) \
                            (gnus-group-mail))"

Sebastian

P.S. MozEx doesn't do tilde expansion.  Use an absolute path to the
     script, or none at all, if your script directory is already in your
     path

  reply	other threads:[~2007-12-04 20:55 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-26 16:33 Emacs bindings in other programs YSK
2007-10-27  0:29 ` Xah Lee
2007-10-28  3:55   ` YSK
2007-10-31  0:15 ` John
2007-10-31  7:27   ` Sebastian Tennant
2007-10-31  7:47   ` Martin Rubey
2007-10-31 16:30     ` Stefan Monnier
2007-10-31 17:52       ` Martin Rubey
2007-10-31 20:06         ` Joel J. Adamson
2007-11-02  1:23         ` Stefan Monnier
2007-11-03  0:37         ` Tim X
2007-11-05 23:02           ` David Kastrup
2007-11-23  0:20           ` David Combs
2007-11-23  5:05             ` Tim X
2007-10-31 18:16     ` Amy Templeton
     [not found]     ` <mailman.2805.1193854394.18990.help-gnu-emacs@gnu.org>
2007-10-31 19:06       ` Rajappa Iyer
2007-10-31 14:12   ` Joel J. Adamson
2007-10-31 14:14   ` Joel J. Adamson
2007-10-31 18:11     ` YSK
2007-10-31 18:15   ` YSK
2007-10-31 19:19     ` Sven Bretfeld
2007-10-31 20:08     ` Joel J. Adamson
2007-12-04 13:08       ` Sebastian Tennant
     [not found]       ` <mailman.4489.1196774026.18990.help-gnu-emacs@gnu.org>
2007-12-04 14:46         ` Joel J. Adamson
2007-12-04 20:55           ` Sebastian Tennant [this message]
2007-12-04 19:56         ` Malte Spiess
2007-12-04 22:02           ` Sebastian Tennant
2007-12-16 19:05           ` David Combs
2007-12-17 20:51             ` Malte Spiess
     [not found]     ` <mailman.2808.1193858401.18990.help-gnu-emacs@gnu.org>
2007-10-31 20:22       ` YSK
2007-11-01  3:20     ` Alok G. Singh
     [not found]     ` <mailman.2824.1193886791.18990.help-gnu-emacs@gnu.org>
2007-11-06 21:31       ` YSK

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87k5nunprs.fsf@moley.moleskin.org \
    --to=sebyte@smolny.plus.com \
    --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.
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).