let BBDBv3 support adjust field sorting manually.

2014-08-01 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Let BBDBv3 support adjust field sorting manually with =[M-Up/Down]=.
So I can see important field first, instead have to be limited by the time of
field added.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJT214jAAoJELjEuOVHwyQzfKMIAKWrs6DxT8a5C/JU6F42T9/a
5h6LARjGCG0RtMf1tyooFI/IhjivoqURpNWS0OjZWIgsrv04zWobrZCkSfxixwNa
fh6NzxQ7yqzwy8bXLMHuhpMQI7W+yvOHlMKiialZkUAxafORNhdzxVXokb6sOWAq
lHwgKFhrOyzXFD9bdwWjSvxf4ni8mGpj8asT+/VvZiBbfL9sUHKNGrIHTeoiVyTR
v9QiY4RSS4zWqQcIbWNmMW0pE75r/0iHlZwBSfGGwzuSp+A7giTrwf8tZI4WNA+R
f1+/hP8SYFY7sfZfOdbWSSMF53zochNHeAAGAhOJ++DmzcMlV198V6ENbPIIT7I=
=MCi2
-END PGP SIGNATURE-

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


BBDBv3 will lost record when snarf an exist email to database.

2014-08-01 Thread stardiviner

When I use =bbdb-snarf= to add email to a new record.
report error: 
When I try to re-add this email, after lost the record, it report error:
=(error BBDB: marker absent)=

I think BBDB show check the database before really do write action.
If database has exist the email, then raise exist record, or raise error.

BTW, BBDB will raise error when move to next record which is already at last
record.
I think BBDB should not raise this error, just a message in minibuffer is fine.

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


define faces for variant BBDB field names

2014-08-01 Thread stardiviner

I try to define custom faces to be applied in variable =bbdb-name-face-alist= 
for
variant field names.

Here is my try:

#+BEGIN_SRC emacs-lisp
;;; define variant faces for variant xfields

;; TODO: improve it
(setq bbdb-name-face-alist '((mail . bbdb-field-mail)
 (mail-alias . bbdb-field-mail-alias)))

(defface bbdb-field-mail
  '((t (:inherit bbdb-field-name :foreground green yellow)))
  Face used for BBDB fields.
  :group 'bbdb-faces)

(defface bbdb-field-mail-alias
  '((t (:inherit bbdb-field-name :foreground yellow)))
  Face used for BBDB fields.
  :group 'bbdb-faces)
#+END_SRC

But this seems does not work.
I checked the docstring of =bbdb-name-face-alist=.

Description about the ~KEY~.

#+BEGIN_QUOTE
the xfield name-face of this record should have the value KEY.
The value of name-face may also be a face which is then used directly.
If none of these schemes succeeds, the face `bbdb-name' is used.
#+END_QUOTE

I think maybe I do not have the ~KEY~ (like ~mail~, ~mail-alias~) defined.

So How to defined those key automatically based on the BBDB database?

If it's not what I'm thinking. Then what it is?

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/