From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Felipe Salvador Newsgroups: gmane.emacs.help Subject: Emacs formatting strings - %s expansion Date: Tue, 19 Sep 2017 11:32:44 +0200 Message-ID: <20170919093244.vdmec4xdxzp7g2pm@gnurante> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1505813621 24359 195.159.176.226 (19 Sep 2017 09:33:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 09:33:41 +0000 (UTC) User-Agent: NeoMutt/20170113 (1.7.2) To: lista-help-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 19 11:33:37 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duEuO-00065I-HI for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 11:33:36 +0200 Original-Received: from localhost ([::1]:40991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duEuV-000271-T0 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 05:33:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duEtm-00025S-Lp for help-gnu-emacs@gnu.org; Tue, 19 Sep 2017 05:33:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duEti-00020X-2s for help-gnu-emacs@gnu.org; Tue, 19 Sep 2017 05:32:58 -0400 Original-Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:48976) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duEth-0001z3-SI for help-gnu-emacs@gnu.org; Tue, 19 Sep 2017 05:32:54 -0400 Original-Received: by mail-wm0-x234.google.com with SMTP id r68so3430043wmg.3 for ; Tue, 19 Sep 2017 02:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=kXjgdMINKMQuluTYbXhAOiydpTfn8MricLjFf96Sufo=; b=HXuSGnHAgLgeyU3dn8IgqHG/RRdlbzvXe0PV26OKyOX5Jcu2ezCNdxUlONP3ayB2Nb bUGzAHFQ640fmbD5qomFqWojPg+ZgCDsv0NkZxn3HOPId6W9KZRzA61uLBXhxxb3vjTq AasJiyZMkowbO5EnKTpHMJSGRUb7A9l4gi1aI/xjKMZiaQuTE7Uun0x6UHNIfKtM4A1J dpwScxOEWVYG3j/eNa7rmybK0LvFQhbVjtajNxbmHgH5HB7w6u4r8cssajwgmn7C1k3+ 1aH8Njww544XaATHF8MVhWEYrPPo7h8KOKZeK9BYtwRkGWoljieL35rLmflKsP6LbKBg 8fkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:content-transfer-encoding :user-agent; bh=kXjgdMINKMQuluTYbXhAOiydpTfn8MricLjFf96Sufo=; b=nQ/W7kKfWo/Vt6G4EenL+n+iKV+5QC5h1J2zgquy51M1qhvC8uIbeC4vtf0HPqkAYg Si4x9EzMngGtRuWg9bzkSDZXbuZhFEN3LvP40Mypgx0R0lW3x/D4FqnJLz23ZCHmjskN iLaUQ2tt00qD4Etk3UEp/34D82N3c9vTmnd/WQBocVCY5HJXJnWrSPYgxsd7nSC6mhv7 4KZUaWdLbq+iJvrNyPH4rxY5xvrP1ktRaKgOt5beCNGBic7JSlf9lSE2xLYdJNpm/A13 0TIUYo7Z1H6K1qJ4MQGqppZtc5zH/tdlcNypZ/oLINHGM0mTFfhmCwfr4a0gZI8+nFIl 8QHg== X-Gm-Message-State: AHPjjUjKGoHNTfgcJCcid4LreNdvyxYEFOGy79t/pzFbY1QZNWZnmqm3 0AWCFO4/yFPcwb+AS9uQViB9+Iea X-Google-Smtp-Source: AOwi7QAb4dffNpweANhfM2MqJOUUaMAAFd3pFWMrqE1gIdcuCozbzdME97YK88Ab/2HVkIXkkYEVUA== X-Received: by 10.28.218.141 with SMTP id r135mr537364wmg.63.1505813571216; Tue, 19 Sep 2017 02:32:51 -0700 (PDT) Original-Received: from localhost ([95.238.226.76]) by smtp.gmail.com with ESMTPSA id 11sm977681wmj.14.2017.09.19.02.32.50 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Sep 2017 02:32:50 -0700 (PDT) Mail-Followup-To: lista-help-emacs Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114309 Archived-At: 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: 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 , where 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