From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Warren L Dodge Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: perl-mode problem in C-x ; comment-set-column Date: Wed, 26 Sep 2007 13:40:49 -0700 Message-ID: <200709262040.l8QKen6B032305@lwe127084.cse.tek.com> References: <200709250312.l8P3Cc51002230@lwe127084.cse.tek.com> Reply-To: warren.l.dodge@tektronix.com NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1190843146 10377 80.91.229.12 (26 Sep 2007 21:45:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Sep 2007 21:45:46 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 26 23:45:41 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IaehH-0006jf-SE for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2007 23:45:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IaehE-00019e-LU for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2007 17:45:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iadh0-0000sU-R6 for emacs-devel@gnu.org; Wed, 26 Sep 2007 16:41:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iadgz-0000rz-UE for emacs-devel@gnu.org; Wed, 26 Sep 2007 16:41:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iadgz-0000rr-Gc for emacs-devel@gnu.org; Wed, 26 Sep 2007 16:41:09 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iadgz-0001U6-7Z for emacs-devel@gnu.org; Wed, 26 Sep 2007 16:41:09 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IadgH-0007vT-SH for emacs-pretest-bug@gnu.org; Wed, 26 Sep 2007 16:40:26 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Iadgv-0001Sp-Gp for emacs-pretest-bug@gnu.org; Wed, 26 Sep 2007 16:41:08 -0400 Original-Received: from igate.tek.com ([192.65.41.20]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iadgv-0001RT-2P for emacs-pretest-bug@gnu.org; Wed, 26 Sep 2007 16:41:05 -0400 Original-Received: from mdhost.cse.tek.com (mdhost.cse.tek.com [128.181.15.25]) by igate.tek.com (8.13.8+Sun/8.12.10) with ESMTP id l8QKeuPC005314; Wed, 26 Sep 2007 13:40:56 -0700 (PDT) Original-Received: from lwe127084.cse.tek.com (IDENT:U2FsdGVkX188g8YiVv2SublHD8lWrdW2GWBkEKI93BE@lwe127084.cse.tek.com [128.181.110.98]) by mdhost.cse.tek.com (8.12.3(P3.3.2003)/8.13.4) with ESMTP id l8QKetmh023906; Wed, 26 Sep 2007 13:40:55 -0700 (PDT) Original-Received: from lwe127084.cse.tek.com (localhost.localdomain [127.0.0.1]) by lwe127084.cse.tek.com (8.13.1/8.12.3) with ESMTP id l8QKetBr032308; Wed, 26 Sep 2007 13:40:55 -0700 Original-Received: (from warrend@localhost) by lwe127084.cse.tek.com (8.13.1/8.13.1/Submit) id l8QKen6B032305; Wed, 26 Sep 2007 13:40:49 -0700 In-reply-to: (message from Stefan Monnier on Wed, 26 Sep 2007 16:09:36 -0400) X-CETC-MailScanner-Information: Please contact ecmail@mdhost.cse.tek.com for more information X-CETC-MailScanner: Found to be clean X-MailScanner-From: warrend@tektronix.com X-Detected-Kernel: Solaris 9 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 26 Sep 2007 17:45:22 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79943 gmane.emacs.pretest.bugs:20018 Archived-At: Hi Stefan I tried a few things and am sending an example. If you take the file I send as is and do emacs-22.0.990 -Q filename C-x(C-s#;C-aC-nC-x) I.E. define a macro to search for #, stop the search, do ; , and then move to the next line beginning. Then execute that macro for the whole buffer you will see (at least I do ) that the lines do not change IF you then go change all the lines so there is only one space before the # and re-execute the macro above all the lines will line up. I comment "randomly" and then go back to clean them up using the macro method above. When adding comment the ; to add a new comment will wander all over the place. If needed I can take time to find a sample for that after we settle on this first one. begin 664 perlcomment1.pl M(R$O=&]O;',O=V1T+V)I;B]P97)L("UW"B,@+2HM;6]D93H@4&5R;#L@9FEL M;"UC;VQU;6XZ(#$X,#L@8V]M;65N="UC;VQU;6XZ(#@U.R`M*BT*(R!54T5$ M($)9($9%5$]/3%,@(PH*(R!A9&0@R`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@(",@6]U3L*"B`@)%Y7(#TQ M(&EF("@@9&5F:6YE9"`D14Y6>U!%4DQ?5T%23DE.1U-]("D[("`@("`@("`@ M("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`C('1U7,@=&\*("!PU!%4DQ?4TA/5U]"24Y]("D["GT*>PH@ M("0A(#T@,3L*("!E=F%L"B`@>PH@("`@*"`D<')O9W)A;5]N86UETM%65]35TE40TA%4WTM/GMS:VEP7V-R M96%T97T@/2`P(#L@("`@("`@("`@("`@("`@("`@("`@("`@("`@(R!ATM%65]73U)+24Y' M1$E2?2`](&-W9"@I.R`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@ M("`@("`@(R!G970@=&AE('=O6]U(&%F=&5R M('1H92!PPH@("`@("!I9B`H*"`A(&1E9FEN960@)$%21U9; M,%T@*2!\?"`H("$@+68@)$%21U9;,%T@*2!\?"`H(&1E9FEN960@)$%21U9; M,5T@*2D@("`@("`@(R!I9B!N;R!APH@("`@("`@("1M86EL M7VUS9R`N/2`F;W)C860Q7S)?;F5T;&ES="`H("(D05)'5ELP72(@+"`D<')O M9W)A;5]N86UEPH@("`@("`@ M("1M86EL7VUS9R`N/2`F7!E9`H@("`@("!["B`@("`@("`@)F%B;W)T7W=I=&A? M=7-ETM%65]35TE40TA%4WTM M/GMR96=R:61?:6YP=71](#T](#`@*0H@("`@("!["B`@("`@("`@)&UA:6Q? M;7-G("X]("9O2!O;F4@<&%D