From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sergio Durigan Junior Newsgroups: gmane.emacs.bugs Subject: bug#11581: 23.3; EUDC can't handle BBDB entries with empty last names Date: Tue, 29 May 2012 03:36:22 -0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338341092 5579 80.91.229.3 (30 May 2012 01:24:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 30 May 2012 01:24:52 +0000 (UTC) To: 11581@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 30 03:24:50 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SZXeX-0002hc-Bc for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 May 2012 03:24:45 +0200 Original-Received: from localhost ([::1]:56122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZXeW-0005Wd-VK for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 21:24:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZXeT-0005SN-DJ for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 21:24:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZXeP-0001iX-OC for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 21:24:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZXeP-0001iG-Ku for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 21:24:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SZXfn-0006QR-74 for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 21:26:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sergio Durigan Junior Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 May 2012 01:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11581 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133834110824603 (code B ref -1); Wed, 30 May 2012 01:26:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 May 2012 01:25:08 +0000 Original-Received: from localhost ([127.0.0.1]:48973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZXet-0006Og-Km for submit@debbugs.gnu.org; Tue, 29 May 2012 21:25:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52350) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZG4D-0007Cl-JV for submit@debbugs.gnu.org; Tue, 29 May 2012 02:38:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZG2m-0008Sj-Hf for submit@debbugs.gnu.org; Tue, 29 May 2012 02:36:38 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:33072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZG2m-0008SU-EK for submit@debbugs.gnu.org; Tue, 29 May 2012 02:36:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZG2j-00086S-Sz for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 02:36:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZG2g-0008Pv-Mz for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 02:36:33 -0400 Original-Received: from mx1.riseup.net ([204.13.164.18]:49258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZG2g-0008PB-EB for bug-gnu-emacs@gnu.org; Tue, 29 May 2012 02:36:30 -0400 Original-Received: from fulvetta.riseup.net (fulvetta-pn.riseup.net [10.0.1.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 825E1530D1 for ; Mon, 28 May 2012 23:36:27 -0700 (PDT) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sergiodj@fulvetta.riseup.net) with ESMTPSA id EE8832D4 X-Virus-Scanned: clamav-milter 0.97.3 at mx1 X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 29 May 2012 21:25:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60488 Archived-At: EUDC apparently cannot handle BBDB records with empty last names (i.e., last names =3D ""). When I try to query such a record, I get this error message: Debugger entered--Lisp error: (error "Unexpected attribute value") signal(error ("Unexpected attribute value")) byte-code("=08 \232\203\f\n=0B\232\204=00\305 =0B\306#\210\304\f@\f= A\"\207" [eudc-server eudc-former-server eudc-protocol eudc-former-protoc= ol signal eudc-set-server t] 4) eudc-expand-inline() message-expand-name() message-tab() call-interactively(message-tab nil nil) Here is what I have in my ~/.gnus file: (require 'eudc) (setq eudc-default-return-attributes nil eudc-strict-return-matches nil) (setq ldap-ldapsearch-args (quote ("-tt" "-LLL" "-x"))) (eudc-protocol-set 'eudc-inline-expansion-format '("%s <%s>" CommonNa= me mail) 'ldap) (eudc-protocol-set 'eudc-inline-query-format '((cn) (cn cn) (cn cn cn= )) 'ldap) (eudc-protocol-set 'eudc-inline-expansion-format '("%s %s <%s>" first= name name net) 'bbdb) (eudc-protocol-set 'eudc-inline-query-format '((firstname) (lastname) (firstname lastname) (net)) 'bbdb) (eudc-set-server "localhost" 'bbdb t) (setq eudc-server-hotlist '(("localhost" . bbdb) ("ldap.company.com" . ldap))) (setq eudc-inline-expansion-servers 'hotlist) (defun enz-eudc-expand-inline() (interactive) (if (eq eudc-protocol 'ldap) (progn (move-end-of-line 1) (insert "*") (unless (condition-case nil (eudc-expand-inline) (error nil)) (backward-delete-char-untabify 1))) (eudc-expand-inline))) ;; Adds some hooks (eval-after-load "message" '(define-key message-mode-map (kbd "C-L") 'enz-eudc-expand-inline)) As you can see, I use both LDAP (from my company) and local BBDB in order to consult addresses. This problem occurs only when I use BBDB, and only when the corresponding BBDB entry does not have a last name. When it does, the completion works correctly. Please let me know if you need more information. Thanks. In GNU Emacs 23.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.8) of 2012-01-13 on x86-04.phx2.fedoraproject.org configured using `configure '--build=3Dx86_64-redhat-linux-gnu' '--host=3D= x86_64-redhat-linux-gnu' '--program-prefix=3D' '--disable-dependency-trac= king' '--prefix=3D/usr' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' '--s= bindir=3D/usr/sbin' '--sysconfdir=3D/etc' '--datadir=3D/usr/share' '--inc= ludedir=3D/usr/include' '--libdir=3D/usr/lib64' '--libexecdir=3D/usr/libe= xec' '--localstatedir=3D/var' '--sharedstatedir=3D/var/lib' '--mandir=3D/= usr/share/man' '--infodir=3D/usr/share/info' '--with-dbus' '--with-gif' '= --with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--wit= h-xpm' '--with-x-toolkit=3Dgtk' 'build_alias=3Dx86_64-redhat-linux-gnu' '= host_alias=3Dx86_64-redhat-linux-gnu' 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -= pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --par= am=3Dssp-buffer-size=3D4 -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro = '' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dnone locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Group Minor modes in effect: shell-dirtrack-mode: t gnus-topic-mode: t gnus-undo-mode: t show-paren-mode: t ido-everywhere: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20 C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20 C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p=20 C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p=20 C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20 C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n=20 C-n C-n C-n C-n C-p q j g m TAB S e TAB RET RET C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n q j r h TAB S e TAB RET RET C-n C-p C-n C-p q g=20 n n n n n n n n n n n n n n n n n n n n n n n n n n=20 n n S A r i s e u p RET m C-n C-n C-n C-n C-n C-n C-y=20 C-y C-y C-y C-_ C-_ C-_ C-_ C-y ESC y ESC y ESC y ESC=20 y ESC y ESC y ESC y ESC y ESC y ESC y ESC y ESC y ESC=20 y ESC y ESC y ESC y ESC y ESC y ESC y ESC y ESC y ESC=20 y ESC y ESC y ESC y ESC y ESC y ESC y C-_ C-_ C-_ C-_=20 C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p=20 C-p C-p C-p C-_ C-_ C-_ C-x k RET y e s RET g ESC x=20 f r e DEL DEL DEL r e s p o DEL DEL DEL p o r TAB b=20 TAB RET Recent messages: Undo! [4 times] Mark set Undo! [4 times] Redo! [3 times] Reading active file from local via nnimap... nnimap: Checking mailboxes...done Reading active file from archive via nnfolder...done Checking new news... Opening nndoc server on gnus-help...done Checking new news...done Load-path shadows: /home/sergio/emacs-lisp/xcscope hides /usr/share/emacs/site-lisp/xcscope /usr/share/emacs/site-lisp/goodies/emacs-goodies-loaddefs hides /usr/shar= e/emacs/site-lisp/site-start.d/emacs-goodies-loaddefs /usr/share/emacs/site-lisp/flim/hex-util hides /usr/share/emacs/23.3/lisp= /hex-util /usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/23.3/lisp/md4 /usr/share/emacs/site-lisp/flim/sha1 hides /usr/share/emacs/23.3/lisp/sha= 1 /usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/share/emacs/23.3/l= isp/net/sasl-digest /usr/share/emacs/site-lisp/flim/ntlm hides /usr/share/emacs/23.3/lisp/net= /ntlm /usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/23.3/lis= p/net/sasl-ntlm /usr/share/emacs/site-lisp/flim/hmac-def hides /usr/share/emacs/23.3/lisp= /net/hmac-def /usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/share/emacs/23.3/lisp= /net/hmac-md5 /usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/23.3/lisp/net= /sasl /usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/share/emacs/23.3/lis= p/net/sasl-cram /usr/share/emacs/site-lisp/gnus-bonus/nnnil hides /usr/share/emacs/23.3/l= isp/gnus/nnnil /usr/share/emacs/site-lisp/gnus-bonus/spam-stat hides /usr/share/emacs/23= .3/lisp/gnus/spam-stat /usr/share/emacs/site-lisp/gnus-bonus/nnir hides /usr/share/emacs/23.3/li= sp/gnus/nnir Features: (two-column iso-transl flow-fill w3m-form w3m browse-url doc-view jka-compr dired image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util bbdb-hooks moy-bbdb tabify shadow emacsbug newcomment ansi-color gnus-async gnus-bcklg gnus-dup sort byte-opt bytecomp byte-compile parse-time gnus-ml disp-table dabbrev eudcb-ldap bbdb-gui pp find-func multi-isearch tramp-imap assoc tramp-gw tramp-fish tramp-smb tramp-cache tramp-ftp tramp-cmds tramp shell comint tramp-compat trampver help-mode view debug gnus-cite gnus-topic nndoc nnfolder utf-7 utf7 nndraft nnmh bbdb-gnus bbdb-snarf mail-extr auth-source nnimap imap trace gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view smime dig gnus-cache edmacro kmacro eudcb-bbdb bbdb-com advice help-fns advice-preload eudc cus-edit cus-start cus-load eudc-vars epg-config ldap bbdb timezone gnus-demon nntp nnir gnus-sum gnus-group gnus-undo nnmail mail-source format-spec nnoo cl cl-19 gnus-start gnus-spec gnus-int gnus-range message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader canlock sha1 sha1-el hex-util hashcash gnus-win gnus gnus-ems nnheader gnus-util netrc time-date mail-utils mm-util mail-prsvr wid-edit server avoid paren ido xcscope ring easymenu emacs-goodies-loaddefs easy-mmode bbdb-autoloads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) --=20 Sergio