From: Joost Kremers <joostkremers@fastmail.fm>
To: Christopher Dimech <dimech@gmx.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: String length 13 characters made of blank spaces
Date: Fri, 30 Oct 2020 09:05:32 +0100 [thread overview]
Message-ID: <87imasp29f.fsf@fastmail.fm> (raw)
In-Reply-To: <trinity-ca77a852-c67a-457a-bdf1-54bc7a711f6e-1604030017889@3c-app-mailcom-bs12>
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
next prev parent reply other threads:[~2020-10-30 8:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-30 3:53 String length 13 characters made of blank spaces Christopher Dimech
2020-10-30 5:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-30 8:05 ` Joost Kremers [this message]
2020-10-30 8:13 ` tomas
2020-11-02 22:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-10-30 8:12 ` tomas
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=87imasp29f.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=dimech@gmx.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.