]> git.eshelyaron.com Git - emacs.git/commitdiff
* strokes.el (strokes-read-stroke): Re-fill strokes buffer with
authorTassilo Horn <tassilo@member.fsf.org>
Sun, 16 Jan 2011 20:41:25 +0000 (21:41 +0100)
committerTassilo Horn <tassilo@member.fsf.org>
Sun, 16 Jan 2011 20:41:25 +0000 (21:41 +0100)
spaces if the frame was resized, so that the full visible buffer
serves as canvas for strokes.

lisp/ChangeLog
lisp/strokes.el

index c73b1d6a372971b915766af24fc514b79353e125..3bc9ccfbf284f5ea8676c5bfb1c72b696772d144 100644 (file)
@@ -1,3 +1,9 @@
+2011-01-16  Tassilo Horn  <tassilo@member.fsf.org>
+
+       * strokes.el (strokes-read-stroke): Re-fill strokes buffer with
+       spaces if the frame was resized, so that the full visible buffer
+       serves as canvas for strokes.
+
 2011-01-16  Glenn Morris  <rgm@gnu.org>
 
        * info-xref.el (info-xref-docstrings): Replace cl function.
index 2aba82515966cc916aecc7ab7cbdc5e2fb7dc31d..85258cf62170242149cdead20bc31f02d24ee65b 100644 (file)
@@ -736,6 +736,11 @@ Optional EVENT is acceptable as the starting event of the stroke."
          ;; display the stroke as it's being read
          (save-window-excursion
            (set-window-configuration strokes-window-configuration)
+           ;; The frame has been resized, so we need to refill the
+           ;; strokes buffer so that the strokes canvas is the whole
+           ;; visible buffer.
+           (unless (> 1 (abs (- (line-end-position) (window-width))))
+             (strokes-fill-current-buffer-with-whitespace))
            (when prompt
              (message "%s" prompt)
              (setq event (read-event))
@@ -1000,7 +1005,7 @@ If you'd like to create graphical files with strokes, you'll have to
 be running a version of Emacs with XPM support.  You use the binding
 to `strokes-compose-complex-stroke' to start drawing your strokes.
 These are just complex strokes, and thus continue drawing with mouse-1
-or mouse-2 and end with mouse-3.  Then the stroke image gets inserted
+or mouse-2 and   end with mouse-3.  Then the stroke image gets inserted
 into the buffer.  You treat it somewhat like any other character,
 which you can copy, paste, delete, move, etc.  When all is done, you
 may want to send the file, or save it.  This is done with