0

Command comment-line is not recognized by my version of emacs. How can I install this function?

UPDATE: It may be relevant that my system shows at least two emacs, at /usr/local/bin/emacs; and at /usr/bin/emacs24. The second one is what I use; the first one cannot be launched. I have periodically removed and reinstalled emacs for reasons I cannot now recall.

MathManM
  • 171
  • 3

1 Answers1

1

What makes you think that your version of Emacs does not have command comment-line? What does C-h f comment-line tell you?

What version of Emacs do you have? M-x emacs-version

comment-line is defined in library newcomment.el, which is available with Emacs 23 and later.

If you try to invoke comment-line (e.g. M-x comment-line), library newcomment.el should be loaded automatically, defining the command completely. But this assumes you have Emacs 23 or later.

Drew
  • 77,472
  • 10
  • 114
  • 243