unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Get second character from comment-start
@ 2024-08-12 19:47 Heime
  2024-08-13  5:15 ` Joel Reicher
  0 siblings, 1 reply; 5+ messages in thread
From: Heime @ 2024-08-12 19:47 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

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)) )







^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-13 13:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 19:47 Get second character from comment-start Heime
2024-08-13  5:15 ` Joel Reicher
2024-08-13  8:10   ` Heime
2024-08-13 10:39     ` Joel Reicher
2024-08-13 13:36       ` uzibalqa

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).