Re: setting bbdb-file-coding-system

2008-04-24 Thread Robert Widhopf-Fenk
On Wednesday, April 16, 2008 at 23:06:28, Reiner Steib wrote:
> On Wed, Apr 16 2008, William Xu wrote:
> 
> > (defcustom bbdb-file-coding-system
> >   (bbdb-eval-when (fboundp 'coding-system-p)
> 
> > (cond ((apply 'coding-system-p '(utf-8-emacs))
> 
> BTW, why such an obscure way of writing (coding-system-p
> 'utf-8-emacs)?

To avoid a warning about an unbound coding-system-p
function during byte compilation.

Robert

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: setting bbdb-file-coding-system

2008-04-16 Thread William Xu
Robert Widhopf-Fenk <[EMAIL PROTECTED]> writes:

> On Wednesday, April 16, 2008 at 13:17:38, William Xu wrote:
>> Hi, people ! 
>> 
>> Why this awkward constraint for bbdb-file-coding-system? I can't
>> read its docs.  
>
> You refer to that it does not occur in the info file?

I search "bbdb-file-" in bbdb info, but got nothing?  

>> It says "should not changed by users", 
>
> You can mess up your ~/.bbdb when changing it while not
> visiting the file.  This is what the warning refers to.

> Well do it, but make a backup of ~/.bbdb first.

Looks like if I simply close ".bbdb" buffer first, then set this
variable, there is no problem.

-- 
William

http://williamxu.net9.org


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: setting bbdb-file-coding-system

2008-04-16 Thread Robert Widhopf-Fenk
On Wednesday, April 16, 2008 at 13:17:38, William Xu wrote:
> Hi, people ! 
> 
> Why this awkward constraint for bbdb-file-coding-system? I can't
> read its docs.  

You refer to that it does not occur in the info file?

> It says "should not changed by users", 

You can mess up your ~/.bbdb when changing it while not
visiting the file.  This is what the warning refers to.

> but since
> it's a defcustom, describe-variable will tell you "You can customize
> this variable."  Basically, what I want to do is change the coding
> system to utf-8, so that the file could be saved correctly.

Well do it, but make a backup of ~/.bbdb first.

Bye Robert

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: setting bbdb-file-coding-system

2008-04-16 Thread Reiner Steib
On Wed, Apr 16 2008, William Xu wrote:

> (defcustom bbdb-file-coding-system
>   (bbdb-eval-when (fboundp 'coding-system-p)

> (cond ((apply 'coding-system-p '(utf-8-emacs))

BTW, why such an obscure way of writing (coding-system-p 'utf-8-emacs)?

>'utf-8-emacs)
>   (t 'iso-8859-1)))

Bye, Reiner.
-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/