Re: 2 new problems with Emacs 22.0.50, CVS gnus, CVS bbdb

2005-03-16 Thread Frederik Fouvry

,-- On Mon, 14 Mar 2005 23:25:17 +, Ronan Waide wrote:
| 
| On March 14, [EMAIL PROTECTED] said:
|  I've tried deleting the first line and restarting but it seems to reappear
|  again.
| 
| Try changing the value of bbdb-file-coding-system. I hate coding systems.

I've had the problem as well.  I guess that it is due to a change in
the treatment of the coding systems in (very) recent version of Emacs.

Setting the coding system to mule-utf-8, both in the buffer
(set-buffer-file-coding-system) and in the file contents (editing
the top line), makes the problem go away.  BBDB does not
overwrite the coding setting in the file if the data base is not
empty, if there is a file version line and if the coding
setting matches the regexp \\`;; *-\\*-coding:.  It's not
totally robust, but it'll cover most cases.

Part of the problem may be due to the following:

bbdb-file-coding-system is set as follows:

(if (fboundp 'coding-system-p)
(if (coding-system-p 'utf-8-emacs)
'utf-8-emacs
  'iso-2022-7bit))

In GNU Emacs, that always evaluates to 'iso-2022-7bit (or nil
depending on the version), since 'utf-8-emacs is not a coding
system.  There you'll want to test for 'mule-utf-8 (or 'utf-8).

Frederik Fouvry


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: 2 new problems with Emacs 22.0.50, CVS gnus, CVS bbdb

2005-03-16 Thread Ted Stern
On 15 Mar 2005 at 03:52 PST, Frederik Fouvry wrote:
 ,-- On Mon, 14 Mar 2005 23:25:17 +, Ronan Waide wrote: |
 | On March 14, [EMAIL PROTECTED] said:
 |  I've tried deleting the first line and restarting but it seems to reappear
 |  again.
 | 
 | Try changing the value of bbdb-file-coding-system. I hate coding systems.

 I've had the problem as well.  I guess that it is due to a change in
 the treatment of the coding systems in (very) recent version of Emacs.

 Setting the coding system to mule-utf-8, both in the buffer
 (set-buffer-file-coding-system) and in the file contents (editing
 the top line), makes the problem go away.  BBDB does not
 overwrite the coding setting in the file if the data base is not
 empty, if there is a file version line and if the coding
 setting matches the regexp \\`;; *-\\*-coding:.  It's not
 totally robust, but it'll cover most cases.

 Part of the problem may be due to the following:

 bbdb-file-coding-system is set as follows:

 (if (fboundp 'coding-system-p)
 (if (coding-system-p 'utf-8-emacs)
   'utf-8-emacs
   'iso-2022-7bit))

 In GNU Emacs, that always evaluates to 'iso-2022-7bit (or nil
 depending on the version), since 'utf-8-emacs is not a coding
 system.  There you'll want to test for 'mule-utf-8 (or 'utf-8).

 Frederik Fouvry

mule-utf-8 did not work for me.  I got the same message when trying to save,
but this time it said that the file was in mule-utf-8-unix.

When I changed the buffer coding system and the top line raw-text, I didn't
get an error.  This will probably bite me at some point, but it gets rid of
the errors for now.

-- Ted


 ---
 SF email is sponsored by - The IT Product Guide
 Read honest  candid reviews on hundreds of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
 ___
 bbdb-info@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bbdb-info
 BBDB Home Page: http://bbdb.sourceforge.net/

-- 
 Ted Stern Applications Group
 Cray Inc.   office: 206-701-2182
 411 First Avenue South, Suite 600 cell: 206-383-1049
 Seattle, WA 98104-2860 FAX: 206-701-2500

 Frango ut patefaciam -- I break so that I may reveal
 (The Paleontological Society motto, equally apropos for debugging)



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: 2 new problems with Emacs 22.0.50, CVS gnus, CVS bbdb

2005-03-16 Thread Ronan Waide
On March 16, [EMAIL PROTECTED] said:
 
 mule-utf-8 did not work for me.  I got the same message when trying to save,
 but this time it said that the file was in mule-utf-8-unix.
 
 When I changed the buffer coding system and the top line raw-text, I didn't
 get an error.  This will probably bite me at some point, but it gets rid of
 the errors for now.

If anyone feels like throwing me a patch to fix this properly, I'll
gladly accept it. Fredrick (I think) already pointed out to me that
the coding cookie in the file isn't updated to match changes in the
coding-system variable, so I should probably fix that at least, but as
previously mentioned, I hate coding systems.

Cheers,
Waider.
-- 
  YOW!!  I'm in a very clever and adorable INSANE ASYLUM!!
 Hey, that's Japan!! It's cute, they're clever, and all completely
 mad!!
   - Zippy / Clarkey


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: 2 new problems with Emacs 22.0.50, CVS gnus, CVS bbdb

2005-03-14 Thread Ronan Waide
On March 14, [EMAIL PROTECTED] said:
 I've tried deleting the first line and restarting but it seems to reappear
 again.

Try changing the value of bbdb-file-coding-system. I hate coding systems.

 
 The second problem:  I've had to add the following to my .gnus:
 
 (remove-hook 'message-setup-hook 'bbdb-insinuate-sendmail)
 
 Otherwise, when I attempt to reply or forward an email in Gnus, I get an error
 that mail-mode-hook is not found.

Well, don't do that then. You could always put in an autoload or a
fset for mail-mode-hook. Since I'm still running Emacs 21 (and I don't
use Gnus) I'm not likely to do anything with this for a while, so feel
free to provide a patch.

Cheers,
Waider.
-- 
[EMAIL PROTECTED] / Yes, it /is/ very personal of me.

Your failure to install prerequisite software
does not constitute an error in my code.


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/