[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Get second character from comment-start
From: |
uzibalqa |
Subject: |
Re: Get second character from comment-start |
Date: |
Tue, 13 Aug 2024 13:36:46 +0000 |
Sent with Proton Mail secure email.
On Tuesday, August 13th, 2024 at 10:39 PM, Joel Reicher
<joel.reicher@gmail.com> wrote:
> Heime heimeborgia@protonmail.com writes:
>
> > On Tuesday, August 13th, 2024 at 5:15 PM, Joel Reicher
> > joel.reicher@gmail.com wrote:
> >
> > > Any reason not to do (aref ... 1)? Not sure what you're worried
> > > about.
> >
> > What is the standard way of capturing characters from strings,
> > is it with aref ?
>
>
> I don't know what makes something "standard" for you. As covered
> in (info "(elisp) String Basics") a string is an array, and as
> covered in (info "(elisp) Array Functions"), aref can be used to
> fetch an element of an array.
>
> And as a random sample of some core code, aref is used 17 times in
> files.el from what I can see. - Joel
I shall use aref as already done