[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs formatting strings - %s expansion

From: Felipe Salvador
Subject: Emacs formatting strings - %s expansion
Date: Tue, 19 Sep 2017 11:32:44 +0200
User-agent: NeoMutt/20170113 (1.7.2)

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  lista-help-emacs

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


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
"  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



Felipe Salvador

reply via email to

[Prev in Thread] Current Thread [Next in Thread]