From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: George McNinch Newsgroups: gmane.emacs.bugs Subject: bug#21971: 25.1.50; EUDC conversion to BBDB 3 incompatibility Date: Sat, 21 Nov 2015 09:30:42 -0500 Message-ID: <82egfjs9v1.fsf@jobim-via-gmail.com> Reply-To: George McNinch NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448123614 9593 80.91.229.3 (21 Nov 2015 16:33:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Nov 2015 16:33:34 +0000 (UTC) Cc: George McNinch To: 21971@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 21 17:33:20 2015 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 1a0B6F-0000KD-72 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Nov 2015 17:33:19 +0100 Original-Received: from localhost ([::1]:52840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0B6E-0006QI-La for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Nov 2015 11:33:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0B63-0006Aw-S3 for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 11:33:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0B5z-0000fL-Ma for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 11:33:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0B5z-0000fG-JC for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 11:33:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a0B5z-000259-Bl for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 11:33:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: George McNinch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Nov 2015 16:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21971 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.14481235397925 (code B ref -1); Sat, 21 Nov 2015 16:33:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Nov 2015 16:32:19 +0000 Original-Received: from localhost ([127.0.0.1]:47233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0B5G-00023g-6S for submit@debbugs.gnu.org; Sat, 21 Nov 2015 11:32:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35564) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a09Bw-0007Ui-Jc for submit@debbugs.gnu.org; Sat, 21 Nov 2015 09:31:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a09Bi-0007Xc-3n for submit@debbugs.gnu.org; Sat, 21 Nov 2015 09:30:51 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a09Bi-0007XY-0x for submit@debbugs.gnu.org; Sat, 21 Nov 2015 09:30:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a09Bg-00039k-GL for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 09:30:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a09Bc-0007VB-D8 for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 09:30:48 -0500 Original-Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:32838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a09Bc-0007Uv-87 for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 09:30:44 -0500 Original-Received: by qkas77 with SMTP id s77so45735286qka.0 for ; Sat, 21 Nov 2015 06:30:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:user-mail-address:reply-to:date:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=MXCC0+5DeGBfxjVqMmF/5tLCyw2C5Z2qOnxBTjY0VMw=; b=n2a1sY7UUO+8LmsW0gEQNeHD5qZs507ZtahM4PdLN8fKoxyk214G1EnEso1wBsYY5y 9N7l+yOPNXw9OCsOPh2N+665VTZpoM+38DVTJvP4z87knKC+RSfpB7xIyyGhHkiGX43o EOX4G4NxB3426H4n94B/yBuOstzeSysP00hYXpfYaVOCC15vTXkydnfQUqYDxJSHj187 7zPSBqYlfuvkXGfgV9BvWSrWVU6+4aN6OZiVvB/PYj4eZ3lm4f7xo74pRwMqzyH0IGC+ Qa1prszVq20o07WuzGQzdDNX/+Stj+IYJwlwQz8vg70pxPYbcKZoeNqkri7Li+qBdD5D 7pTw== X-Received: by 10.55.77.23 with SMTP id a23mr18211419qkb.47.1448116243723; Sat, 21 Nov 2015 06:30:43 -0800 (PST) Original-Received: from jobim (209-6-122-78.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com. [209.6.122.78]) by smtp.gmail.com with ESMTPSA id 63sm1003162qgl.31.2015.11.21.06.30.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 06:30:42 -0800 (PST) User-Mail-Address: gmcninch@gmail.com User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sat, 21 Nov 2015 11:32:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:109020 Archived-At: I'm reporting an incompatibility between functions found in eudc-export.el and BBDB3. The version of eudc should be implied by the emacs-25 version info below. The version of bbdb is bbdb-20151114.1541 installed from MELPA. Here is how to reproduce the issue. I initialize/configure bbdb, eudc and ldap as follows: ;;-------------------------------------------------------------------------= -- ;; bbdb (use-package bbdb :config (bbdb-initialize 'gnus 'message 'sc 'aliases)) ;;-------------------------------------------------------------------------= -- ;; eudc and ldap (use-package eudc :config (eudc-set-server "ldap.tufts.edu" 'ldap t) (setq eudc-server-hotlist '(("ldap.tufts.edu" . ldap))) (setq eudc-inline-expansion-servers 'hotlist) (setq eudc-inline-query-format '((name) (firstname) (firstname name) (email) )) (setq eudc-ldap-bbdb-conversion-alist `((name . cn) (net . mail) (address eudc-bbdbify-address postaladdress "Address")))) (use-package ldap :config (setq ldap-host-parameters-alist '(("ldap.tufts.edu" base "dc=3Dtufts,dc=3Dedu"))) (setq ldap-ldapsearch-args (quote ("-tt" "-LLL" "-x")))) ;;-------------------------------------------------------------------------= -- Now do M-x eudc-query server Any hit will do; with the above server setting, you can e.g. find *me* by entering McNinch as NAME in the query form. After pushing the "query server" button, enter the *Directory Query Results* buffer, put point on a record (for an individual not already in the bbdb), and press 'b' (or do M-x eudc-try-bbdb-insert ). I get an error, which is reported in messages as=20 bbdb-change-record: Wrong type argument: listp, t In fact, a record *has* been inserted into the bbdb; in this case it looks like ["George" "McNinch" nil "George.McNinch@tufts.edu" nil nil nil nil ((creati= on-date . "2015-11-21 14:13:29 +0000") (timestamp . "2015-11-21 14:13:29 +0= 000")) nil] (assuming McNinch was not already in the bbdb, of course). This record seems "mangled" from the point-of-view of BBDB3 - the email address should be "in a list" inside this record-vector. Perhaps other things are amiss, as well. Note also that the setting of eudc-ldap-bbdb-conversion-alist I made above isn't quite the original value. If I instead use the original value, e.g. by instead using the original value [which amounts to: (setq eudc-ldap-bbdb-conversion-alist `((name . cn) (net . mail) (address eudc-bbdbify-address postaladdress "Address") (phone (eudc-bbdbify-phone telephonenumber "Phone"))) in the initialization of EUDC], then when I press "b" on a record in the *Directory Query Results* buffer, I get the error eudc-bbdbify-phone: Symbol=E2=80=99s function definition is void: bbdb-parse-phone-number ;;-------------------------------------------------------------------------= -- In GNU Emacs 25.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2015-11-15 Repository revision: 70f1fda4ae6abb5e11dcf281738c25f6f5b06061 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.2 (jessie) Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: override-global-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-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-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: Parsing results... done eudc-bbdbify-phone: Symbol=E2=80=99s function definition is void: bbdb-pars= e-phone-number Quit Load-path shadows: None found. Features: (shadow sort bbdb-message mail-extr emacsbug sendmail bbdb-com crm goto-addr thingatpt eudcb-ldap ldap eudc cus-edit cus-start cus-load eudc-vars wid-edit bbdb bbdb-site timezone message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader use-package diminish bind-key easy-mmode url-handlers url-parse auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv gnus-util mm-util help-fns help-mode cl-loaddefs pcase cl-lib mail-prsvr password-cache url-vars finder-inf info package easymenu epg-config time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 135459 17741) (symbols 48 24227 0) (miscs 40 125 165) (strings 32 27735 3761) (string-bytes 1 835086) (vectors 16 16572) (vector-slots 8 486561 5903) (floats 8 210 32) (intervals 56 364 0) (buffers 976 16) (heap 1024 48378 1131))