[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Jump to autoconf macro documentation
From: |
Kevin Rodgers |
Subject: |
Re: Jump to autoconf macro documentation |
Date: |
Sun, 30 Jan 2011 09:16:31 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
On 1/30/11 3:47 AM, Andrea Crotti 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.
(thing-at-point 'sexp)
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.
(info "autoconf" "*autoconf*<AC_ARG_ENABLE>")
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?
Yes:
Info-index is an interactive compiled Lisp function in `info.el'.
(Info-index TOPIC)
Look up a string TOPIC in the index for this manual and go to that entry.
If there are no exact matches to the specified topic, this chooses
the first match which is a case-insensitive substring of a topic.
Use the , command to see the other matches.
Give an empty topic name to go to the Index node itself.
--
Kevin Rodgers
Denver, Colorado, USA
- 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 <=
- 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