Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Desmond Rivet <desmond_news@videotron.ca>
To: info-gnus-english@gnu.org
Subject: problems with eudc-expand-inline in EUDC
Date: Wed, 17 Mar 2010 10:34:04 -0400	[thread overview]
Message-ID: <87pr33t3tv.fsf@zinc.branchcut.ath.cx> (raw)

Hi all,

I'm attempting to connect to an LDAP server containing some email
contacts.  The relavent portion of my .gnus.el looks like this:

;;;;;;;;;;;;;;; BEGIN
(require 'ldap)
(require 'eudc)

(setq eudc-default-return-attributes 'all)
(setq eudc-strict-return-matches nil)

(setq ldap-ldapsearch-args (quote ("-tt" "-LLL" "-x")))
                                 
(eudc-protocol-set 'eudc-inline-query-format
                   '((cn) (rdn) (uid) (mail))
                   'ldap)

(eudc-protocol-set 'eudc-inline-expansion-format
                                         '("%s" mail)
                                         'ldap)

(setq ldap-host-parameters-alist
      '(("my-server" base "dc=stuff,dc=com"
                     binddn "my_bind"
                     passwd "")))

(eudc-set-server "my-server" 'ldap t)
(setq eudc-server-hotlist '(("my-server" . ldap)))
(setq eudc-inline-expansion-servers 'hotlist)
(setq eudc-multiple-match-handling-method 'first)

(eval-after-load "message"
  '(define-key message-mode-map (kbd "TAB") 'eudc-expand-inline))
;;;;;;;;;;; END

I type "m" to bring up a mail buffer.  Then I type, for example, "david"
in the the To: field and I type "TAB" (associated with
eudc-expand-inline).  What I *expect* to see is some kind of indication
that "david" doesn't exist in LDAP, or that he does and here he is, or
that emacs had trouble connecting to the server, etc.  Something along
these lines.  What I see instead is this (once I turn on debug):

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
  byte-code("...")
  eudc-expand-inline()
  call-interactively(eudc-expand-inline nil nil)

I'm a bit mystified by this.  I presume that eudc-expand-inline is
epxpecting a string as one of its arguments, and is instead getting nil.
The help for the function doesn't mention a string arugment.  It only
mentions the replace-p argument.

If I had to take a stab at guessing, I would say that eudc-expand-inline
takes the query string (extracted from the buffer before the point) as
a parameter, and this string is not being extracted properly.

Any ideas?  Any help is appreciated.

Thanks in advance.

-- 
Desmond Rivet

Pain is weakness leaving the body.

             reply	other threads:[~2010-03-17 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-17 14:34 Desmond Rivet [this message]
2010-03-19 19:31 ` Ted Zlatanov

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=87pr33t3tv.fsf@zinc.branchcut.ath.cx \
    --to=desmond_news@videotron.ca \
    --cc=info-gnus-english@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.
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 NNTP newsgroup(s).