all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Felipe Salvador <felipe.salvador@gmail.com>
To: lista-help-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Emacs formatting strings - %s expansion
Date: Tue, 19 Sep 2017 18:40:56 +0200	[thread overview]
Message-ID: <20170919164056.5s6lrbiuqvnl4f3e@gnurante> (raw)
In-Reply-To: <20170919093244.vdmec4xdxzp7g2pm@gnurante>

On Tue, Sep 19, 2017 at 11:32:44AM +0200, Felipe Salvador wrote:
> 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.

Solved, in the ExternalAbook page there is the solution:

> Dan’s solution works well, but smtp from mu4e-compose sometimes fails
> if the name part is not quoted and contains commas (Lastname,Firstname).
> Also, goobok outputs an extra blank line.
> Replacing cut with (g)awk solves both problems:
> goobook “$@” | gawk -F’\t’ ‘/.+/ {print $1 “\t” “\””$2 “\””}’

-- 
Felipe Salvador



      reply	other threads:[~2017-09-19 16:40 UTC|newest]

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

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=20170919164056.5s6lrbiuqvnl4f3e@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.
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.