[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Function to find outer parenthesis
From: |
David Hansen |
Subject: |
Re: Function to find outer parenthesis |
Date: |
Mon, 08 May 2006 18:54:57 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On Mon, 8 May 2006 08:23:14 -0700 Leo Liou wrote:
> In analyzing programs in the edit buffer, I sometimes wish I can do
> this - from where the cursor is, find the first outer "{" backward.
>
Not exactly what you want but close:
,----[ C-h f c-beginning-of-defun RET ]
| c-beginning-of-defun is an interactive compiled Lisp function in `cc-cmds.el'.
| (c-beginning-of-defun &optional ARG)
|
| Move backward to the beginning of a defun.
| Every top level declaration that contains a brace paren block is
| considered to be a defun.
|
| With a positive argument, move backward that many defuns. A negative
| argument -N means move forward to the Nth following beginning. Return
| t unless search stops due to beginning or end of buffer.
|
| Unlike the built-in `beginning-of-defun' this tries to be smarter
| about finding the char with open-parenthesis syntax that starts the
| defun.
`----
,----[ C-h f backward-up-list RET ]
| backward-up-list is an interactive compiled Lisp function in `lisp.el'.
| It is bound to <C-M-up>, C-M-u, ESC <C-up>.
| (backward-up-list &optional ARG)
|
| Move backward out of one level of parentheses.
| With ARG, do this that many times.
| A negative argument means move forward but still to a less deep spot.
`----
David