home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3533 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.4 KB  |  33 lines

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