Changeset 10488


Ignore:
Timestamp:
11/18/05 01:47:25 (18 years ago)
Author:
piso
Message:

(setf (variable-value ...) ...) => (set-global-property ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/examples/key-pressed.lisp

    r6579 r10488  
    11;;; key-pressed.lisp
    22;;;
    3 ;;; Copyright (C) 2003-2004 Peter Graves
    4 ;;; $Id: key-pressed.lisp,v 1.7 2004-04-22 15:17:36 piso Exp $
     3;;; Copyright (C) 2003-2005 Peter Graves
     4;;; $Id: key-pressed.lisp,v 1.8 2005-11-18 01:47:25 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    159159;;; Enable the hook.
    160160(add-hook 'key-pressed-hook 'key-pressed)
    161 (setf (variable-value 'enable-key-pressed-hook :global) t)
     161(set-global-property "enableKeyPressedHook" t)
    162162
    163 #|
    164 
    165 NOTE: ENABLE-KEY-PRESSED-HOOK will be reset to its default value (NIL) when
    166 preferences are reloaded (which happens automatically when you edit your
    167 preferences file). To prevent this (and keep the key-pressed hook working
    168 properly across preference file edits), add this line to ~/.j/prefs:
    169 
    170      enableKeyPressedHook = true
    171 
    172 |#
     163;; NOTE: ENABLE-KEY-PRESSED-HOOK will be reset to its default value (NIL) when
     164;; preferences are reloaded (which happens automatically when you edit your
     165;; preferences file). To prevent this (and keep the key-pressed hook working
     166;; properly across preference file edits), add this line to ~/.j/prefs:
     167;;
     168;;      enableKeyPressedHook = true
     169;;
Note: See TracChangeset for help on using the changeset viewer.