From: Heime <heimeborgia@protonmail.com>
To: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Get second character from comment-start
Date: Mon, 12 Aug 2024 19:47:16 +0000 [thread overview]
Message-ID: <sBvaHAd6pFvwB6LIoYT-5njxk0_20yMSlDqSeju5RM1r02eqoQrDz4y-Cz6fR49Cr5w-FI_AOZQMKpz8Tp1SbZ6RRN6084_VH7En787t404=@protonmail.com> (raw)
I want to get the second character from comment-start.
Would one use (aref kmnt 1) ?
(let* ( (kmnt (string-trim comment-start))
(lngt (length kmnt)
(ankr (if (= lngt 2)
(aref kmnt 1)
kmnt)) )
next reply other threads:[~2024-08-12 19:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-12 19:47 Heime [this message]
2024-08-13 5:15 ` Get second character from comment-start Joel Reicher
2024-08-13 8:10 ` Heime
2024-08-13 10:39 ` Joel Reicher
2024-08-13 13:36 ` uzibalqa
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='sBvaHAd6pFvwB6LIoYT-5njxk0_20yMSlDqSeju5RM1r02eqoQrDz4y-Cz6fR49Cr5w-FI_AOZQMKpz8Tp1SbZ6RRN6084_VH7En787t404=@protonmail.com' \
--to=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).