help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get second character from comment-start


From: Heime
Subject: Get second character from comment-start
Date: Mon, 12 Aug 2024 19:47:16 +0000

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]