From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: String length 13 characters made of blank spaces Date: Fri, 30 Oct 2020 09:05:32 +0100 Message-ID: <87imasp29f.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="960"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.5; emacs 27.1.50 Cc: help-gnu-emacs@gnu.org To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 09:08:47 2020 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 1kYPSp-0000AK-Cc for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 09:08:47 +0100 Original-Received: from localhost ([::1]:56122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYPSo-0006lO-El for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 04:08:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYPPp-0004nD-S3 for help-gnu-emacs@gnu.org; Fri, 30 Oct 2020 04:05:41 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:38293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYPPn-0008ON-99 for help-gnu-emacs@gnu.org; Fri, 30 Oct 2020 04:05:41 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EBB955C01A1; Fri, 30 Oct 2020 04:05:36 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 30 Oct 2020 04:05:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=Rvv9gNq8rsknygRs8Us280zkZG hxCqKpijkqAF1EVJ8=; b=YL52tNxuY9MKJDBd0SSPGXGFAAIkLV6n+L/bqx8plH fdpDnKu7djmN4mW/o168Np665HQgzjxALZWTqelV+QYlzzIGA0EwpAhsEmVGfjfy JIynkQk8h0NmdbhNT8tyffZrQuHCCUWYe953P882zlXH+4fEyTsDRBnRLCsH0WHo YjLshByzl5fDZNMYdbdUgPXZlK+l85LLJ34S3lj8/n8VjPl8+7NTmH5cNPOC0Qa6 O5xn/JIXUg6CS84UIChwQbHALmI3PwAQQsMW+DI12GTEWh7znAKDceYfxTO7W7V2 z4qvrvrX4AaMwwMAOsxw+DawO00YDqAHI7UD1by5/8NA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Rvv9gN q8rsknygRs8Us280zkZGhxCqKpijkqAF1EVJ8=; b=WhRexzxHZe0crqFtkKyivg TkY4Bg1RXDzJuEVyyj3+wk+mh/YdGOKlgFqlIdmWz+x//jqGGRmXrDLG4hC6rL8O exU1x4Me7Jb+3QmyARSaSzqJtA/88P9a4OXLQSwA8mjbEGo+RhjmLSbp6g8k+HaA UHZ9ExG9sYCxPo+863lU5Ssa55gWse7UJ+cGNAyGRddDR4CArJ2d8tlkcvZLotCz lNn35wALCB4cti9vPk20bDm7pCDp2pK/GmynQFYXwcfk+xmq1J0YQbgsHxOSySfc SbWY6BElwkuArePJvzxrQLRrTbL1256crJODB4YbOxwphZihTyMIzCNCMh0CooeQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrleeggdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehttdertddtredtnecuhfhrohhmpeflohhoshht ucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhmqe enucggtffrrghtthgvrhhnpefhudffuefhudelhffgleeukeegudevtedtudduhfefteeu gedvvedtuddugffffeenucfkphepleehrdeltddrvddvgedrvdeffeenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghr shesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ae0e9.dynamic.kabel-deutschland.de [95.90.224.233]) by mail.messagingengine.com (Postfix) with ESMTPA id 13A56306467E; Fri, 30 Oct 2020 04:05:35 -0400 (EDT) In-reply-to: Received-SPF: pass client-ip=66.111.4.28; envelope-from=joostkremers@fastmail.fm; helo=out4-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/30 04:05:36 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.23 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" Xref: news.gmane.io gmane.emacs.help:124811 Archived-At: On Fri, Oct 30 2020, Christopher Dimech wrote: > Can one do the following to have a string length 13 characters > made of blank spaces, or is it better to use some other construct? > > (make-string 13 ? ) A space character can also be represented as `?\s`, which is better because the space after the question mark can easily be overlooked. (See (info "(elisp) Basic Char Syntax") for details.) Other than that, though, `make-string` is the right function for the job, I'd say. -- Joost Kremers Life has its moments