emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Sven Bretfeld <sven.bretfeld@gmx.ch>
Cc: nicholas.dokos@hp.com, emacs-org <emacs-orgmode@gnu.org>
Subject: Re: org-contacts: error on message startup
Date: Tue, 24 May 2011 20:04:29 -0400	[thread overview]
Message-ID: <8869.1306281869@alphaville.americas.hpqcorp.net> (raw)
In-Reply-To: Message from "Sven Bretfeld" <sven.bretfeld@gmx.ch> of "25 May 2011 01:28:57 +0200." <87pqn78ypy.fsf@gmx.ch>

Sven Bretfeld <sven.bretfeld@gmx.ch> wrote:

> Hi all
> 
> Just trying to use org-contacts. There is an error for me whenever I
> start a new message:
> 
> Debugger entered--Lisp error: (void-variable completion-at-point-functions)
>   add-to-list(completion-at-point-functions org-contacts-message-complete-function)
>   (lambda nil (add-to-list (quote completion-at-point-functions) (quote org-contacts-message-complete-function)))()
>   run-hooks(text-mode-hook message-mode-hook)
>   apply(run-hooks (text-mode-hook message-mode-hook))
>   run-mode-hooks(message-mode-hook)
>   message-mode()
>   message-pop-to-buffer("*mail*" nil)
>   message-mail()
>   gnus-group-mail(nil)
>   call-interactively(gnus-group-mail nil nil)
> 
> Have I missed a point in the setup? I just added (require 'org-contacts)
> and threw out all bbdb related code from .emacs and .gnus.el. Is there
> anything else to do?
> 
> I'm using the latest git version of orgmode (release 7.5.299.gb638),
> Emacs 23.1.50.1 (Ubuntu) and Gnus v5.13.
> 

C-h v completion-at-point-functions RET says:

,----
| completion-at-point-functions is a variable defined in `minibuffer.el'.
| Its value is (tags-completion-at-point-function)
| 
| 
|   This variable is potentially risky when used as a file local variable.
| 
| Documentation:
| Special hook to find the completion table for the thing at point.
| Each function on this hook is called in turns without any argument and should
| return either nil to mean that it is not applicable at point,
| or a function of no argument to perform completion (discouraged),
| or a list of the form (START END COLLECTION &rest PROPS) where
|  START and END delimit the entity to complete and should include point,
|  COLLECTION is the completion table to use to complete it, and
|  PROPS is a property list for additional information.
| Currently supported properties are:
|  `:predicate'           a predicate that completion candidates need to satisfy.
|  `:annotation-function' the value to use for `completion-annotate-function'.
`----

so it's an emacs thing, not an org thing. You can try loading minibuffer.elc but
it is rather surprising that it's not there already. Unless it's an emacs23 vs emacs24
thing - I run emacs24 and it's present there, but I just tried emacs23 and it does not
seem to be there even after I load-library minibuffer.el.

Nick

  reply	other threads:[~2011-05-25  0:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-24 23:28 org-contacts: error on message startup Sven Bretfeld
2011-05-25  0:04 ` Nick Dokos [this message]
2011-05-25  7:27   ` Sven Bretfeld
2011-05-25 16:02     ` Michael Markert
2011-05-26  7:52       ` Sven Bretfeld
2011-05-26 10:06         ` Michael Markert
2011-05-26 12:03         ` Julien Danjou
2011-05-26 20:24           ` Sven Bretfeld
2011-05-26 12:01 ` Julien Danjou

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=8869.1306281869@alphaville.americas.hpqcorp.net \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sven.bretfeld@gmx.ch \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).