Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Open a info file manually

3 views
Skip to first unread message

ibear

unread,
Nov 9, 2009, 3:05:33 AM11/9/09
to help-gn...@gnu.org
I use Emacs 23.1

I want to open a info file somewhere, and Google result is I can use the
bind key "c-u c-h i"

But I also will know whether there is a function do the same work?

大熊

unread,
Nov 9, 2009, 9:03:32 PM11/9/09
to help-gn...@gnu.org
I use Emacs 23.1

I want to open a info file somewhere, and Google result is I can use
the bind key "c-u c-h i"

and I will know whether there is a function or command do the same work?


David Kastrup

unread,
Nov 11, 2009, 5:00:05 AM11/11/09
to
大熊 <bears...@gmail.com> writes:

C-h k C-h i tells me

C-h i runs the command info, which is an interactive compiled Lisp
function in `info.el'.

It is bound to C-h i, <f1> i, <help> i.

(info &optional FILE-OR-NODE BUFFER)

Enter Info, the documentation browser.
Optional argument FILE-OR-NODE specifies the file to examine;
the default is the top-level directory of Info.

[...]

--
David Kastrup

Dmitry Dzhus

unread,
Nov 11, 2009, 9:10:40 AM11/11/09
to
ibear wrote:
> I use Emacs 23.1
>
> I want to open a info file somewhere, and Google result is I can use the
> bind key "c-u c-h i"

Indeed. `C-h i` is a default keybinding for `info` function which
invokes an Info browser. When this function is called with prefix
argument using `C-u C-h i`, a file name is read from the minibuffer.

> But I also will know whether there is a function do the same work?

If you mean doing this from your Emacs Lisp code,
(info "/path/to/file.info") should do the work.
--
Happy Hacking.

http://sphinx.net.ru

to...@tuxteam.de

unread,
Nov 11, 2009, 10:26:43 AM11/11/09
to ibear, help-gn...@gnu.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Nov 09, 2009 at 04:05:33PM +0800, ibear wrote:
> I use Emacs 23.1
>
> I want to open a info file somewhere, and Google result is I can use the
> bind key "c-u c-h i"
>

> But I also will know whether there is a function do the same work?

Hm. I don't quite understand what you want to do. Are you looking for a
Lisp function to load an info file? Are you trying to load an info file
given its path (as opposed to given an index entry)?

In the first case, try (info "your/info/file/goes/here"). For example,
on my (fairly standard Gnu/Linux) box, this works:

(info "/usr/share/info/coreutils.info.gz")

But I don't know whether this is what you are looking for...

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFK+tezBcgs9XrR2kYRAnUwAJ9XTsp4NoyupSzsWNRFQdDKcciFQgCeMQ9W
MkUTv13t0wcTWChm3WWNcUk=
=9kve
-----END PGP SIGNATURE-----


Peter Dyballa

unread,
Nov 11, 2009, 1:58:37 PM11/11/09
to to...@tuxteam.de, help-gn...@gnu.org, ibear

Am 11.11.2009 um 16:26 schrieb tomas:

> Hm. I don't quite understand what you want to do. Are you looking
> for a
> Lisp function to load an info file? Are you trying to load an info
> file
> given its path (as opposed to given an index entry)?


I started to think of a function that is like C-h i and does not look
up local information but googles for it. Therefore this function
would be bound to C-u C-h i...

W3m could be something, but it is more like a general solution to
access the internet. Maybe a package like those which look up in a
thesaurus words with the same meaning or which translate a word can
be a start. http://www.emacswiki.org/cgi-bin/wiki/mthesaur.el ? At
least Emacs wiki could be a start to search for more.

Let's wait for some possible feedback!

--
Greetings

Pete
~ o
~_\\_/\
~ O O

大熊

unread,
Nov 12, 2009, 4:44:08 AM11/12/09
to help-gn...@gnu.org
2009/11/10 大熊 <bears...@gmail.com>:

> I use Emacs 23.1
>
> I want to open a info file somewhere, and Google result is I can use
> the bind key "c-u c-h i"
>
> and I will know whether there is a function or command do the same work?
>

when I press "c-u c-h i", the minibuffer will prompt me:

Info file name: D:\emacs\bin/

and I can input a info file's full path to open the info file in Info-Mode

So can I use the [alt-x + XXXX] mode? or bind this operation to some key?


--
不是所有的特仑苏都是牛奶


Ilya Zakharevich

unread,
Nov 15, 2009, 5:44:34 AM11/15/09
to
On 2009-11-12, ?? <bears...@gmail.com> wrote:
>> I want to open a info file somewhere, and Google result is I can use
>> the bind key "c-u c-h i"
>>
>> and I will know whether there is a function or command do the same work?

> when I press "c-u c-h i", the minibuffer will prompt me:
>
> Info file name: D:\emacs\bin/
>
> and I can input a info file's full path to open the info file in Info-Mode
>
> So can I use the [alt-x + XXXX] mode? or bind this operation to some key?

c-h f c-h i

Then inspect the help menu.

Hope this helps,
Ilya

Binjo

unread,
Nov 15, 2009, 8:00:37 AM11/15/09
to
On Thu, 12 Nov 2009 17:44:08 +0800, 锟斤拷锟斤拷 <bears...@gmail.com> said:

> 2009/11/10 锟斤拷锟斤拷 <bears...@gmail.com>:

I find this handy:

(setq Info-directory-list
`("~/.emacs.d/info" ,@Info-directory-list))

