Re: [Gauche-devel] how to switch between ecb-options-version 2.33beta2 and 2.32 in .emacs depending
R7RS Scheme scripting engine
Status: Beta
Brought to you by:
shirok
From: Benjamin L. Russell <DekuDekuplex@Yahoo.com> Subject: [Gauche-devel] how to switch between ecb-options-version 2.33beta2 and 2.32 in .emacs depending on whether GNU Emacs 22.3.1 or Meadow3 (partially based on settings from Gauchebox) is being invoked on Windows XP Pro, Service Pack 3? Date: Mon, 08 Jun 2009 17:05:16 +0900 > >(if (featurep 'meadow) > > (if (file-exists-p (expand-file-name "~/.emacs.meadow.el")) > > (progn > > '(ecb-options-version "2.32") > > (load (expand-file-name "~/.emacs.meadow.el") nil t nil))) > > (if (file-exists-p (expand-file-name "~/.emacs.nt.el")) > > (progn > > '(ecb-options-version "2.33beta2") > > (load (expand-file-name "~/.emacs.nt.el") nil t nil))) > > ) I'm not using ECB so I can only guess the reason, but in your setting the expression '(ecb-options-version "2.33beta2") can't have any effect, since it is just a list literal to Emacs Lisp. What was the original context of this ecb-options-version expression? If it is something like this: (set-ecb-options-or-whatever '(ecb-options-version "2.33beta2")) Then you should include the entire expression into the progn of the context to take effect. I googled a bit and there's a code snippet that sets ecb-options-version within ecb-activate-hook. If that's the way, then you might be able to write like this within the conditional: (progn (add-hook 'ecb-activate-hook (lambda () (setq ecb-options-version "..."))) ...) --shiro > > Does anybody know how to switch between ecb-options-version 2.33beta2 > and 2.32 in .emacs (or .emacs.nt.el and .emacs.meadow.el) depending on > whether GNU Emacs or Meadow3 is being invoked? > > -- Benjamin L. Russell > -- > Benjamin L. Russell / DekuDekuplex at Yahoo dot com > http://dekudekuplex.wordpress.com/ > Translator/Interpreter / Mobile: +011 81 80-3603-6725 > "Furuike ya, kawazu tobikomu mizu no oto." > -- Matsuo Basho^ > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Gauche-devel mailing list > Gau...@li... > https://lists.sourceforge.net/lists/listinfo/gauche-devel > |