From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: Format with %-* Date: Tue, 09 Jul 2024 10:07:01 +0200 Message-ID: <668cefa7.5d0a0220.7cef8.752c@mx.google.com> References: <-t_b-eMlmOCn1_vFdAmz9waZjs7MjLMZYRZVXJA3NXssGUg92uCVXGpvbYwFJWOfrwcigbCc6tP3SxPlpPuebgW_SdhWSAQguDd6lSXj_Oc=@protonmail.com> <668c2644.050a0220.1cd50.0e56@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36048"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 09 10:07:52 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sR5tA-0009BJ-FW for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Jul 2024 10:07:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sR5sV-0000da-27; Tue, 09 Jul 2024 04:07:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sR5sR-0000UU-UP for help-gnu-emacs@gnu.org; Tue, 09 Jul 2024 04:07:07 -0400 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sR5sQ-0003qH-6q for help-gnu-emacs@gnu.org; Tue, 09 Jul 2024 04:07:07 -0400 Original-Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-367a2c2e41aso2407720f8f.2 for ; Tue, 09 Jul 2024 01:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720512424; x=1721117224; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=S2hgKmYj5NMpsLPTFUgKVeorISC6r0HdUvSFXBvO688=; b=E3c//BvxnRRIsX49djPPiNmaL9f/lfqPiHerO9gMgCvOsNPomQlYu9CImTxKnvO2ri 0mxkoRfzapgcGvTJ/JYHUy5y+6SpQ+qEIWe4PmYZhtF81msna0jDhv86DqpzSxq2Lmn+ KLt011chn2rfSnR+GyIvze9pgK22irHtPrOMRHwDE0hGL4aN9E60gXGReAFtTAS24foO 3tZhDhz6M27WjvjJ7dYy1ZHi7loOvgsqnOfri1Hq+6RGIhTD0gTwn042hy0UpEwkdqHn OtoSQbORUT3adbf602DtrVi7eikmRhGu/uokLSQ+4BPCfIiGqEkmfz0CqjigJj8U+Hyn sF9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720512424; x=1721117224; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S2hgKmYj5NMpsLPTFUgKVeorISC6r0HdUvSFXBvO688=; b=dDiMBuJ7r57fd8HhUhlOwkF2PLN/L+FOlCvWCvfBm5n+3BEhPpUg3akFAODdHmbDJe jH65PUkbseYDrlblBAtOfoBfOmBXryu5AC1/NUIi+Ye89MMT0CIrFHr+4WtYrp477oOP C3RWctN4Ac3u725DZPlpBwExjHXCKapOM9tCnsqVUm6NOMqp70wOivUuhf84SqFeOaa8 03SyLED+nDObxZLDoama5qzR7QhoDdXtgN93pP+JHNVr09xbrPf6ahXJY5lDEZPyqR/Q F/vYL+Jb5qbcPX5Q5A+tz51JFXm+m1f199xB8hbjiMaPA/AMx//pN0qr4WXFNEkavj1t FkmA== X-Gm-Message-State: AOJu0YzgSpAHqFCK+RQCK/OHbKhabcu5dbojZ+II8mU84cIgZcVw+2Sv Cu79WyORQqVyIZKHj54PjvKXLyZUrjrvlBoZJSVXtwd9V+r7wg2X X-Google-Smtp-Source: AGHT+IEQqZ6MTeFS3suJK0pBGVHS8j4aN6yVJmo/kNvtiT5hRuSfe1/UKz86qA+ld/5rg/u1dAENSg== X-Received: by 2002:a05:6000:1e97:b0:362:7c2e:e9f7 with SMTP id ffacd0b85a97d-367cea8f915mr1381542f8f.32.1720512424236; Tue, 09 Jul 2024 01:07:04 -0700 (PDT) Original-Received: from keynux.home.arpa. ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-367cde890bdsm1806802f8f.50.2024.07.09.01.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 01:07:03 -0700 (PDT) Original-Received: by keynux.home.arpa. (sSMTP sendmail emulation); Tue, 09 Jul 2024 10:07:02 +0200 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=brubar.cs@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147128 Archived-At: Heime writes: > How can I construct a format that uses a space spx followed by a field of width 13 > into which I insert a label lbv2. > > (insert (format (format "%%s%-%ds" 13) spx lbv2))) I wouldn't try to put everything in the format; i.e. I woud insert some space, then insert the field.