all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lowell Gilbert <lgusenet@be-well.ilk.org>
To: help-gnu-emacs@gnu.org
Subject: Re: need help with cryptic error message
Date: Wed, 12 Nov 2008 11:15:54 -0500	[thread overview]
Message-ID: <44fxlwc43p.fsf@be-well.ilk.org> (raw)
In-Reply-To: gfes9k$e1n$1@reader1.panix.com

kj <socyl@987jk.com.invalid> writes:

> I have Emacs 22.1, and I'm trying to turn on whitespace-mode.
> Nothing I have tried works so far.  It would take a very lengthy
> post for me to describe everything I've tried, so I'll just say
> that the latest I've done is to put the following in my .emacs
> file:
>
>   (autoload 'whitespace-mode "whitespace" "Toggle whitespace visualization." t)
>
> ...per the documentation in http://www.emacswiki.org/emacs/WhiteSpace.

That page appears to document a different whitespace.el than the one
that comes in emacs 22.

> When I re-start emacs, visit some file, and try the command
>
>   M-x whitespace-mode
>
> ...I get the error message
>
>   Autoloading failed to define function whitespace-mode
>
> ...which is almost completely useless.  How can I get more information
> on why this defintion failed?

It failed to find any function by that name.  Indeed, there isn't one in
the version of whitespace.el that you're using.

> (FWIW, emacs won't let me try the command "whitespace" by itself.
> If I attempt it, Emacs simply adds a hyphen to the "whitespace" I
> had typed in the minibuffer, and waits for some completion from
> me, e.g.  "mode".)

Right.  It has already autoloaded those commands.

> The file whitespace.elc is perfectly accessible in
> /usr/share/emacs/22.1/lisp/whitespace.elc.  How can I read the
> documentation (and, in particular, the version number) in this file?

In most installations it will have come with the source code, in the
form of a whitespace.el (or maybe compressed into whitespace.el.gz or
some such) in the same directory.

> Any other words of wisdom would be much appreciated.

Nothing unobvious; you need to either get the other whitespace.el and
install it in place of the one you have, or figure out how to use the
one you have (which is documented in the top of its elisp file).


      reply	other threads:[~2008-11-12 16:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-12 15:21 need help with cryptic error message kj
2008-11-12 16:15 ` Lowell Gilbert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44fxlwc43p.fsf@be-well.ilk.org \
    --to=lgusenet@be-well.ilk.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.