[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zone-mode increments zone serial by 2

From: Peter 'Luna' Runestig
Subject: Re: zone-mode increments zone serial by 2
Date: Wed, 17 Dec 2003 11:18:12 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030809

On 2003-11-29 06:56, Richard Stallman wrote:
>     again, it's changed to 2003112803. Looking at the lisp code (I don't
>     know much about lisp), it seems that the intention is to only
>     increment by one. Maybe the incremental code is called twice?
> Could you insert some debugging code and figure out why it's
> called twice?

This is called when zone-mode.el is loaded:

(add-hook 'write-file-hooks 'zone-mode-update-serial-hook nil t)

If I, according to docu that says write-file-hooks is obsolete, change
it to this:

(add-hook 'write-file-functions 'zone-mode-update-serial-hook nil t)

it all suddenly start working as expected (i.e. zone serial only
incremented by one). Don't ask me why though... :-)

Merry Xmas to you all!
- Peter
Peter 'Luna' Runestig (fd. Altberg), Sweden <address@hidden>
PGP Key ID: 0xD07BBE13
Fingerprint: 7B5C 1F48 2997 C061 DE4B  42EA CB99 A35C D07B BE13
AOL Instant Messenger Screen name: PRunestig
Yahoo! Messenger profile name: altberg

reply via email to

[Prev in Thread] Current Thread [Next in Thread]