Re: [AUCTeX] AUCTeX support in lettre

2015-11-15 Thread Eric Abrahamsen
Vincent Belaïche  writes:

> Hello Mosè,
>
> BBDB is some sort of phone book (well, it means insidious Big-Bother 
> Data Base). My intention is to have functions to read the to-address with
> auto-completion by getting the data from BBDB by means of name or
> organisation.

Are you intending to provide support for some/all of the existing
auto-completion packages (ac, helm, company, etc), or home-roll
something of your own?

Just curious, as I'm still fooling around with BBDB and completion. I
use helm, and recently replaced auto-complete with company-mode, which I
generally like better. But helm-bbdb is unmaintained (I asked, and was
told I could have it!) and while company-mode completes fine on the To
header in message-mode, it seems to have somehow broken cycling on the
From header.

Anyhow... this is a bit off-topic, so I won't follow up to the auctex
list.

E

> It is not that simple because the way you present the address in a
> postal sending may need some formatting dependent on the country, so
> probably a defcustom is needed to make this more open. There may also be
> some dependance on the LaTeX extension (koma-script, letter or lettre),
> I have not investigated kom-script yet, but letter and lettre are quite
> similar.
>
> The same recipient name may also be associated with several snail mail
> address, so there also needs to be some selection mechanism for this
> case.
>
> Concerning the place where to put the Elisp code, well I don't know
> where the best place is, probably some new tex-bbdb.el would be a good
> alternative.
>
> VBR,
> Vincent Belaïche
>
> PS: CC to BBDB list.
> 
>> From: m...@gnu.org
>> Date: Fri, 13 Nov 2015 12:23:13 +0100
>> Subject: Re: [AUCTeX] AUCTeX support in lettre
>> To: vincent@hotmail.fr
>> CC: auc...@gnu.org
>>
>> Hi Vincent,
>>
>> 2015-11-12 23:23 GMT+01:00 Vincent Belaïche :
>>> Dear AUCTeX experts,
>>>
>>> For your information I intend to add AUCTeX support to package lettre of 
>>> which I am the maintainer.
>>>
>>> Here is a preliminary verison, comments/brickbats welcome...
>>>
>>> http://svn.gna.org/viewcvs/lettre_observatoire/trunk/source/latex/lettre/lettre.el?revision=177=markup
>>
>> Just a comment: please use `TeX-read-string' instead of `read-string' ;-)
>>
>>> My intention is to add BBDB support, I have seen that this is also
>>> in the TODO list of AUCTeX for class letter. I think that it would
>>> be a good idea if some code could be commonalized for all letter
>>> supporting classes (the three main ones, AFAIK, are letter, lettre,
>>> and koma-script).
>>
>> I don't know what BBDB actually does, could you please briefly explain
>> which features provides and how do you plan to integrate with your
>> package?
>>
>>> Any idea how to do that ? Any suggestion where to start ?
>>
>> Do you mean how to commonalize the functions used in those style
>> files? If so, indeed we don't have a real place where to put
>> functions that should be used only in style files, they simply go in
>> tex.el or latex.el, where appropriate. tex-style.el has been used so
>> far only for variables (as stated also in the header).
>>
>> Bye,
>> Mosè
> 
> --
> ___
> bbdb-info@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bbdb-info
> BBDB Home Page: http://bbdb.sourceforge.net/


--
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

eudc conversion to bbdb (in bbdb3.2?)

2015-11-15 Thread George McNinch
Hi,

I'm using "git-emacs"

emacs-version => "25.1.50.1"

and elpa bbdb

bbdb-version => "3.1.2" (via ELPA)

If I do M-x eudc-query, find a record corresponding to a contact not in
my bbdb , and try to add it to my bbdb via "b" (more precisely, by the
function "eudc-try-bbdb-insert")

I get an error - this is what appears in *Messages*:

bbdb-change-record: Wrong type argument: listp, "john@tufts.edu"

After doing the above command, looking at the "raw" bbdb file there is
indeed a record corresponding to John Doe, and the email address that
appears in that record seems garbled compared to the other records (it
comes out something like the following:

["John Q." "Doe" nil "john@tufts.edu" nil nil nil nil
((creation-date . "2015-11-15 15:24:49 +") (timestamp . "2015-11-15
15:24:49 +")) nil]

-- in other records in my bbdb file, the email address(es) seems
to be "inside a list".)


Maybe the problem is just that the eudc conversion tools (in
eudc-export.el) are only aimed at pre-version 3 bbdb? perhaps those
tools create records that are incompatible with bbdb3?

For what it is worth, this is the 2nd time I've thought about this
matter. I tried to make this sort of conversion work 6 months or so
ago. At that time I think I seem to have thought there was also trouble
with phone numbers, so I had made the following simplification [in an
attempt to get things working a little bit, at least...]:

,
| eudc-ldap-bbdb-conversion-alist
| 
| Value: ((name . cn)
|  (net . mail)
|  (address eudc-bbdbify-address postaladdress "Address"))
| 
| Original value was 
| ((name . cn)
|  (net . mail)
|  (address eudc-bbdbify-address postaladdress "Address")
|  (phone
|   (eudc-bbdbify-phone telephonenumber "Phone")))
`

but this doesn't help with the error I mention above (and I put the
problem down for a while).

So: am I doing something bone-headed? Is there some way to make things
work? Maybe a smarter setting of the eudc-ldap-bbdb-conversion-alist
variable just mentioned? 

Many thanks for help or suggestions,
George McNinch

-- 
   -===-   George McNinch 
   -===-   http://gmcninch.math.tufts.edu 


--
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/