2

I am trying to read the Emacs Lisp Intro inside Emacs. I am following the advice on Emacs wiki:

Read the Emacs Lisp Introduction: EmacsLispIntro. Use ‘C-h i’ (‘info’), then choose ‘Emacs Lisp Intro’. You can also read this manual on the Web or as a portable epub book.

Unfortunately, after pressing C-h i, I can find options such as Magit and Slime. However, I cannot find anything about ‘Emacs Lisp Intro’. I know I can read the Introduction to Programming in Emacs Lisp, written by Robert J. Chassell, on the web. But I would like to read it inside Emacs.

Why I cannot find it? How can I fix this?

UPDATE: I am using Ubuntu 20.04. Surprisingly, this is relevant.

Thanks.

Pedro Delfino
  • 1,369
  • 3
  • 13
  • 3
    If you're running Debian or a derivative (which might include Ubuntu), the docs are distributed in a separate package for licensing reasons – Tyler Jul 15 '21 at 01:35
  • 4
    Does this answer your question? [emacs' internal documentation missing info?](https://emacs.stackexchange.com/questions/55453/emacs-internal-documentation-missing-info) – Tyler Jul 15 '21 at 02:31
  • 1
    FYI if it's installed then `C-h i g (eintr)` should also show it. – phils Jul 15 '21 at 02:50
  • @phils, thanks for the advice. Unfortunately, I receive an "info file eintr does not exist" – Pedro Delfino Jul 15 '21 at 14:14
  • @Tyler, interesting. Indeed, I am running Ubuntu 20.04 LTS. What should I do then? Install the package with MELPA? – Pedro Delfino Jul 15 '21 at 14:15
  • @Tyler, it partly answers it. But the other question is from a Debian user. I am an Ubuntu user. After your suggestion, I realized this problem is related to OS. But I think it would still be valuable to show an answer specifically written for Ubuntu users. – Pedro Delfino Jul 15 '21 at 14:24
  • 3
    Ubuntu is just one of many distributions based on Debian's packages, and I think the solution will be the same for all of them. – phils Jul 15 '21 at 14:47
  • https://emacs.stackexchange.com/questions/48211/emacs-manuals-are-missing-on-debian-ubuntu – Tyler Jul 15 '21 at 22:41

1 Answers1

0

In order to solve this, I used the least upvoted answer here. These are the original instructions:

1 - Download https://www.gnu.org/software/emacs/manual/info/elisp.info.gz to your /usr/share/info directory.

2 - From a terminal run update-info-dir command.

3 - From emacs C-h i m Elisp (capital E).

Obs.: I was not able to download it directly to /usr/share/info using just GUI. So, I downloaded it on Downloads folder and then on root I did:

/$ sudo mv home/pedro/Downloads/elisp.info.gz usr/share/info/emacs/

/$ sudo update-info-dir 

Notice that I inserted the file on usr/share/info/emacs/ instead of the original instruction which used just usr/share/info/

Pedro Delfino
  • 1,369
  • 3
  • 13
  • 4
    If you've installed Emacs via the OS package, you should install the manuals via the OS package as well. It probably won't make very much difference for the elisp intro manual, but in general if you grab the latest manual from gnu.org but install Emacs itself using OS packages, then you're running the risk of installing the manual for a *different version of Emacs* than the one you have installed. – phils Jul 15 '21 at 14:49
  • 2
    Distributions usually ship older (stable) versions than the official, bleeding edge ones, often with local tweaks/localizations/patches. That includes documentation (perhaps just to reference other manuals in the text, or describing local additions). Use the documentation from the distribution. – vonbrand Jul 16 '21 at 01:40
  • 1
    One further observation that may or may not be relevant/interesting to you: if you build Emacs yourself from source then (by default) you will get all the correct info files installed in all the correct places. – Phil Hudson Jul 20 '21 at 22:05