[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102870: * strokes.el (strokes-read-s
From: |
Tassilo Horn |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102870: * strokes.el (strokes-read-stroke): Re-fill strokes buffer with |
Date: |
Sun, 16 Jan 2011 21:41:25 +0100 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102870
committer: Tassilo Horn <address@hidden>
branch nick: trunk
timestamp: Sun 2011-01-16 21:41:25 +0100
message:
* 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.
modified:
lisp/ChangeLog
lisp/strokes.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2011-01-16 02:34:57 +0000
+++ b/lisp/ChangeLog 2011-01-16 20:41:25 +0000
@@ -1,3 +1,9 @@
+2011-01-16 Tassilo Horn <address@hidden>
+
+ * 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 <address@hidden>
* info-xref.el (info-xref-docstrings): Replace cl function.
=== modified file 'lisp/strokes.el'
--- a/lisp/strokes.el 2011-01-15 23:16:57 +0000
+++ b/lisp/strokes.el 2011-01-16 20:41:25 +0000
@@ -736,6 +736,11 @@
;; 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 @@
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r102870: * strokes.el (strokes-read-stroke): Re-fill strokes buffer with,
Tassilo Horn <=