From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/13773 Path: news.gmane.org!not-for-mail From: Desmond Rivet Newsgroups: gmane.emacs.gnus.user Subject: problems with eudc-expand-inline in EUDC Date: Wed, 17 Mar 2010 10:34:04 -0400 Organization: A noiseless patient Spider Message-ID: <87pr33t3tv.fsf@zinc.branchcut.ath.cx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273018096 14173 80.91.229.12 (5 May 2010 00:08:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 00:08:16 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed May 05 02:08:15 2010 connect(): No such file or directory Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9S9o-0000KV-J1 for gegu-info-gnus-english@m.gmane.org; Wed, 05 May 2010 02:08:08 +0200 Original-Received: from localhost ([127.0.0.1]:34101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9S9n-0001rC-SY for gegu-info-gnus-english@m.gmane.org; Tue, 04 May 2010 20:08:07 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.mixmin.net!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 65 Injection-Date: Wed, 17 Mar 2010 15:05:05 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="SVAUtel2G8iLnbQ2hzaT+Q"; logging-data="3188"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EzQN9amg0H8UK1PnjmEwyILyzDayyIZg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:1ir8tVS4AbsQRfz0123VkwiJ75I= sha1:OfnaI0dNUvWUPj7gGenfavGSeDU= Original-Xref: usenet.stanford.edu gnu.emacs.gnus:84137 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:13773 Archived-At: 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.