From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Siegfried Heintze" Newsgroups: gmane.emacs.help Subject: Indenting code: C-M-\ v C-x C-q Date: Tue, 11 Nov 2003 12:34:11 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3fb13b2d@news.seqnet.net> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1068580209 26460 80.91.224.253 (11 Nov 2003 19:50:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2003 19:50:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 11 20:50:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AJeWc-0003V2-00 for ; Tue, 11 Nov 2003 20:50:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AJfPq-0007hG-53 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Nov 2003 15:47:10 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!cyclone1.gnilink.net!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.revealsystems.com!news.revealsystems.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 11 Nov 2003 13:35:07 -0600 Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Original-NNTP-Posting-Host: 207.174.27.232 X-Original-Trace: 11 Nov 2003 12:40:29 -0700, 207.174.27.232 Original-Lines: 20 Original-NNTP-Posting-Host: 207.174.23.4 Original-X-Trace: sv3-CraiWlZwtD8u8jxv9y7UgE7XIJT3DTrT8oIy0U9RV61U9bivt+owqrP0SN6o0zBzqP/OBSHAwCtHgfX!hAtXT4tYsoaW2MCnZsNYXipSpTBUl2F5tuV4lrT2b+ijRuPV2McXsP5sAmW7ulRxtcUk Original-X-Complaints-To: abuse@revealsystems.com X-DMCA-Complaints-To: abuse@revealsystems.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:118136 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14076 I accidently pasted an extra end brace in the middle of 3K lines of perl code and spent 4 hours trying to find it! The first thing I did was try C-x C-q to get it to indent my code so I could find the mismatching end brace. This did not work! Using C-x C-q works great for Java and other "Normal" languages that use apostrophies and quotes for string literals but since perl allows me to use qq[] and qq|| for string literals I was not terribly surprised when C-x C-q did not work for my perl code! I figured that no one had gotten around to accommodating the wierd syntax Perl allows for string literals. I just I happend to be poking around the www.Xemacs.com and noticed something about indenting perl code with C-M-\ and discovered it works great for indenting perl code in regular emacs too! Oh -- the time I could have saved if I had known this! Why are there two keys to do the same thing? Why do perl and elisp require C-M-\ and everything else require C-x C-q? emacs drives me crazy sometimes.