gnu-emacs-sources
[Top][All Lists]
Advanced

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

Re: buffer-time-stamp.el --- display buffer time stamps in the mode line


From: Stefan Monnier
Subject: Re: buffer-time-stamp.el --- display buffer time stamps in the mode line.
Date: Tue, 19 Oct 2004 14:38:47 GMT
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

>         ;; In XEmacs, the LOCAL arg in add-hook doesn't make the hook
>         ;; variable buffer-local.
>         (when buffer-time-stamp-xemacs-p
>           (make-local-hook 'after-change-functions))
>         (add-hook 'after-change-functions 'buffer-time-stamp-update nil t)

In Emacs-20, the LOCAL arg in add-hook doesn't make the hook
variable buffer-local either.  And in Emacs-21, it doesn't hurt to call
make-local-hook.  So just remove the "(when buffer-time-stamp-xemacs-p"
(and remove the corresponding buffer-time-stamp-xemacs-p).


        Stefan


PS: (or (featurep 'xemacs)
        (string-match "XEmacs\\|Lucid" (emacs-version))) is really overkill,
    because (featurep 'xemacs) has worked at least since XEmacs-20, long
    before define-minor-mode was introduced.


reply via email to

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