Path: 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 Date: Mon, 1 Jan 90 17:06:36 PST From: "Lawrence R. Dodd" 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