unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Leonardo Boiko <leoboiko@conectiva.com.br>
Subject: Re: code beautification
Date: Thu, 02 Dec 2004 19:09:34 -0400	[thread overview]
Message-ID: <41AFA0AE.9000608@conectiva.com.br> (raw)
In-Reply-To: <20041202163247.62977e4a@Woody>


[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]

Thomas Ruschival wrote:
> My problem is now I don't know how to build a regexp that works over 
 > several lines with backrefs.

It seems that you solved your problem using the indent(1) program, which 
is  nice.  But if I want to do this kind of complex substitution in 
Emacs, I use macros.  If you're not familiar with them, I'd recommend 
reading the relevant section of the manual.  Emacs macros are really 
easier than they sound, and very useful.

Also, consider learning some elisp.  I find that a quick function in the 
scratch buffer is sometimes the simplest way of accomplishing a task.
-- 
Leonardo Boiko

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  parent reply	other threads:[~2004-12-02 23:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-02 15:32 code beautification Thomas Ruschival
2004-12-02 16:27 ` Henrik S. Hansen
2004-12-02 22:27   ` Thomas Ruschival
2004-12-02 16:28 ` EScott
2004-12-02 23:09 ` Leonardo Boiko [this message]
     [not found] <mailman.3121.1102005569.27204.help-gnu-emacs@gnu.org>
2004-12-02 22:22 ` Thomas Ruschival

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41AFA0AE.9000608@conectiva.com.br \
    --to=leoboiko@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).