문제

PL/SQL is restricted to a 30-character identifier length. I'd like to find the size of the identifier under my cursor without counting manually. (Underscores are breaking the identifier by word, so a solution by word may not work. I'm using emacs 24.3.1.)

도움이 되었습니까?

해결책

I figured it out. Move the cursor to the beginning of the identifier. Then use C-M-@ to select the whole identifier (a "balanced expression") and M-= to show the statistics of the region. (On my Windows machine, C-M-2 works in lieu of C-M-shift-2.)

다른 팁

You found the answer (M-=) in 10 minutes -- good. Another thing that can help (no need to hit M-=):

Library modeline-posn.el shows the size of the active region in the mode line. See Mode-Line Position.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top