Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1265780
  • 博文数量: 264
  • 博客积分: 10772
  • 博客等级: 上将
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-25 11:54
文章分类

全部博文(264)

文章存档

2012年(4)

2011年(51)

2010年(31)

2009年(57)

2008年(51)

2007年(70)

分类: LINUX

2007-12-17 21:27:03

Parenthesis

Emacs 中的 parenthesis (括号) 通常指那些能够组成一对的符号, 比如:

parenthesis
(, )
braces
{, }
brackets
[, ]

...

在一个 Major Mode 中, 那些有意义的 parenthesis 由这个 mode 的 syntax(语法) 决定.

Note1: You can use `M-x check-parens' to find any unbalanced parentheses and unbalanced string quotes in the buffer. (Emacs Manual)


Balanced Parentheses

(From Emacs Manual)

一些命令和按键 ::

`C-M-f'
     Move forward over a balanced expression (`forward-sexp').

`C-M-b'
     Move backward over a balanced expression(`backward-sexp').

`C-M-k'
     Kill balanced expression forward (`kill-sexp').

`C-M-'
     Kill balanced expression backward (`backward-kill-sexp').

`C-M-t'
     Transpose expressions (`transpose-sexps').

`C-M-@'
     Put mark after following expression (`mark-sexp').

在"括号"结构有关的移动

(From Emacs Manual)

一些命令和按键 ::

`C-M-n'
     Move forward over a parenthetical group (`forward-list').

`C-M-p'
     Move backward over a parenthetical group(`backward-list').

`C-M-u'
     Move up in parenthesis structure (`backward-up-list').

`C-M-d'
     Move down in parenthesis structure (`down-list').

"括号"匹配的自动显示

(From Emacs Manual)

Three variables control parenthesis match display.

`blink-matching-paren'
turns the feature on or off: `nil' disables it, but the default is `t' to enable match display.
`blink-matching-delay'
says how many seconds to leave the cursor on the matching opening delimiter, before bringing it back to the real location of point; the default is 1, but on some systems it is useful to specify a fraction of a second.
`blink-matching-paren-distance'
specifies how many characters back to search to find the matching opening delimiter. If the match is not found in that distance, scanning stops, and nothing is displayed. This is to prevent the scan for the matching delimiter from wasting lots of time when there is no match. The default is 25600.
阅读(1359) | 评论(1) | 转发(0) |
0

上一篇:dup/dup2用法

下一篇:宏和内联函数的区别

给主人留下些什么吧!~~