简体   繁体   English

如何在.emacs中找到缓冲区位置

[英]How to locate buffer position in .emacs

For example, with emacs --debug-init , I got this: 例如,使用emacs --debug-init ,我得到了这个:

Debugger entered--Lisp error:(invalid-read-syntax ")")
  eval-buffer(#<buffer *load*> nil "/home/wilbeibi/.emacs" nil t);   Reading at buffer position 9220

The question is: How to solve the problem each time I got the error explanation like "Reading at buffer position XXXX". 问题是:每次我得到错误解释如“在缓冲区位置XXXX读取”时如何解决问题。 How to jump to that position? 如何跳到那个位置?

BTW,To this specific problem, the things I did: 顺便说一句,对于这个具体问题,我做的事情:
1. use 'CMe' to check each function. 1.使用'CMe'检查每个功能。
2. Replace any Chinese with ) 2.替换任何中文 )

M-x goto-char 

Help: 救命:

goto-char is an interactive built-in function in `C source code'. goto-char是“C源代码”中的交互式内置函数。

It is bound to <menu-bar> <edit> <goto> <go-to-pos>. 它被绑定到<menu-bar> <edit> <goto> <go-to-pos>.

(goto-char POSITION) (goto-char POSITION)

Set point to POSITION, a number or marker. 将点设置为POSITION,数字或标记。 Beginning of buffer is position (point-min), end is (point-max). 缓冲区的开始是位置(point-min),end是(point-max)。

The return value is POSITION. 返回值为POSITION。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM