unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Indenting code: C-M-\ v C-x C-q
@ 2003-11-11 19:34 Siegfried Heintze
  2003-11-11 20:26 ` Stephen H. Westin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Siegfried Heintze @ 2003-11-11 19:34 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-11-14 21:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-11 19:34 Indenting code: C-M-\ v C-x C-q Siegfried Heintze
2003-11-11 20:26 ` Stephen H. Westin
2003-11-11 21:44 ` Thien-Thi Nguyen
2003-11-11 23:03 ` Stefan Monnier
2003-11-14 21:06   ` Ole Laursen
2003-11-14 21:14     ` Ole Laursen
2003-11-14 21:55       ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).