🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #1809

Re: comment-line-start

#1809
From: Stephen Gildea
Date: Tue, 02 Jan 1990 16:11
25 lines
1303 bytes
    Date: Mon, 1 Jan 90 17:06:36 PST
    From: "Lawrence R. Dodd" <dodd%mycenae.cchem.Berkeley.EDU@jade.berkeley.edu>
    
       This is probably not a bug but I have spent about an hour trying to
    get it to work with no success.  I would like to set the string
    inserted to start a new full-line comment to "C".  That is, the
    default value is "c" and I want it to be capital "C".  The GNU Emacs
    Manual states that this is normally set properly by Fortran mode and
    one need not change it.    

    ...

    (setq comment-line-start "C")
    
    does not do the same for the comment line string.  What am I doing
    wrong?


The variable comment-line-start is mode-specific, so you must set it
with a mode hook.  Try the following in your .emacs file:    

(setq fortran-mode-hook '(lambda () (setq comment-line-start "C")))

 < Stephen
Technical Details
Message-ID: <9001021613.AA21384@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ALEXANDER.BBN.COM!gildea

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ALEXANDER.BBN.COM!gildea
From: gildea@ALEXANDER.BBN.COM (Stephen Gildea)
Newsgroups: gnu.emacs.bug
Subject: Re: comment-line-start
Message-ID: <9001021613.AA21384@life.ai.mit.edu>
Date: 2 Jan 90 16:11:32 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 25