unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Determine what version and make settings accordingly
@ 2014-11-06 14:10 Harry Putnam
  2014-11-06 14:19 ` H. Dieter Wilhelm
  0 siblings, 1 reply; 3+ messages in thread
From: Harry Putnam @ 2014-11-06 14:10 UTC (permalink / raw)
  To: help-gnu-emacs

Probably kind of basic... but not to me.

I'm running emacs24 (installed from debian pkg system) and now want to
also run emacs-25... (installed from bzr repo).

I'd like to put something in ~/.emacs or even site-start.el (This is a
single user machine), that finds which version of emacs is currently
being started... and then set a few paths and etc differently than
usual, so as to load stuff from the --prefix=path of emacs-25.

Can anyone point me to some examples, that even with my elisp
illiteracy, I might be able to hack up and get to work for my
situation?





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Determine what version and make settings accordingly
  2014-11-06 14:10 Determine what version and make settings accordingly Harry Putnam
@ 2014-11-06 14:19 ` H. Dieter Wilhelm
  2014-11-17  0:51   ` Harry Putnam
  0 siblings, 1 reply; 3+ messages in thread
From: H. Dieter Wilhelm @ 2014-11-06 14:19 UTC (permalink / raw)
  To: help-gnu-emacs

Harry Putnam <reader@newsguy.com> writes:

> Probably kind of basic... but not to me.
>
> I'm running emacs24 (installed from debian pkg system) and now want to
> also run emacs-25... (installed from bzr repo).

(if (>= emacs-major-version 25)                        ; this is the test, the "if"
     (message "You are running Emacs 25!  Lucky you.") ; This is the "then"
   (ding)                                              ; From here on is the "else"
   (message "Time to upgrade, don't you think?"))

emacs-version
emacs-minor-version

Is that what you are looking for?

        Dieter

-- 
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Determine what version and make settings accordingly
  2014-11-06 14:19 ` H. Dieter Wilhelm
@ 2014-11-17  0:51   ` Harry Putnam
  0 siblings, 0 replies; 3+ messages in thread
From: Harry Putnam @ 2014-11-17  0:51 UTC (permalink / raw)
  To: help-gnu-emacs

dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes:

> Harry Putnam <reader@newsguy.com> writes:
>
>> Probably kind of basic... but not to me.
>>
>> I'm running emacs24 (installed from debian pkg system) and now want to
>> also run emacs-25... (installed from bzr repo).
>
> (if (>= emacs-major-version 25)                        ; this is the test, the "if"
>      (message "You are running Emacs 25!  Lucky you.") ; This is the "then"
>    (ding)                                              ; From here on is the "else"
>    (message "Time to upgrade, don't you think?"))
>
> emacs-version
> emacs-minor-version
>
> Is that what you are looking for?

Yes it is... thanks much.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-17  0:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 14:10 Determine what version and make settings accordingly Harry Putnam
2014-11-06 14:19 ` H. Dieter Wilhelm
2014-11-17  0:51   ` Harry Putnam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).