home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky gnu.misc.discuss:2530 gnu.emacs.help:3471
- Newsgroups: gnu.misc.discuss,gnu.emacs.help
- Path: sparky!uunet!wupost!cs.utexas.edu!torn!ryelect!lfernand
- From: lfernand@ee.ryerson.ca (luis fernandes)
- Subject: Two ideas for implementing repeat-last-command
- Message-ID: <1992Jul23.211824.29843@ee.ryerson.ca>
- Sender: news@ee.ryerson.ca
- Nntp-Posting-Host: brundel
- Organization: Ryerson Polytechnical Institute, Toronto
- Date: Thu, 23 Jul 1992 21:18:24 GMT
- Lines: 34
-
- The following two ideas for implementing repeat-last-command dawned
- on me while reading the GNU Emacs manual:
-
- [1] Write a lisp program that parses output from 'view-lossage' and binds
- it to a key that will repeat-last-command. Everything between either a
- C- or M- and RET.
-
- [2] Modify emacs so that it is always in macro-record mode. Recording
- would begin when either C- or M- was pressed and would end when RET was
- pressed. The recorded sequence of commands whould then be returned by
- repeat-last-command. A key could be bound to execute repeat-last-command.
- If a macro was being recorded, then 2 copies of the command would exist:
- one copy for the macro and the other for the benefit of repeat-last
- command.
-
- Excuses for not trying to implement this myself:
-
- (i) I can't steal any CPU cycles to devote to this cause until
- Jan. 93. It's true I don't have a life, but I do have other
- hacking commitments until '93.
-
- (ii) I don't know lisp (don't worry, I will learn) so I have no idea
- whether [1] is viable. (I do however, have my doubts about
- this...)
-
- (iii) I haven't looked at the source to see how macro's are recorded,
- etc. to know whether [2] is viable.
-
- So, who's game ? Tennis anyone ?
-
- zxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzx
- Luis Fernandes <lfernand@ee.ryerson.ca>
- -Friendly Neighbourhood X Wizard's Apprentice
- zxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzxzx
-