I think this might be a duplicate but I can't figure out how to run this:

(man emacs)[cursor] [C-x][C-e]

Error I get back:

Debugger entered--Lisp error: (void-variable gpg)
  (man gpg)
  eval((man gpg) nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)

I'm trying to put a lisp expression in a file to open the man page in Emacs. So I can save an expression like this in my notes, and then open the man page in Emacs by running eval on the line.

I thonght it might be (man 'emacs), but It didn't work.


Try using any of the following examples, with double quotes around the MAN-ARGS:

(man "emacs")


(man "gpg")


(man "chmod(2)")

I don't have the gpg manual installed, but the other two examples do generate a manual buffer ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.