ในขณะที่แก้ไขไฟล์ C หรือ C ++ ใน emacs ฉันอยากจะไปที่จุดเริ่มต้นของ มี บล็อกของรหัส ฉันคาดหวังว่าจะพบฟังก์ชั่น c-initial-of-block แต่อนิจจาไม่มีฟังก์ชั่นดังกล่าว ตัวอย่างเช่นฉันอาจแก้ไขรหัส C น่าเกลียดต่อไปนี้:
void myFunction()
{
  if (something) { //<--- I want to jump to this brace!
    // do lots of stuff
    if (stuff) {
      // stuff
    }
    // more stuff
    // ...
    // I want to put my cursor somewhere on this line <---
    // (anywhere just outside the following if) and call c-beginning-of-block
    // and jump to the brace marked above (skipping "sibling" statements)
    if (pizza_is_good) {
      // do something
      // wait, where am I?
    }
    // way more stuff
    // ...
    if (i_love_pizza) {
      // eat pizza
    }
  }
}
ฉันจะแปลกใจมากถ้านี่ไม่ใช่ส่วนหนึ่งของ emacs ฉันไม่สามารถหาได้ทุกที่
 โหมด Fortran มี fortran-beginning-of-block
 โหมด promela มี promela-find-start-of-containing-block