unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Felipe Salvador <felipe.salvador@gmail.com>
To: lista-help-emacs <help-gnu-emacs@gnu.org>
Subject: Emacs formatting strings - %s expansion
Date: Tue, 19 Sep 2017 11:32:44 +0200	[thread overview]
Message-ID: <20170919093244.vdmec4xdxzp7g2pm@gnurante> (raw)

Hi,
I use Mutt whit Emacs as editor, I'm trying to configure emacs in
order to make use of abook[1] via ExternalAbook[2].
I've folowed theese instructions[2], so I have:

(custom-set-variables '(external-abook-command "abook --mutt-query %s"))

When I run abook query from terminal I get this:

~$ abook --mutt-query emacs
 
help-gnu-emacs@gnu.org  lista-help-emacs

If I write "emacs" in emacs an then call
M-x external-abook-try-expand, I get this:

<lista-help-emacs>

Without email address. I suppose it could still work if I would keep aliases
file up to date, this is not the point.

I'm wondering why emacs expand ´$s´ in <lista-help-emacs>,
where <lista-help-emacs> is the fourth field in
"help-gnu-emacs@gnu.org  lista-help-emacs" string[3], when I would expect, at
least, the first one.

--
~$ emacs --version
GNU Emacs 25.1.1

~$ dpkg -l | grep emacs | awk '{print $2,$3}'
emacs25-bin-common 25.1+1-4+deb9u1
emacs25-common 25.1+1-4+deb9u1
emacs25-common-non-dfsg 25.1+1-1
emacs25-el 25.1+1-4+deb9u1
emacs25-nox 25.1+1-4+deb9u1
emacsen-common 2.0.8

[1] http://abook.sourceforge.net/
[2] https://www.emacswiki.org/emacs/ExternalAbook
[3] https://www.gnu.org/software/emacs/manual/html_node/elisp/Formatting-Strings.html

Regards

-- 
Felipe Salvador



             reply	other threads:[~2017-09-19  9:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-19  9:32 Felipe Salvador [this message]
2017-09-19 16:40 ` Emacs formatting strings - %s expansion Felipe Salvador

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=20170919093244.vdmec4xdxzp7g2pm@gnurante \
    --to=felipe.salvador@gmail.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).