Roland Winkler | 1 Mar 03:35 2011
Picon

bbdb anniversaries [was: BBDB ELPA-style packaging]

On Sun Feb 27 2011 Roland Winkler wrote:
> On Wed Feb 23 2011 Ted Zlatanov wrote:
> > RW> I'll try to make some kind of table that shows how the functionality
> > RW> in the current code (functions and variables) relates to the old
> > RW> BBDB code. Then hopefully it will become more clear to what extent
> > RW> which parts of BBDB still contain old code. Then we can go from there.
> > 
> > Any updates?
> 
> Unfortunately, I need to say that my time for such things is
> limited. I am doing my best, but it's hard to make more specific
> predictions. All I can say is that right now my schedule is filled
> yet more with other stuff.

I thought I could / should also mention here:

Various changes and extensions that I added to BBDB took me further
away from the original code. So I want to mention that I have one
more somewhat larger idea in the back of my mind.

Currently, it is required that the values of BBDB note fields are
strings. It would be nice if these fields could be made more
flexible by allowing them to have values that can be any lisp object
suitable for a particular field.

More specifically, I have in mind that one could define "handlers"
which include a list of functions that allow one to create, edit,
and format a particular note field, such as `foo'. If such a handler
is defined, it will be used for handling a note field. Otherwise, it
will be assumed that the field has the conventionel string format.
(Continue reading)

Roland Winkler | 1 Mar 15:19 2011
Picon

Re: [BBDB] ChangeLog 2011-02-27

On Mon Feb 28 2011 Antoine Levitt wrote:
> Perfect, I just tried it and it works very nicely. There's a typo though:
> 
> Index: bbdb-mua.el

Thanks!

Roland

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Ted Zlatanov | 1 Mar 16:42 2011
X-Face

Re: bbdb-complete-name return value

On Mon, 28 Feb 2011 18:50:20 -0500 Stefan Monnier <monnier <at> iro.umontreal.ca> wrote: 

>> The only thing I need to clarify is sorting.  Right now shorter string
>> wins.  In the new method, higher score should win.

SM> I think it's easier if lower scores win, so it's consistent with the
SM> current use of `length'.  It's really not a big issue: just negate the
SM> values you put on the property and you're done.

I thought that would be easier too, but it's counter-intuitive.  Well,
here's the patch.  It doesn't check that the completion score is a
number but otherwise seems OK to me.  A string with a completion score
always wins over one without.

Ted

