🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98773

Help on indent-for-comment

#98773
From: Mike Thome
Date: Wed, 10 Apr 1991 19:47
24 lines
1341 bytes
(emacs & epoch 18.55)

Indent-for-comment does very much the wrong thing on lines were there
are strings containing imbedded comment characters: i.e. in lisp mode,
with the line:
	("foo;bar.lisp"  "baz")
pressing "M-;" turns the line into:
	("foo                     ;bar.lisp"  "baz")
instead of:
	("foo;bar.lisp"  "baz")   ; 

The same is true for C mode:
	printf("/* foo */");
becomes
	printf("                  /* foo */");

It seems to me that while it is probably possible to set
comment-start-skip to an ugly re to achieve the results I'd like, it
would be better to change indent-for-comment appropriately... but I'm
not an emacs hacker, so before I dive in to try fixing it myself, does
anyone have a patch?

thanks,
	-mik (mthome@bbn.com)
Technical Details
Message-ID: <9104102003.AA11010@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,a8da5d0a61b440c4,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-04-10 12:47:35 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage
From: mthome@BBN.COM (Mike Thome)
Newsgroups: gnu.emacs.bug
Subject: Help on indent-for-comment
Message-ID: <9104102003.AA11010@life.ai.mit.edu>
Date: 10 Apr 91 19:47:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 24
Approved: bug-gnu-emacs@prep.ai.mit.edu