home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!lucid.com!jla
- From: jla@lucid.com (Joseph Arceneaux)
- Newsgroups: gnu.emacs.help
- Subject: elisp: interactive calling of C subroutines
- Message-ID: <9207281754.AA02008@hugo.lucid>
- Date: 28 Jul 92 17:54:57 GMT
- References: <ACEVEDO.92Jul28095546@hippocrene.mit.edu>
- Sender: daemon@cis.ohio-state.edu
- Reply-To: jla@ai.mit.edu
- Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
- Lines: 20
-
-
- Date: 28 Jul 92 13:54:30 GMT
- From: acevedo@mit.edu (Raul Acevedo)
-
- (setq foo (symbol-function 'forward-char)) ; so you can recover it
- (fset 'forward-char 'backward-char)
-
- This will not work. Sort of. See what happens to C-f; it doesn't
- change. However, see how it behaves at the end of the buffer. Only
- then does it actually do `backward-char'. But if you evaluate
- (forward-char) or type M-x forward-char, you *will* actually call
- `backward-char'.
-
- Anyone know what's going on?
-
- Your guess (which I've omitted) is partially correct. There is an
- optimization which attempts to execute `forward-char', `backward-char',
- and `self-insert' without going through redisplay under certain
- conditions. At the end of the buffer, the conditions aren't met, and
- so the command then goes through `command-execute'.
-