Linux

  1. Home
  2. Computing & Technology
  3. Linux

Parentheses

Emacs Documentation

By Juergen Haas, About.com

Commands for Editing with Parentheses

This section describes the commands and features that take advantage of the parenthesis structure in a program, or help you keep it balanced.

When talking about these facilities, the term "parenthesis" also includes braces, brackets, or whatever delimiters are defined to match in pairs. The major mode controls which delimiters are significant, through the syntax table (see Syntax). In Lisp, only parentheses count; in C, these commands apply to braces and brackets too.

You can use M-x check-parens to find any unbalanced parentheses and unbalanced string quotes in the buffer.

  • Expressions: Expressions with balanced parentheses.
  • Moving by Parens: Commands for moving up, down and across in the structure of parentheses.
  • Matching: Insertion of a close-delimiter flashes matching open.

* Emacs Manual Index

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Software
  5. Editors
  6. Emacs
  7. Emacs Documentation - Parentheses

©2009 About.com, a part of The New York Times Company.

All rights reserved.