Lisp HUG Maillist Archive

Hash character on UK mac keyboards (LW 6.1)

[Sorry if this is a duplicate: I sent a previous version from, I think, the wrong account: it's not shown up anyway.]

Has anyone dealt with this problem?  I want to use LW with the alt key being meta (as that's what Emacs does on the mac, and I've weaned myself off XEmacs now which had command as meta).  But I have a UK keyboard and the stantard way to get a hash character is alt-3.

What I've done based on some very slight reading of the editor sources is

(in-package "EDITOR")

(defcommand "Insert Hash" (n)
    "Insert hash character"
    "Insert hash character"
 (loop repeat (or n 1)
       do (insert-character (current-point) #\#)))

(bind-key "Insert Hash"
         #\meta-£)

Which makes alt-shift-3 insert a hash (and obviously one cold steal meta-3 but that's already used as a prefix).

Is there something better than this (short of command-is-meta)?

Thanks

--tim

Re: Hash character on UK mac keyboards (LW 6.1)


 > [Sorry if this is a duplicate: I sent a previous version from, I think, the wrong account: it's not shown up anyway.]
 > 
 > Has anyone dealt with this problem?  I want to use LW with the alt key being meta (as that's what Emacs does on the mac, and I've weaned myself off XEmacs now which had command as meta).  But I have a UK keyboard and the stantard way to get a hash character is alt-3.
 > 
 > What I've done based on some very slight reading of the editor sources is
 > 
 > (in-package "EDITOR")
 > 
 > (defcommand "Insert Hash" (n)
 >     "Insert hash character"
 >     "Insert hash character"
 >  (loop repeat (or n 1)
 >        do (insert-character (current-point) #\#)))
 > 
 > (bind-key "Insert Hash"
 >          #\meta-£)
 > 
 > Which makes alt-shift-3 insert a hash (and obviously one cold steal meta-3 but that's already used as a prefix).
 > 
 > Is there something better than this (short of command-is-meta)?

Please see

 http://www.lispworks.com/documentation/lw61/IDE-M/html/ide-m-46.htm


-- 
Dave Fox
LispWorks Ltd
St John's Innovation Centre, Cowley Road
Cambridge CB4 0WS
England
http://www.lispworks.com/

LispWorks Ltd is registered in England, company number 5114963.  The
company's registered address is c/o Streets Whitmarsh Sterland LLP,
62 Hills Road, Cambridge CB2 1LA (but customers and suppliers should
write to our office address above).  LispWorks Ltd is registered for
VAT with EC VAT ID: GB 833329531



Updated at: 2020-12-10 08:36 UTC