put this to your .emacs, also you may change the directory "~/.emacs.d/info"
to whatever you like, i.e the directory where the info file exists.
Then just M-: (info "your_info_name").


HTH,

Binjo

--
Life is like a prison, can you break it?

Sean Sieger

unread,
Nov 15, 2009, 3:31:32 PM11/15/09
to help-gn...@gnu.org
Peter Dyballa <Peter_...@Web.DE> writes:

I often wished that along with the all-important M-$, that I could look
up a word in the Random House Unabridged Dictionary (used by
Dictionary.com), it's really a fine way to look up the etymologies and
American English pronunciations of words.

Along with `backing out of' GNU/Emacs with C-u C-h i, I was thinking of
the possibility of backing out of our incredible editor with C-u M-$ (or
maybe a more appropriate binding than a spelling-related one) to get to
a resource like Dictionary.com.

And now I can! Thanks for the prompting, Pete!

I googled `emacswiki dictionary' and there it was:

http://www.emacswiki.org/emacs/DictionaryDotCom

I know this comes unsolicited but, my three favorite tools on this
planet are my Bianchi Pista, the Klein Haven Wire Rope Grip (I was an
inverted CM chain hoist rigger for a lot of years) and the GNU/Emacs
text editor. AND IT JUST GOT EVEN BETTER.

I installed w3m (on Ubuntu 9.10), got emacs-w3m from CVS and put the
code from emacswiki in my dotemacs:

;;; w3m
(require 'w3m-load)
;; dictionary
(global-set-key (kbd "C-c d")
(lambda ()
(interactive)
(w3m-goto-url
(format "http://dictionary.reference.com/browse/%s"
(read-string "Search word: " (current-word))))))

Right?! No C-<space>, M-f, M-w, no nothing, just C-c d! Anywhere!

My one question is rooted in installing CVS emacs-w3m: was I really
really wrong doing sudo with each build command (autoconf, ./configure,
make and make install)? It was the only way I could come up with to run
the commands successfully.

And did I mention how much more attrative Dictionary.com is in emacs-w3m
/ GNU/Emacs 23.1.50 / Xterm than in Firefox?? Holy Moly! [... just did
C-c d on `moly'---it's an Hermetic herb, and this has been a truly
Hermetic theft, thanks for letting me steal from you!!]

Anyway ... yahoo!

Richard Riley

unread,
Nov 15, 2009, 7:41:56 PM11/15/09
to help-gn...@gnu.org
Sean Sieger <sean....@gmail.com> writes:


Hi Sean. You might also consider the excellent dictem package. A lot faster
than using w3m. My set can be found here:-

http://tinyurl.com/ygbej87


0 new messages