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

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

Replacing bash comment character to an elisp comment character


From: Heime
Subject: Replacing bash comment character to an elisp comment character
Date: Wed, 19 Oct 2022 23:06:13 +0000

I have the following variable storing a bash header. I want to construct an 
equivalent header
for elisp. I would not want to repeat the text, but replace the comment 
character "#" with ";"
when calling "elisp-header".

(defvar bash-header

"### Copying_conditions:

## This file belongs to PKNAME, a Gnu Package.

## PKNAME is free software.

### Commentary:")

(defun elisp-header ()

"TODO"

(insert bash-header))

reply via email to

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