(defvar my-wacky-syntax-table
(modify-syntax-entry ?_ "w" (make-syntax-table)))
(defun get-word ()
(interactive)
(message "%s"
(with-syntax-table my-wacky-syntax-table
(thing-at-point 'word))))
I don't know much about info, but "g" is bound to `Info-goto-node'
On Sun, Jan 30, 2011 at 6:47 PM, Andrea Crotti
<andrea.crotti.0@gmail.com> wrote:
I would like to help myself to understand and write correct Configure.ac
files.
Now one idea would be to be able to jump from the macro to its
definition.
So I found that the definition of every macro is given in the autoconf
Info page, for example under with the string:
Macro: AC_ARG_ENABLE
so it would be easy to jump to.
Only one problem, how (thing-at-point 'word) doesn't work well with
AC_ARG_ENABLE for example, so or I redefine locally how a word should be
(if possible), or I have to do some other regexp trick to get it.
Another problem is that I don't get how to look for, if I have an Info
buffer already open it uses that position. So maybe it's better if I
create a new Info buffer and use it.
And also how do I jump to an info page from the TOC: RET is bound to
this:
(Info-follow-nearest-node &optional FORK)
But I think there is a smarter way than doing a search-regexp and then
use that function, right?