[slime-devel] slime-repl-clear-buffer: recenter

David Reitter david.reitter at gmail.com
Mon Jan 12 21:15:27 UTC 2009


Is there a particular reason why slime-repl-clear-buffer calls  
`recenter'?
Can it do so without redrawing the whole frame (which is quite  
annoying)?

If the answers are "no" and "yes", I'd like to suggest the patch below.




*** slime-repl.el	07 Jan 2009 04:21:44 -0500	1.11
--- slime-repl.el	12 Jan 2009 16:13:00 -0500	
***************
*** 813,819 ****
       (delete-region (point-min) slime-repl-prompt-start-mark)
       (delete-region slime-output-start slime-output-end)
       (goto-char slime-repl-input-start-mark)
!     (recenter))
     (run-hooks 'slime-repl-clear-buffer-hook))

   (defun slime-repl-clear-output ()
--- 813,819 ----
       (delete-region (point-min) slime-repl-prompt-start-mark)
       (delete-region slime-output-start slime-output-end)
       (goto-char slime-repl-input-start-mark)
!     (recenter t))
     (run-hooks 'slime-repl-clear-buffer-hook))

   (defun slime-repl-clear-output ()

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2193 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20090112/f2db8254/attachment.bin>


More information about the slime-devel mailing list