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

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

Re: Upgrading suggestions


From: S Boucher
Subject: Re: Upgrading suggestions
Date: Tue, 4 Oct 2011 13:32:16 -0700 (PDT)




----- Original Message -----

> How do others, when moving up to a new level of emacs, deal with this?

I add tests based on emacs-major-version and emacs-minor-version.  For example, 
if I overwrite/clobber a particular defun (like I've done for vc-git), I add a 
check on the version that will throw me an error if I run in a version of emacs 
I've yet to use.  This way, I know I have to go back and review whether I still 
need the hack or not.

(if (not (and (= emacs-major-version 23) (= emacs-minor-version 2)))
  (error "....")
  (defun ....))




reply via email to

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