[climacs-devel] keyboard macros, display protocol
Robert Strandh
strandh at labri.fr
Fri May 5 19:17:56 UTC 2006
Christophe Rhodes writes:
>
> The below implements keyboard macros with the numeric argument. It
> seems to work, up to a point.
>
> The point at which it stops working is if the keyboard macro changes
> the number of lines in the display, and indeed the problem can be seen
> without this patch: start climacs, type (say), abcdefg, put point at
> the start of line, and do
> C-x ( C-f RET C-f RET C-f RET C-x ) C-x e
> (BOOM).
>
> The reason that this is a disaster is because we have multiple
> commands, multiple update-syntaxes, and multiple clear-modifies
> between successive redisplays, and this plays havoc with the cache
> maintained in climacs pane.lisp.
That should not be the case. The syntax should be updated and the
modification cleared only after each user interaction. Executing a
command as a result of executing a keyboard macro should not update
the syntax.
--
Robert Strandh
---------------------------------------------------------------------
Greenspun's Tenth Rule of Programming: any sufficiently complicated C
or Fortran program contains an ad hoc informally-specified bug-ridden
slow implementation of half of Common Lisp.
---------------------------------------------------------------------
More information about the climacs-devel
mailing list