=== modified file 'lisp/minibuffer.el'
*** lisp/minibuffer.el	2011-02-12 18:30:13 +0000
--- lisp/minibuffer.el	2011-03-01 15:39:33 +0000
***************
*** 704,710 ****
          (when last
            (setcdr last nil)
            ;; Prefer shorter completions.
!           (setq all (sort all (lambda (c1 c2) (< (length c1) (length c2)))))
            ;; Prefer recently used completions.
            (let ((hist (symbol-value minibuffer-history-variable)))
              (setq all (sort all (lambda (c1 c2)
--- 704,719 ----
          (when last
(Continue reading)

Roland Winkler | 5 Mar 14:50 2011
Picon

[BBDB] ChangeLog 2011-03-05

Below is a smaller ChangeLog.  

- I added a new command bbdb-search-address and unified / simplified
  the keybindings for the search command. (I find that the menu bar
  is usually a convenient way to learn about the keybindings in a
  package. Take a look at the BBDB submenu.)

  The code for the modeline indicators for the search prefix
  commands has been simplified (and fixed), too.

- A bug in bbdb-sort-records has been fixed.

- A few doc fixes.

2011-03-05  Roland Winkler  <winkler <at> gnu.org>
	* lisp/bbdb.el (bbdb-modeline-info): New variable.
	(bbdb-mode): Use it.
	(bbdb-mode-map): Unify keybindings for search commands.
	(bbdb-sort-records): Update marker positions correctly.

	* lisp/bbdb-com.el (bbdb-append-display-p, bbdb-append-display)
	(bbdb-search-invert-p, bbdb-search-invert): Use
	bbdb-modeline-info.
	(bbdb-search): Also search for addresses.  Simplify codde.
	(bbdb-search-address): New command.
	(bbdb-search-phone): Fix prompt.

	* lisp/bbdb-mua.el (bbdb-mua-wrapper): Simplify code.
	(bbdb-mua-auto-update-init): Doc fix.

(Continue reading)

Stefan Monnier | 5 Mar 15:07 2011
Picon

Re: bbdb-complete-name return value

> I thought that would be easier too, but it's counter-intuitive.

It's only counter intuitive if you think of it (and name it) something
like "score".  So yes, we need another name to make it less
counter-intuitive.  E.g. `completion-penalty'.  And I think it would be
good to make it clear that this is for cycling, so the name could be
`completion-cycle-penalty'.

        Stefan

!           (let ((s1 (get-text-property 0 :completion-score c1))
!                 (s2 (get-text-property 0 :completion-score c2)))
!             (cond ((and s1 s2) (< s1 s2))
!                   (s1 t)
!                   (s2 nil)

BTW, I'd rather use something like

!           (let ((s1 (get-text-property 0 :completion-score c1))
!                 (s2 (get-text-property 0 :completion-score c2)))
!             (cond ((and s1 s2) (cond ((< s1 s2) t)
!                                      ((> s1 s2) nil)
!                                      (t (< (length c1) (length c2)))))
!                   (s1 t)
!                   (s2 nil)

PS: Please Cc the patch to emacs-devel because I don't read this
bbdb-list as regularly.

------------------------------------------------------------------------------
(Continue reading)

Ted Zlatanov | 8 Mar 16:10 2011
X-Face

(patch) sort cycling completion candidates (was: bbdb-complete-name return value)

Attached please find a patch to sort cycling completion candidates by
the text property :completion-cycle-penalty (lower is better).

Thanks
Ted

Attachment (completion-penalty.patch): text/x-diff, 1091 bytes
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/
Antoine Levitt | 8 Mar 16:32 2011
Picon

Re: (patch) sort cycling completion candidates

08/03/11 16:10, Ted Zlatanov
> Attached please find a patch to sort cycling completion candidates by
> the text property :completion-cycle-penalty (lower is better).
>
> Thanks
> Ted
>
>
> === modified file 'lisp/minibuffer.el'
> --- lisp/minibuffer.el	2011-02-12 18:30:13 +0000
> +++ lisp/minibuffer.el	2011-03-08 14:51:07 +0000
>  <at>  <at>  -704,7 +704,19  <at>  <at> 
>          (when last
>            (setcdr last nil)
>            ;; Prefer shorter completions.
> -          (setq all (sort all (lambda (c1 c2) (< (length c1) (length c2)))))
> +          (setq
> +           all
> +           (sort all
> +                 (lambda (c1 c2)
> +                   (let ((s1 (get-text-property
> +                              0 :completion-cycle-penalty c1))
> +                         (s2 (get-text-property
> +                              0 :completion-cycle-penalty c2)))
> +                     (cond ((and s1 s2) (cond ((< s1 s2) t)
> +                                              ((> s1 s2) nil)
> +                                              (t (< (length c1) (length c2)))))
> +                           (s1 t)
> +                           (s2 nil))))))
>            ;; Prefer recently used completions.
(Continue reading)

Ted Zlatanov | 8 Mar 17:34 2011
X-Face

Re: (patch) sort cycling completion candidates

On Tue, 08 Mar 2011 16:32:00 +0100 Antoine Levitt <antoine.levitt <at> gmail.com> wrote: 

AL> What about the case when s1 and s2 are nil? Shouldn't there be another
AL> (t (< (length c1) (length c2))) at the end of the second cond ? Am I
AL> missing something?

Oops.  I had it in my original patch but Stefan suggested a change
before that line and I accidentally deleted it.  Sorry!

AL> It seems cleaner to sort two times, instead of once with both
AL> predicates, the way it's already done in the code for recently used
AL> completions.

That seems OK to me.

Your patch is cleaner so I'm in favor of using it.

Ted

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

(Continue reading)

jidanni | 10 Mar 06:47 2011

Bug#617634: Debian version terribly out of date

X-debbugs-Cc: bbdb-info <at> lists.sourceforge.net
Package: bbdb
Version: 2.36-2

Dear Debian, your copy of BBDB is terribly out of date.

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

jidanni | 11 Mar 01:35 2011

Re: Bug#617634: Debian version terribly out of date

Dear bbdb-info list members: Barak the Debian package maintainer asks many questions in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617634 .
Dear Barak, I am hoping those
http://news.gmane.org/gmane.emacs.bbdb.user list members will tell you
what to do (as all this is extremely over my head.)
Also maybe make a bbdb-snapshot package, like emacs-snapshot...

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
bbdb-info <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Gmane