Re: export to .txt, .html

2004-11-08 Thread Aldo Valente
Dan Jacobson [EMAIL PROTECTED] writes:

 bbdb-print is just to print .tex, how about .html or .txt?
 By a batch job too.

How about bbdb2html (http://valente.de/aldo/bbdb)?


Aldo


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: export to .txt, .html

2004-11-06 Thread Alex Schroeder
Dan Jacobson [EMAIL PROTECTED] writes:

 P.S. ELIDEP is not explained here:
  bbdb is an interactive compiled Lisp function in `bbdb-com'.
  (bbdb STRING ELIDEP)

  Display all entries in the BBDB matching the regexp STRING
  in either the name(s), company, network address, or notes.

When you use C-u M-x bbdb RET dan RET you will get the matching
entries in elided form -- one line per entry.  It works by
temporarily switching bbdb-display-layout, but I must confess I didn't
quite understand how it picked the layout to use instead.

Alex.
-- 
.O.  http://www.emacswiki.org/alex/
..O  Schroeder's fifth law:
OOO  Never accept more work than you can handle in one night of hacking.


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


output format (was: export to .txt, .html)

2004-11-06 Thread Jochen Küpper
Alex Schroeder [EMAIL PROTECTED] writes:

 When you use C-u M-x bbdb RET dan RET you will get the matching
 entries in elided form -- one line per entry. It works by
 temporarily switching bbdb-display-layout, but I must confess I
 didn't quite understand how it picked the layout to use instead.

AFAICT it simply uses the one-line format.

To configure, see
,[ C-h v bbdb-display-layout-alist RET ]
| bbdb-display-layout-alist's value is shown below.
| 
| Documentation:
| *An alist describing each display layout.
| The format of an element is (LAYOUT-NAME OPTION-ALIST).
| 
| By default there are four different layout types used by BBDB, which are
| `one-line', `multi-line', `pop-up-multi-line' (used for pop-ups) and
| `full-multi-line' (showing all fields of a record).
| 
| OPTION-ALIST specifies the options for the layout.  Valid options are:
| 
|--- Availability 
| Format  one-linemulti-linedefault if unset
| --
|  (toggle . BOOL) +   +  nil
|  (order . FIELD-LIST)+   +  '(phones ...)
|  (omit . FIELD-LIST) +   +  nil
|  (name-end . INTEGER)+   -  40
|  (indentation . INTEGER) -   +  14
|  (primary . BOOL)-   +  nil
|  (test . SEXP)   +   +  nil
| 
| - toggle: controls if this layout is included when toggeling the display layout
| - order: defines a user specific order for the fields, where `t' is a place
|   holder for all remaining fields
| - omit: is a list of fields which should not be displayed or `t' to exclude all
|   fields except those listed in the order option
| - name-end: sets the column where the name should end in one-line layout.
| - indentation: sets the level of indentation for multi-line display.
| - primary: controls wether only the primary net is shown or all are shown.
| - test: a lisp expression controlling wether the record is to be displayed.
| 
| When you add a new layout FOO, you can write a corresponding layout
| function bbdb-format-record-layout-FOO.  If you do not write your own
| layout function, the multi-line layout will be used.
| 
| You can customize this variable.
| 
| Defined in `bbdb'.
| 
| Value:
| ((one-line
|   (order phones mail-alias net notes)
|   (name-end . 24)
|   (toggle . t))
|  (multi-line
|   (omit creation-date timestamp)
|   (toggle . t))
|  (pop-up-multi-line)
|  (full-multi-line))
`

Greetings,
Jochen
-- 
Fritz-Haber-Institut der MPG -- Abteilung Molekülphysik
Faradayweg 4-6 (C1.03)
D-14195 Berlin

phone: +49-30-84135686
fax:   +49-30-84135892



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88alloc_id065op=click
___
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


export to .txt, .html

2004-11-05 Thread Dan Jacobson
bbdb-print is just to print .tex, how about .html or .txt?
By a batch job too.

OK, I was able to make a .txt with
$ emacs -batch -eval '(progn(bbdb  nil)
  (other-window 1)(write-file bbdb.txt))
You might want to document the proper way.
I see I must use progn as safer and poops out at
other-window. Hmmm.

Hmm, even though I used -batch, I see Type C-x 4 b RET to restore old
contents of the bbdb-list window.

P.S. ELIDEP is not explained here:
 bbdb is an interactive compiled Lisp function in `bbdb-com'.
 (bbdb STRING ELIDEP)

 Display all entries in the BBDB matching the regexp STRING
 in either the name(s), company, network address, or notes.

P.S..1.9.1.6 Example BBDB record is empty in the docs.


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: export to .txt, .html

2004-11-05 Thread Alex Schroeder
Dan Jacobson [EMAIL PROTECTED] writes:

 You might want to document the proper way.

I just do M-x bbdb and search for .  That gives me all the records in
a buffer.  C-x h selects the buffer, M-w copies it, and then I can
yank it elsewhere.  I also added two more entries to
bbdb-display-layout-alist to control the layout.  I like this approach
so much in fact that I have abandoned the tex way.  Plus no hassle
with non-Latin-1 characters.

Alex.
-- 
.O.  http://www.emacswiki.org/alex/
..O  Schroeder's fifth law:
OOO  Never accept more work than you can handle in one night of hacking.


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/