Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!bbn!jr@bbn.com From: jr@bbn.com (John Robinson) Newsgroups: gnu.emacs Subject: Re: Function keys in Sunview Emacs Message-ID: <38484@bbn.COM> Date: 10 Apr 89 16:00:49 GMT References: <8904062011.AA04566@aaet.> <468@atlas.tegra.UUCP> Sender: news@bbn.COM Reply-To: jr@bbn.com (John Robinson) Distribution: gnu Organization: BBN Systems and Technologies Corporation, Cambridge MA Lines: 25 In-reply-to: vail@tegra.UUCP (Johnathan Vail) In article <468@atlas.tegra.UUCP>, vail@tegra (Johnathan Vail) writes: >In article <8904062011.AA04566@aaet.> wilensky@aaet.csc.ti.com (Harold Wilensky) writes: > For example I would like to use global-set-key to make the F1 key do > something. How do I specify the F1 key. > > --Harold Wilensky, TI > >The way I do it is M-x describe-key (which I bound to C-x?). > >Then hit the function key and look below the mode line. It will tell >you what the sequence is like C-x*et for the F5 key. This won't work if the sequence is unbound (some of it may end up in your buffer). Easier is to go to a buffer you don't mind trashing and type control-Q followed by the function key. The ESC will self-insert, followed by the rest of the sequence (which should all be printing chars). ESC will look like ^[ in the buffer. Another choice is to simply hit the function key (when looking at a trashable buffer) and then type ^H l (view lossage), which will show you a history of your recent keystrokes, printed in a "pretty" fashion. -- /jr jr@bbn.com or bbn!jr C'mon big money!