aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-24 18:17:41 +0000
committerRichard M. Stallman1997-07-24 18:17:41 +0000
commita2b804280bc7489fe301a080559109fb443c556d (patch)
tree0fdcf3536da089310d592e754001525059f8929a
parent4867f7b269ed1af64fffbe882fb9e7d0d6df4c89 (diff)
downloademacs-a2b804280bc7489fe301a080559109fb443c556d.tar.gz
emacs-a2b804280bc7489fe301a080559109fb443c556d.zip
Many doc fixes.
(handwrite): Add autoload cookie. (menu-bar-handwrite-map): Comment out the code to put this in the menu bar.
-rw-r--r--lisp/play/handwrite.el74
1 files changed, 42 insertions, 32 deletions
diff --git a/lisp/play/handwrite.el b/lisp/play/handwrite.el
index 73412f3bd08..1a0fabfb9f9 100644
--- a/lisp/play/handwrite.el
+++ b/lisp/play/handwrite.el
@@ -73,7 +73,7 @@
73;; Variables 73;; Variables
74 74
75(defvar handwrite-psindex 0 75(defvar handwrite-psindex 0
76 "The index of the PostScript buffer") 76 "The index of the PostScript buffer.")
77(defvar menu-bar-handwrite-map (make-sparse-keymap "Handwrite functions.")) 77(defvar menu-bar-handwrite-map (make-sparse-keymap "Handwrite functions."))
78(fset 'menu-bar-handwrite-map (symbol-value 'menu-bar-handwrite-map)) 78(fset 'menu-bar-handwrite-map (symbol-value 'menu-bar-handwrite-map))
79 79
@@ -81,31 +81,35 @@
81;; User definable variables 81;; User definable variables
82 82
83(defvar handwrite-numlines 60 83(defvar handwrite-numlines 60
84 "*The number of lines on a page of the PostScript output") 84 "*The number of lines on a page of the PostScript output from `handwrite'.")
85(defvar handwrite-fontsize 11 85(defvar handwrite-fontsize 11
86 "*The size of the font for the PostScript output") 86 "*The size of the font for the PostScript output from `handwrite'.")
87(defvar handwrite-linespace 12 87(defvar handwrite-linespace 12
88 "*The spacing for the PostScript output") 88 "*The spacing for the PostScript output from `handwrite'.")
89(defvar handwrite-xstart 30 89(defvar handwrite-xstart 30
90 "*Translation in the x-direction of the origin in the PostScript output") 90 "*X-axis translation in the PostScript output from `handwrite'.")
91(defvar handwrite-ystart 810 91(defvar handwrite-ystart 810
92 "*Translation in the y-direction of the origin in the PostScript output") 92 "*Y-axis translation in the PostScript output from `handwrite'.")
93(defvar handwrite-pagenumbering nil 93(defvar handwrite-pagenumbering nil
94 "*If t then number each page of the PostScript output") 94 "*If non-nil, number each page of the PostScript output from `handwrite'.")
95(defvar handwrite-10pt-numlines 65 95(defvar handwrite-10pt-numlines 65
96 "*The number of lines on a page for the function handwrite-10pt") 96 "*The number of lines on a page for the function `handwrite-10pt'.")
97(defvar handwrite-11pt-numlines 60 97(defvar handwrite-11pt-numlines 60
98 "*The number of lines on a page for the function handwrite-11pt") 98 "*The number of lines on a page for the function `handwrite-11pt'.")
99(defvar handwrite-12pt-numlines 55 99(defvar handwrite-12pt-numlines 55
100 "*The number of lines on a page for the function handwrite-12pt") 100 "*The number of lines on a page for the function `handwrite-12pt'.")
101(defvar handwrite-13pt-numlines 50 101(defvar handwrite-13pt-numlines 50
102 "*The number of lines on a page for the function handwrite-13pt") 102 "*The number of lines on a page for the function `handwrite-13pt'.")
103 103
104 104
105;; Interactive functions 105;; Interactive functions
106 106
107(defun handwrite () 107;;;###autoload
108 "Turns the buffer into a handwritten document. 108(defun handwrite ()
109 "Turns the buffer into a \"handwritten\" document.
110The functions `handwrite-10pt', `handwrite-11pt', `handwrite-12pt'
111and `handwrite-13pt' set up for various sizes of output.
112
109Variables: handwrite-linespace (default 12) 113Variables: handwrite-linespace (default 12)
110 handwrite-fontsize (default 11) 114 handwrite-fontsize (default 11)
111 handwrite-numlines (default 60) 115 handwrite-numlines (default 60)
@@ -313,14 +317,15 @@ Variables: handwrite-linespace (default 12)
313 317
314 318
315(defun handwrite-set-pagenumber () 319(defun handwrite-set-pagenumber ()
316 "Toggle the value of handwrite-pagenumbering" 320 "Toggle the value of `handwrite-pagenumbering'."
317 (interactive) 321 (interactive)
318 (if handwrite-pagenumbering 322 (if handwrite-pagenumbering
319 (handwrite-set-pagenumber-off)(handwrite-set-pagenumber-on))) 323 (handwrite-set-pagenumber-off)(handwrite-set-pagenumber-on)))
320 324
321(defun handwrite-10pt () 325(defun handwrite-10pt ()
322 "Sets the variable `handwrite-fontsize' to 10 and finds correct 326 "Specify 10-point output for `handwrite.
323values for `handwrite-linespace' and `handwrite-numlines'" 327This sets `handwrite-fontsize' to 10 and finds correct
328values for `handwrite-linespace' and `handwrite-numlines'."
324 (interactive) 329 (interactive)
325 (setq handwrite-fontsize 10) 330 (setq handwrite-fontsize 10)
326 (setq handwrite-linespace 11) 331 (setq handwrite-linespace 11)
@@ -333,16 +338,17 @@ values for `handwrite-linespace' and `handwrite-numlines'"
333 '("12 pt" . handwrite-12pt)) 338 '("12 pt" . handwrite-12pt))
334 (define-key menu-bar-handwrite-map [13pt] 339 (define-key menu-bar-handwrite-map [13pt]
335 '("13 pt" . handwrite-13pt)) 340 '("13 pt" . handwrite-13pt))
336 (message "Joepie set to 10 points")) 341 (message "Handwrite output size set to 10 points"))
337 342
338 343
339(defun handwrite-11pt () 344(defun handwrite-11pt ()
340 "Sets the variable `handwrite-fontsize' to 11 and finds correct 345 "Specify 11-point output for `handwrite.
341values for `handwrite-linespace' and `handwrite-numlines'" 346This sets `handwrite-fontsize' to 11 and finds correct
347values for `handwrite-linespace' and `handwrite-numlines'."
342 (interactive) 348 (interactive)
343 (setq handwrite-fontsize 11) 349 (setq handwrite-fontsize 11)
344 (setq handwrite-linespace 12) 350 (setq handwrite-linespace 12)
345 (setq handwrite-numlines handwrite-11pt-numlines ) 351 (setq handwrite-numlines handwrite-11pt-numlines)
346 (define-key menu-bar-handwrite-map [10pt] 352 (define-key menu-bar-handwrite-map [10pt]
347 '("10 pt" . handwrite-10pt)) 353 '("10 pt" . handwrite-10pt))
348 (define-key menu-bar-handwrite-map [11pt] 354 (define-key menu-bar-handwrite-map [11pt]
@@ -351,11 +357,12 @@ values for `handwrite-linespace' and `handwrite-numlines'"
351 '("12 pt" . handwrite-12pt)) 357 '("12 pt" . handwrite-12pt))
352 (define-key menu-bar-handwrite-map [13pt] 358 (define-key menu-bar-handwrite-map [13pt]
353 '("13 pt" . handwrite-13pt)) 359 '("13 pt" . handwrite-13pt))
354 (message "Joepie set to 11 points")) 360 (message "Handwrite output size set to 11 points"))
355 361
356(defun handwrite-12pt () 362(defun handwrite-12pt ()
357 "Sets the variable `handwrite-fontsize' to 12 and finds correct 363 "Specify 12-point output for `handwrite.
358values for `handwrite-linespace' and `handwrite-numlines'" 364This sets `handwrite-fontsize' to 12 and finds correct
365values for `handwrite-linespace' and `handwrite-numlines'."
359 (interactive) 366 (interactive)
360 (setq handwrite-fontsize 12) 367 (setq handwrite-fontsize 12)
361 (setq handwrite-linespace 13) 368 (setq handwrite-linespace 13)
@@ -368,11 +375,12 @@ values for `handwrite-linespace' and `handwrite-numlines'"
368 '("12 pt *" . handwrite-12pt)) 375 '("12 pt *" . handwrite-12pt))
369 (define-key menu-bar-handwrite-map [13pt] 376 (define-key menu-bar-handwrite-map [13pt]
370 '("13 pt" . handwrite-13pt)) 377 '("13 pt" . handwrite-13pt))
371 (message "Joepie set to 12 points")) 378 (message "Handwrite output size set to 12 points"))
372 379
373(defun handwrite-13pt () 380(defun handwrite-13pt ()
374 "Sets the variable `handwrite-fontsize' to 13 and finds correct 381 "Specify 13-point output for `handwrite.
375values for `handwrite-linespace' and `handwrite-numlines'" 382This sets `handwrite-fontsize' to 13 and finds correct
383values for `handwrite-linespace' and `handwrite-numlines'."
376 (interactive) 384 (interactive)
377 (setq handwrite-fontsize 13) 385 (setq handwrite-fontsize 13)
378 (setq handwrite-linespace 14) 386 (setq handwrite-linespace 14)
@@ -385,7 +393,7 @@ values for `handwrite-linespace' and `handwrite-numlines'"
385 '("12 pt" . handwrite-12pt)) 393 '("12 pt" . handwrite-12pt))
386 (define-key menu-bar-handwrite-map [13pt] 394 (define-key menu-bar-handwrite-map [13pt]
387 '("13 pt *" . handwrite-13pt)) 395 '("13 pt *" . handwrite-13pt))
388 (message "Joepie set to 13 points")) 396 (message "Handwrite output size set to 13 points"))
389 397
390 398
391;; Internal Functions 399;; Internal Functions
@@ -1334,11 +1342,13 @@ end
1334;; Key bindings 1342;; Key bindings
1335 1343
1336 1344
1337(define-key-after 1345;;; I'd rather not fill up the menu bar menus with
1338 (lookup-key global-map [menu-bar edit]) 1346;;; lots of random miscellaneous features. -- rms.
1339 [handwrite] 1347;;;(define-key-after
1340 '("Write by hand" . menu-bar-handwrite-map) 1348;;; (lookup-key global-map [menu-bar edit])
1341 'spell) 1349;;; [handwrite]
1350;;; '("Write by hand" . menu-bar-handwrite-map)
1351;;; 'spell)
1342 1352
1343(define-key menu-bar-handwrite-map [numbering] 1353(define-key menu-bar-handwrite-map [numbering]
1344 '("Page numbering Off" . handwrite-set-pagenumber)) 1354 '("Page numbering Off" . handwrite-set-pagenumber))