From: Alexis Roda <alexis.roda.villalonga@gmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Enclosing text in a box
Date: Wed, 16 Nov 2022 14:34:09 +0100 [thread overview]
Message-ID: <CAMDYoXZLrtxaXuc8-grmFf9vypWUOXToa9MGEW96wNkt69Ncyw@mail.gmail.com> (raw)
In-Reply-To: <_AODCZ2cNjiSAkIvdrGzDgeSNSWqJoJ9xfXn-zFenyY-yTUYx-Ijx0k4-Lq46rN4CjdkyIrzIBD1h4YY23BAP089R0Tg0kzM9MOUnaEOFrs=@protonmail.com>
You were almost there, (make-string (length text") ?=)
https://www.gnu.org/software/emacs/manual/html_node/elisp/Creating-Strings.html
Missatge de Heime <heimeborgia@protonmail.com> del dia dc., 16 de nov. 2022
a les 14:09:
>
> ------- Original Message -------
> On Wednesday, November 16th, 2022 at 12:47 PM, Heime <
> heimeborgia@protonmail.com> wrote:
>
>
> > Would like to enclose some text in a box? The box has to automatically
> adjust its size
> > according to the size of the text.
> >
> > (insert "╔══════╗\n")
> > (insert (concat "║" text "║\n" ))
> > (insert "╚══════╝" )
>
> Is there a repeat character in elisp?
>
> Then I could do
>
> (repeat-string (length text) "═")
>
>
>
>
>
next prev parent reply other threads:[~2022-11-16 13:34 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 12:47 Enclosing text in a box Heime
2022-11-16 13:07 ` Heime
2022-11-16 13:34 ` Alexis Roda [this message]
2022-11-16 13:58 ` Eli Zaretskii
2022-11-16 14:11 ` Yuri Khan
2022-11-16 14:20 ` Heime
2022-11-16 14:47 ` Eli Zaretskii
2022-11-16 14:51 ` Heime
2022-11-16 14:55 ` Emanuel Berg
2022-11-16 20:56 ` Emanuel Berg
2022-11-16 16:44 ` Eli Zaretskii
2022-11-16 16:48 ` Heime
2022-11-16 16:53 ` Heime
2022-11-16 19:20 ` Eli Zaretskii
2022-11-16 19:35 ` Heime
2022-11-16 19:42 ` Emanuel Berg
2022-11-16 21:01 ` Heime
2022-11-16 20:00 ` Eli Zaretskii
2022-11-16 20:55 ` Emanuel Berg
2022-11-18 14:48 ` Eli Zaretskii
2022-11-18 15:10 ` tomas
2022-11-18 19:18 ` Emanuel Berg
2022-11-16 21:04 ` Emanuel Berg
2022-11-16 14:55 ` Yuri Khan
2022-11-16 15:06 ` Yuri Khan
2022-11-16 16:12 ` tomas
2022-11-16 16:43 ` Heime
2022-11-17 6:43 ` Jean Louis
2022-11-17 6:57 ` Emanuel Berg
2022-11-18 19:11 ` Jean Louis
2022-11-21 12:53 ` Emanuel Berg
2022-11-18 16:20 ` [External] : " Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMDYoXZLrtxaXuc8-grmFf9vypWUOXToa9MGEW96wNkt69Ncyw@mail.gmail.com \
--to=alexis.roda.villalonga@gmail.com \
--cc=heimeborgia@protonmail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).