[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Jump to autoconf macro documentation
From: |
Andrea Crotti |
Subject: |
Re: Jump to autoconf macro documentation |
Date: |
Sun, 30 Jan 2011 17:03:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) |
Le Wang <l26wang@gmail.com> writes:
> You want to change the syntax table to rexognize ?_ as a word constituent.
> see http://www.emacswiki.org/emacs/EmacsSyntaxTable
> (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'
Ah thanks a lot!
I changed to this because my-wacky-syntax-table was nil
(setq my-wacky-syntax-table (make-syntax-table))
(modify-syntax-entry ?_ "w" my-wacky-syntax-table)
(defun get-autoconf-word ()
(interactive)
(message "%s"
(with-syntax-table my-wacky-syntax-table
(thing-at-point 'word))))
But it works :)
About Info I also thought about "g", but what "g" does is just jump in
the right section, if I do
M-: RET (Info-goto-node "Autoconf")
from a info buffer where I see the entry "Autoconf"
I get:
byte-code: No such node or anchor: Autoconf
- Jump to autoconf macro documentation, Andrea Crotti, 2011/01/30
- Re: Jump to autoconf macro documentation, Le Wang, 2011/01/30
- Re: Jump to autoconf macro documentation, Kevin Rodgers, 2011/01/30
- Re: Jump to autoconf macro documentation, Andrea Crotti, 2011/01/30
- Re: Jump to autoconf macro documentation, Andrea Crotti, 2011/01/30
- Re: Jump to autoconf macro documentation, Le Wang, 2011/01/30
- Re: Jump to autoconf macro documentation, Andrea Crotti, 2011/01/31
- Re: Jump to autoconf macro documentation, Thien-Thi Nguyen, 2011/01/31
- Re: Jump to autoconf macro documentation, Kevin Rodgers, 2011/01/31