Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,有没有一个函数可以获取单词的第一个字符位置,就像使用后向词一样,但只是为了知道后退的字符位置。
提前致谢。
另一个答案(不比@edwinallenz 的答案更好):
(car (bounds-of-thing-at-point 'word))
我找到了
(save-excursion (backward-word) (point))