From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: [cperl-mode] cperl-indent-for-comment Date: Wed, 5 May 2010 12:42:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1273102670 19907 80.91.229.12 (5 May 2010 23:37:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 23:37:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 06 01:37:49 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9oA1-00035a-4Q for geh-help-gnu-emacs@m.gmane.org; Thu, 06 May 2010 01:37:49 +0200 Original-Received: from localhost ([127.0.0.1]:45308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9oA0-000815-Ek for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 19:37:48 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!p2g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 188.107.211.215 Original-X-Trace: posting.google.com 1273088524 7446 127.0.0.1 (5 May 2010 19:42:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 5 May 2010 19:42:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p2g2000yqh.googlegroups.com; posting-host=188.107.211.215; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.18) Gecko/2010021502 Ubuntu/8.10 (intrepid) Firefox/3.0.18,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177959 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73483 Archived-At: Hi Two questions; 1) I wanna make # more DWIM and automatically doing an indent-for- comment when at the end of the line. I thought about a) checking if the preceding character was a ";" or a paren. and b) checking with describe-text-property that I'm not within a string or regex. is b) the recommended way to do this? 2) cperl-indent-for-comment produces weird results when started within a Perl-string (M-;), it indents but repeated calls produce a multiple concatenated "# " at the end. Is this the intended functionality??? Cheers Rolf