all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs formatting strings - %s expansion
@ 2017-09-19  9:32 Felipe Salvador
  2017-09-19 16:40 ` Felipe Salvador
  0 siblings, 1 reply; 2+ messages in thread
From: Felipe Salvador @ 2017-09-19  9:32 UTC (permalink / raw)
  To: lista-help-emacs

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-19 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-19  9:32 Emacs formatting strings - %s expansion Felipe Salvador
2017-09-19 16:40 ` Felipe Salvador

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.