aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2011-02-02 23:11:31 -0800
committerGlenn Morris2011-02-02 23:11:31 -0800
commit8aa8876085ebc42907997d234ff55bc8910f08d4 (patch)
tree3498f99acaebf3d7c718b3813d19e6e65968b080 /lisp
parentf6041baa9d84125b0af4939b2d05edc0c59f034a (diff)
downloademacs-8aa8876085ebc42907997d234ff55bc8910f08d4.tar.gz
emacs-8aa8876085ebc42907997d234ff55bc8910f08d4.zip
strokes.el trivia.
* lisp/strokes.el (strokes-fill-current-buffer-with-whitespace): Move definition before use. (strokes-report-bug): Make it obsolete.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/strokes.el18
2 files changed, 15 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8b7d36b8387..de6463feeab 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-02-03 Glenn Morris <rgm@gnu.org>
2
3 * strokes.el (strokes-fill-current-buffer-with-whitespace):
4 Move definition before use.
5 (strokes-report-bug): Make it obsolete.
6
12011-02-02 Sam Steingold <sds@gnu.org> 72011-02-02 Sam Steingold <sds@gnu.org>
2 8
3 * apropos.el (apropos-print): Now that `apropos-mode' inherits 9 * apropos.el (apropos-print): Now that `apropos-mode' inherits
diff --git a/lisp/strokes.el b/lisp/strokes.el
index feeb8fec944..51e75c4387c 100644
--- a/lisp/strokes.el
+++ b/lisp/strokes.el
@@ -718,6 +718,14 @@ Returns the corresponding match as (COMMAND . SCORE)."
718 nil)) 718 nil))
719 nil)) 719 nil))
720 720
721(defsubst strokes-fill-current-buffer-with-whitespace ()
722 "Erase the contents of the current buffer and fill it with whitespace."
723 (erase-buffer)
724 (loop repeat (frame-height) do
725 (insert-char ?\s (1- (frame-width)))
726 (newline))
727 (goto-char (point-min)))
728
721;;;###autoload 729;;;###autoload
722(defun strokes-read-stroke (&optional prompt event) 730(defun strokes-read-stroke (&optional prompt event)
723 "Read a simple stroke (interactively) and return the stroke. 731 "Read a simple stroke (interactively) and return the stroke.
@@ -1034,15 +1042,7 @@ o Strokes are a bit computer-dependent in that they depend somewhat on
1034 (help-mode) 1042 (help-mode)
1035 (help-print-return-message))) 1043 (help-print-return-message)))
1036 1044
1037(defalias 'strokes-report-bug 'report-emacs-bug) 1045(define-obsolete-function-alias 'strokes-report-bug 'report-emacs-bug "24.1")
1038
1039(defsubst strokes-fill-current-buffer-with-whitespace ()
1040 "Erase the contents of the current buffer and fill it with whitespace."
1041 (erase-buffer)
1042 (loop repeat (frame-height) do
1043 (insert-char ?\s (1- (frame-width)))
1044 (newline))
1045 (goto-char (point-min)))
1046 1046
1047(defun strokes-window-configuration-changed-p () 1047(defun strokes-window-configuration-changed-p ()
1048 "Non-nil if the `strokes-window-configuration' frame properties changed. 1048 "Non-nil if the `strokes-window-configuration' frame properties changed.