aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2011-04-22 20:07:16 -0700
committerGlenn Morris2011-04-22 20:07:16 -0700
commit4ffd0d6b569d252e4e807d4e9c9d6a5bd5b08640 (patch)
tree26c20c7c4da56fae7e041c9345c76cce1224188c /lisp
parent81de9236e1daa1fe7dfd0ef9aaaf1e13b6aa74e4 (diff)
parentbe71f8100a71a5b896ef05c32f51a09a3d9e3993 (diff)
downloademacs-4ffd0d6b569d252e4e807d4e9c9d6a5bd5b08640.tar.gz
emacs-4ffd0d6b569d252e4e807d4e9c9d6a5bd5b08640.zip
Merge from emacs-23; up to 2010-06-09T17:54:28Z!albinus@detlef.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog31
-rw-r--r--lisp/ChangeLog.142
-rw-r--r--lisp/buff-menu.el2
-rw-r--r--lisp/cedet/ChangeLog8
-rw-r--r--lisp/cedet/ede/pconf.el4
-rw-r--r--lisp/cedet/ede/proj-comp.el4
-rw-r--r--lisp/cedet/ede/proj-elisp.el8
-rw-r--r--lisp/cedet/ede/proj-scheme.el2
-rw-r--r--lisp/image-mode.el14
-rw-r--r--lisp/minibuffer.el3
-rw-r--r--lisp/mouse-drag.el2
-rw-r--r--lisp/mouse.el3
-rw-r--r--lisp/play/doctor.el12
-rw-r--r--lisp/play/mpuz.el42
-rw-r--r--lisp/textmodes/page.el6
15 files changed, 83 insertions, 60 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f422a977ebe..af58ef47b28 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,34 @@
12011-04-23 Juanma Barranquero <lekktu@gmail.com>
2
3 * buff-menu.el (Buffer-menu--buffers): Fix typo in docstring (bug#8535).
4
5 * play/mpuz.el (mpuz-silent): Doc fix.
6 (mpuz-mode-map): Use mapc.
7 (mpuz-put-number-on-board): Rename parameter L to COLUMNS.
8 (mpuz-letter-to-digit, mpuz-check-all-solved, mpuz-create-buffer):
9 Fix typos in docstrings.
10
11 * play/doctor.el (doc$, doctor-$, doctor-read-print, doctor-read-token)
12 (doctor-nounp, doctor-pronounp): Fix typos in docstrings.
13
14 * mouse-drag.el (mouse-drag-throw): Fix typo in docstring.
15
162011-04-23 Chong Yidong <cyd@stupidchicken.com>
17
18 * minibuffer.el (completion--do-completion): Avoid the "Next char
19 not unique" prompt if icomplete-mode is enabled (Bug#5849).
20
21 * mouse.el (mouse-drag-mode-line-1): Make sure that if we push
22 mouse-2 into unread-command-events, it is interpreted correctly.
23
24 * image-mode.el (image-type, image-mode-map, image-minor-mode-map)
25 (image-toggle-display): Doc fix.
26
272011-04-23 Stephen Berman <stephen.berman@gmx.net>
28
29 * textmodes/page.el (what-page): Use line-number-at-pos to
30 calculate line number (Bug#6825).
31
12011-04-22 Juanma Barranquero <lekktu@gmail.com> 322011-04-22 Juanma Barranquero <lekktu@gmail.com>
2 33
3 * eshell/esh-mode.el (find-tag-interactive): Declare function. 34 * eshell/esh-mode.el (find-tag-interactive): Declare function.
diff --git a/lisp/ChangeLog.14 b/lisp/ChangeLog.14
index 7c32b11ec14..c1313cfd16f 100644
--- a/lisp/ChangeLog.14
+++ b/lisp/ChangeLog.14
@@ -4287,7 +4287,7 @@
4287 (proced-descend): New variable. 4287 (proced-descend): New variable.
4288 (proced-sort): New arg descend. 4288 (proced-sort): New arg descend.
4289 (proced-sort-interactive): Repeated calls toggle sort order. 4289 (proced-sort-interactive): Repeated calls toggle sort order.
4290 (proced-format): Accomodate changes of proced-format-alist. 4290 (proced-format): Accommodate changes of proced-format-alist.
4291 Undefined attributes are displayed as "?". 4291 Undefined attributes are displayed as "?".
4292 (proced-process-attributes): New optional arg pid-list. 4292 (proced-process-attributes): New optional arg pid-list.
4293 Ignore processes with empty attribute list. 4293 Ignore processes with empty attribute list.
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index 70befa11d8b..9886b30d122 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -117,7 +117,7 @@ Auto Revert Mode.")
117(defvar Buffer-menu--buffers nil 117(defvar Buffer-menu--buffers nil
118 "If non-nil, list of buffers shown in the current buffer-menu. 118 "If non-nil, list of buffers shown in the current buffer-menu.
119This variable determines whether reverting the buffer lists only 119This variable determines whether reverting the buffer lists only
120this buffers. It affects both manual reverting and reverting by 120these buffers. It affects both manual reverting and reverting by
121Auto Revert Mode.") 121Auto Revert Mode.")
122(make-variable-buffer-local 'Buffer-menu--buffers) 122(make-variable-buffer-local 'Buffer-menu--buffers)
123 123
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog
index a93806b8876..b5ecfdd242f 100644
--- a/lisp/cedet/ChangeLog
+++ b/lisp/cedet/ChangeLog
@@ -1,3 +1,11 @@
12011-04-23 Juanma Barranquero <lekktu@gmail.com>
2
3 * ede/pconf.el (ede-proj-tweak-autoconf, ede-proj-flush-autoconf):
4 * ede/proj-comp.el (ede-proj-tweak-autoconf, ede-proj-flush-autoconf):
5 * ede/proj-elisp.el (ede-proj-tweak-autoconf, ede-proj-flush-autoconf)
6 (ede-proj-tweak-autoconf, ede-proj-flush-autoconf):
7 * ede/proj-scheme.el (ede-proj-tweak-autoconf): Fix typos in docstrings.
8
12011-03-07 Chong Yidong <cyd@stupidchicken.com> 92011-03-07 Chong Yidong <cyd@stupidchicken.com>
2 10
3 * Version 23.3 released. 11 * Version 23.3 released.
diff --git a/lisp/cedet/ede/pconf.el b/lisp/cedet/ede/pconf.el
index 497806c71a3..08fc98728e1 100644
--- a/lisp/cedet/ede/pconf.el
+++ b/lisp/cedet/ede/pconf.el
@@ -159,7 +159,7 @@ don't do it. A value of nil means to just do it.")
159 (ede-proj-configure-synchronize this)) 159 (ede-proj-configure-synchronize this))
160 160
161(defmethod ede-proj-tweak-autoconf ((this ede-proj-target)) 161(defmethod ede-proj-tweak-autoconf ((this ede-proj-target))
162 "Tweak the configure file (current buffer) to accomodate THIS." 162 "Tweak the configure file (current buffer) to accommodate THIS."
163 ;; Check the compilers belonging to THIS, and call the autoconf 163 ;; Check the compilers belonging to THIS, and call the autoconf
164 ;; setup for those compilers. 164 ;; setup for those compilers.
165 (mapc 'ede-proj-tweak-autoconf (ede-proj-compilers this)) 165 (mapc 'ede-proj-tweak-autoconf (ede-proj-compilers this))
@@ -167,7 +167,7 @@ don't do it. A value of nil means to just do it.")
167 ) 167 )
168 168
169(defmethod ede-proj-flush-autoconf ((this ede-proj-target)) 169(defmethod ede-proj-flush-autoconf ((this ede-proj-target))
170 "Flush the configure file (current buffer) to accomodate THIS. 170 "Flush the configure file (current buffer) to accommodate THIS.
171By flushing, remove any cruft that may be in the file. Subsequent 171By flushing, remove any cruft that may be in the file. Subsequent
172calls to `ede-proj-tweak-autoconf' can restore items removed by flush." 172calls to `ede-proj-tweak-autoconf' can restore items removed by flush."
173 nil) 173 nil)
diff --git a/lisp/cedet/ede/proj-comp.el b/lisp/cedet/ede/proj-comp.el
index 418e70fd5e9..401ea15d0d6 100644
--- a/lisp/cedet/ede/proj-comp.el
+++ b/lisp/cedet/ede/proj-comp.el
@@ -236,7 +236,7 @@ This will prevent rules from creating duplicate variables or rules."
236 236
237;;; Methods: 237;;; Methods:
238(defmethod ede-proj-tweak-autoconf ((this ede-compilation-program)) 238(defmethod ede-proj-tweak-autoconf ((this ede-compilation-program))
239 "Tweak the configure file (current buffer) to accomodate THIS." 239 "Tweak the configure file (current buffer) to accommodate THIS."
240 (mapcar 240 (mapcar
241 (lambda (obj) 241 (lambda (obj)
242 (cond ((stringp obj) 242 (cond ((stringp obj)
@@ -248,7 +248,7 @@ This will prevent rules from creating duplicate variables or rules."
248 (oref this autoconf))) 248 (oref this autoconf)))
249 249
250(defmethod ede-proj-flush-autoconf ((this ede-compilation-program)) 250(defmethod ede-proj-flush-autoconf ((this ede-compilation-program))
251 "Flush the configure file (current buffer) to accomodate THIS." 251 "Flush the configure file (current buffer) to accommodate THIS."
252 nil) 252 nil)
253 253
254(defmacro proj-comp-insert-variable-once (varname &rest body) 254(defmacro proj-comp-insert-variable-once (varname &rest body)
diff --git a/lisp/cedet/ede/proj-elisp.el b/lisp/cedet/ede/proj-elisp.el
index 17185b19492..42a20cc4a1a 100644
--- a/lisp/cedet/ede/proj-elisp.el
+++ b/lisp/cedet/ede/proj-elisp.el
@@ -208,7 +208,7 @@ is found, such as a `-version' variable, or the standard header."
208 (error "Don't know how to update load path")))) 208 (error "Don't know how to update load path"))))
209 209
210(defmethod ede-proj-tweak-autoconf ((this ede-proj-target-elisp)) 210(defmethod ede-proj-tweak-autoconf ((this ede-proj-target-elisp))
211 "Tweak the configure file (current buffer) to accomodate THIS." 211 "Tweak the configure file (current buffer) to accommodate THIS."
212 (call-next-method) 212 (call-next-method)
213 ;; Ok, now we have to tweak the autoconf provided `elisp-comp' program. 213 ;; Ok, now we have to tweak the autoconf provided `elisp-comp' program.
214 (let ((ec (ede-expand-filename this "elisp-comp" 'newfile))) 214 (let ((ec (ede-expand-filename this "elisp-comp" 'newfile)))
@@ -232,7 +232,7 @@ is found, such as a `-version' variable, or the standard header."
232 (save-buffer)) ))) 232 (save-buffer)) )))
233 233
234(defmethod ede-proj-flush-autoconf ((this ede-proj-target-elisp)) 234(defmethod ede-proj-flush-autoconf ((this ede-proj-target-elisp))
235 "Flush the configure file (current buffer) to accomodate THIS." 235 "Flush the configure file (current buffer) to accommodate THIS."
236 ;; Remove crufty old paths from elisp-compile 236 ;; Remove crufty old paths from elisp-compile
237 (let ((ec (ede-expand-filename this "elisp-comp" 'newfile)) 237 (let ((ec (ede-expand-filename this "elisp-comp" 'newfile))
238 ) 238 )
@@ -372,11 +372,11 @@ Argument THIS is the target which needs to insert an info file."
372 ) 372 )
373 373
374(defmethod ede-proj-tweak-autoconf ((this ede-proj-target-elisp-autoloads)) 374(defmethod ede-proj-tweak-autoconf ((this ede-proj-target-elisp-autoloads))
375 "Tweak the configure file (current buffer) to accomodate THIS." 375 "Tweak the configure file (current buffer) to accommodate THIS."
376 (error "Autoloads not supported in autoconf yet")) 376 (error "Autoloads not supported in autoconf yet"))
377 377
378(defmethod ede-proj-flush-autoconf ((this ede-proj-target-elisp-autoloads)) 378(defmethod ede-proj-flush-autoconf ((this ede-proj-target-elisp-autoloads))
379 "Flush the configure file (current buffer) to accomodate THIS." 379 "Flush the configure file (current buffer) to accommodate THIS."
380 nil) 380 nil)
381 381
382(provide 'ede/proj-elisp) 382(provide 'ede/proj-elisp)
diff --git a/lisp/cedet/ede/proj-scheme.el b/lisp/cedet/ede/proj-scheme.el
index 2a3ea039a7a..6a08d4fadd1 100644
--- a/lisp/cedet/ede/proj-scheme.el
+++ b/lisp/cedet/ede/proj-scheme.el
@@ -41,7 +41,7 @@
41 "This target consists of scheme files.") 41 "This target consists of scheme files.")
42 42
43(defmethod ede-proj-tweak-autoconf ((this ede-proj-target-scheme)) 43(defmethod ede-proj-tweak-autoconf ((this ede-proj-target-scheme))
44 "Tweak the configure file (current buffer) to accomodate THIS." 44 "Tweak the configure file (current buffer) to accommodate THIS."
45 (autoconf-insert-new-macro "AM_INIT_GUILE_MODULE")) 45 (autoconf-insert-new-macro "AM_INIT_GUILE_MODULE"))
46 46
47(provide 'ede/proj-scheme) 47(provide 'ede/proj-scheme)
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index c99689f33ad..17f006e81a1 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -296,8 +296,7 @@ This function assumes the current frame has only one window."
296;;; Image Mode setup 296;;; Image Mode setup
297 297
298(defvar image-type nil 298(defvar image-type nil
299 "Current image type. 299 "The image type for the current Image mode buffer.")
300This variable is used to display the current image type in the mode line.")
301(make-variable-buffer-local 'image-type) 300(make-variable-buffer-local 'image-type)
302 301
303(defvar image-mode-previous-major-mode nil 302(defvar image-mode-previous-major-mode nil
@@ -324,13 +323,13 @@ This variable is used to display the current image type in the mode line.")
324 (define-key map [remap beginning-of-buffer] 'image-bob) 323 (define-key map [remap beginning-of-buffer] 'image-bob)
325 (define-key map [remap end-of-buffer] 'image-eob) 324 (define-key map [remap end-of-buffer] 'image-eob)
326 map) 325 map)
327 "Major mode keymap for viewing images in Image mode.") 326 "Mode keymap for `image-mode'.")
328 327
329(defvar image-minor-mode-map 328(defvar image-minor-mode-map
330 (let ((map (make-sparse-keymap))) 329 (let ((map (make-sparse-keymap)))
331 (define-key map "\C-c\C-c" 'image-toggle-display) 330 (define-key map "\C-c\C-c" 'image-toggle-display)
332 map) 331 map)
333 "Minor mode keymap for viewing images as text in Image mode.") 332 "Mode keymap for `image-minor-mode'.")
334 333
335(defvar bookmark-make-record-function) 334(defvar bookmark-make-record-function)
336 335
@@ -520,9 +519,10 @@ was inserted."
520 (message "Repeat this command to go back to displaying the file as text")))) 519 (message "Repeat this command to go back to displaying the file as text"))))
521 520
522(defun image-toggle-display () 521(defun image-toggle-display ()
523 "Start or stop displaying an image file as the actual image. 522 "Toggle between image and text display.
524This command toggles between `image-mode-as-text' showing the text of 523If the current buffer is displaying an image file as an image,
525the image file and `image-mode' showing the image as an image." 524call `image-mode-as-text' to switch to text. Otherwise, display
525the image by calling `image-mode'."
526 (interactive) 526 (interactive)
527 (if (image-get-display-property) 527 (if (image-get-display-property)
528 (image-mode-as-text) 528 (image-mode-as-text)
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index e012c324012..4bf06a45238 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -657,7 +657,8 @@ E = after completion we now have an Exact match.
657 (minibuffer-hide-completions)) 657 (minibuffer-hide-completions))
658 ;; Show the completion table, if requested. 658 ;; Show the completion table, if requested.
659 ((not exact) 659 ((not exact)
660 (if (cond ((null completion-show-inline-help) t) 660 (if (cond (icomplete-mode t)
661 ((null completion-show-inline-help) t)
661 ((eq completion-auto-help 'lazy) 662 ((eq completion-auto-help 'lazy)
662 (eq this-command last-command)) 663 (eq this-command last-command))
663 (t completion-auto-help)) 664 (t completion-auto-help))
diff --git a/lisp/mouse-drag.el b/lisp/mouse-drag.el
index 1f16b9935c8..fb6c8b7470f 100644
--- a/lisp/mouse-drag.el
+++ b/lisp/mouse-drag.el
@@ -194,7 +194,7 @@ from the original mouse click to the current mouse location. Try it;
194you'll like it. It's easier to observe than to explain. 194you'll like it. It's easier to observe than to explain.
195 195
196If the mouse is clicked and released in the same place of time we 196If the mouse is clicked and released in the same place of time we
197assume that the user didn't want to scdebugroll but wanted to whatever 197assume that the user didn't want to scroll but wanted to whatever
198mouse-2 used to do, so we pass it through. 198mouse-2 used to do, so we pass it through.
199 199
200Throw scrolling was inspired (but is not identical to) the \"hand\" 200Throw scrolling was inspired (but is not identical to) the \"hand\"
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 87f9be6bf57..124f84d7d73 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -541,6 +541,9 @@ MODE-LINE-P non-nil means dragging a mode line; nil means a header line."
541 ;; a `drag-mouse-1'. In any case `on-link' would have been nulled 541 ;; a `drag-mouse-1'. In any case `on-link' would have been nulled
542 ;; above if there had been any significant mouse movement. 542 ;; above if there had been any significant mouse movement.
543 (when (and on-link (eq 'mouse-1 (car-safe event))) 543 (when (and on-link (eq 'mouse-1 (car-safe event)))
544 ;; If mouse-2 has never been done by the user, it doesn't
545 ;; have the necessary property to be interpreted correctly.
546 (put 'mouse-2 'event-kind 'mouse-click)
544 (push (cons 'mouse-2 (cdr event)) unread-command-events)))))) 547 (push (cons 'mouse-2 (cdr event)) unread-command-events))))))
545 548
546(defun mouse-drag-mode-line (start-event) 549(defun mouse-drag-mode-line (start-event)
diff --git a/lisp/play/doctor.el b/lisp/play/doctor.el
index 02d24afb278..54a5a4ef6c9 100644
--- a/lisp/play/doctor.el
+++ b/lisp/play/doctor.el
@@ -115,11 +115,11 @@
115(defun doc// (x) x) 115(defun doc// (x) x)
116 116
117(defmacro doc$ (what) 117(defmacro doc$ (what)
118 "quoted arg form of doctor-$" 118 "Quoted arg form of doctor-$."
119 `(doctor-$ ',what)) 119 `(doctor-$ ',what))
120 120
121(defun doctor-$ (what) 121(defun doctor-$ (what)
122 "Return the car of a list, rotating the list each time" 122 "Return the car of a list, rotating the list each time."
123 (let* ((vv (symbol-value what)) 123 (let* ((vv (symbol-value what))
124 (first (car vv)) 124 (first (car vv))
125 (ww (append (cdr vv) (list first)))) 125 (ww (append (cdr vv) (list first))))
@@ -832,7 +832,7 @@ Otherwise call the Doctor to parse preceding sentence."
832 (newline arg))) 832 (newline arg)))
833 833
834(defun doctor-read-print nil 834(defun doctor-read-print nil
835 "top level loop" 835 "Top level loop."
836 (interactive) 836 (interactive)
837 (let ((sent (doctor-readin))) 837 (let ((sent (doctor-readin)))
838 (insert "\n") 838 (insert "\n")
@@ -850,7 +850,7 @@ Otherwise call the Doctor to parse preceding sentence."
850 sentence)) 850 sentence))
851 851
852(defun doctor-read-token () 852(defun doctor-read-token ()
853 "read one word from buffer" 853 "Read one word from buffer."
854 (prog1 (intern (downcase (buffer-substring (point) 854 (prog1 (intern (downcase (buffer-substring (point)
855 (progn 855 (progn
856 (forward-word 1) 856 (forward-word 1)
@@ -1020,7 +1020,7 @@ the subject noun, and return the portion of the sentence following it."
1020 nil)))) 1020 nil))))
1021 1021
1022(defun doctor-nounp (x) 1022(defun doctor-nounp (x)
1023 "Returns t if the symbol argument is a noun." 1023 "Return t if the symbol argument is a noun."
1024 (or (doctor-pronounp x) 1024 (or (doctor-pronounp x)
1025 (not (or (doctor-verbp x) 1025 (not (or (doctor-verbp x)
1026 (equal x 'not) 1026 (equal x 'not)
@@ -1028,7 +1028,7 @@ the subject noun, and return the portion of the sentence following it."
1028 (doctor-modifierp x) )) )) 1028 (doctor-modifierp x) )) ))
1029 1029
1030(defun doctor-pronounp (x) 1030(defun doctor-pronounp (x)
1031 "Returns t if the symbol argument is a pronoun." 1031 "Return t if the symbol argument is a pronoun."
1032 (memq x '( 1032 (memq x '(
1033 i me mine myself 1033 i me mine myself
1034 we us ours ourselves ourself 1034 we us ours ourselves ourself
diff --git a/lisp/play/mpuz.el b/lisp/play/mpuz.el
index 5f4ecce31ca..3e1659628f4 100644
--- a/lisp/play/mpuz.el
+++ b/lisp/play/mpuz.el
@@ -39,7 +39,7 @@
39 39
40(defcustom mpuz-silent 'error 40(defcustom mpuz-silent 'error
41 "Set this to nil if you want dings on inputs. 41 "Set this to nil if you want dings on inputs.
42t means never ding, and `error' means only ding on wrong input." 42The value t means never ding, and `error' means only ding on wrong input."
43 :type '(choice (const :tag "No" nil) 43 :type '(choice (const :tag "No" nil)
44 (const :tag "Yes" t) 44 (const :tag "Yes" t)
45 (const :tag "If correct" error)) 45 (const :tag "If correct" error))
@@ -88,33 +88,14 @@ t means never ding, and `error' means only ding on wrong input."
88 88
89(defvar mpuz-mode-map 89(defvar mpuz-mode-map
90 (let ((map (make-sparse-keymap))) 90 (let ((map (make-sparse-keymap)))
91 (define-key map "a" 'mpuz-try-letter) 91 (mapc (lambda (ch)
92 (define-key map "b" 'mpuz-try-letter) 92 (define-key map (char-to-string ch) 'mpuz-try-letter))
93 (define-key map "c" 'mpuz-try-letter) 93 "abcdefghijABCDEFGHIJ")
94 (define-key map "d" 'mpuz-try-letter)
95 (define-key map "e" 'mpuz-try-letter)
96 (define-key map "f" 'mpuz-try-letter)
97 (define-key map "g" 'mpuz-try-letter)
98 (define-key map "h" 'mpuz-try-letter)
99 (define-key map "i" 'mpuz-try-letter)
100 (define-key map "j" 'mpuz-try-letter)
101 (define-key map "A" 'mpuz-try-letter)
102 (define-key map "B" 'mpuz-try-letter)
103 (define-key map "C" 'mpuz-try-letter)
104 (define-key map "D" 'mpuz-try-letter)
105 (define-key map "E" 'mpuz-try-letter)
106 (define-key map "F" 'mpuz-try-letter)
107 (define-key map "G" 'mpuz-try-letter)
108 (define-key map "H" 'mpuz-try-letter)
109 (define-key map "I" 'mpuz-try-letter)
110 (define-key map "J" 'mpuz-try-letter)
111 (define-key map "\C-g" 'mpuz-offer-abort) 94 (define-key map "\C-g" 'mpuz-offer-abort)
112 (define-key map "?" 'describe-mode) 95 (define-key map "?" 'describe-mode)
113 map) 96 map)
114 "Local keymap to use in Mult Puzzle.") 97 "Local keymap to use in Mult Puzzle.")
115 98
116
117
118(defun mpuz-mode () 99(defun mpuz-mode ()
119 "Multiplication puzzle mode. 100 "Multiplication puzzle mode.
120 101
@@ -171,7 +152,7 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]."
171 "A permutation from [0..9] to [0..9].") 152 "A permutation from [0..9] to [0..9].")
172 153
173(defvar mpuz-letter-to-digit (make-vector 10 0) 154(defvar mpuz-letter-to-digit (make-vector 10 0)
174 "The inverse of mpuz-digit-to-letter.") 155 "The inverse of `mpuz-digit-to-letter'.")
175 156
176(defmacro mpuz-to-digit (letter) 157(defmacro mpuz-to-digit (letter)
177 (list 'aref 'mpuz-letter-to-digit letter)) 158 (list 'aref 'mpuz-letter-to-digit letter))
@@ -198,17 +179,16 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]."
198(defvar mpuz-board (make-vector 10 nil) 179(defvar mpuz-board (make-vector 10 nil)
199 "The board associates to any digit the list of squares where it appears.") 180 "The board associates to any digit the list of squares where it appears.")
200 181
201(defun mpuz-put-number-on-board (number row &rest l) 182(defun mpuz-put-number-on-board (number row &rest columns)
202 "Put (last digit of) NUMBER on ROW and COLUMNS of the puzzle board." 183 "Put (last digit of) NUMBER on ROW and COLUMNS of the puzzle board."
203 (let (digit) 184 (let (digit)
204 (while l 185 (dolist (column columns)
205 (setq digit (% number 10) 186 (setq digit (% number 10)
206 number (/ number 10)) 187 number (/ number 10))
207 (aset mpuz-board digit `((,row . ,(car l)) ,@(aref mpuz-board digit))) 188 (aset mpuz-board digit `((,row . ,column) ,@(aref mpuz-board digit))))))
208 (setq l (cdr l)))))
209 189
210(defun mpuz-check-all-solved (&optional row col) 190(defun mpuz-check-all-solved (&optional row col)
211 "Check whether all digits have been solved. Return t if yes." 191 "Check whether all digits have been solved. Return t if yes."
212 (catch 'solved 192 (catch 'solved
213 (let (A B1 B2 C D E squares) 193 (let (A B1 B2 C D E squares)
214 (and mpuz-solve-when-trivial 194 (and mpuz-solve-when-trivial
@@ -294,7 +274,7 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]."
294 "The general picture of the puzzle screen, as a string.") 274 "The general picture of the puzzle screen, as a string.")
295 275
296(defun mpuz-create-buffer () 276(defun mpuz-create-buffer ()
297 "Create (or recreate) the puzzle buffer. Return it." 277 "Create (or recreate) the puzzle buffer. Return it."
298 (let ((buf (get-buffer-create "*Mult Puzzle*")) 278 (let ((buf (get-buffer-create "*Mult Puzzle*"))
299 (face '(face mpuz-text)) 279 (face '(face mpuz-text))
300 buffer-read-only) 280 buffer-read-only)
diff --git a/lisp/textmodes/page.el b/lisp/textmodes/page.el
index 1de67615252..95ba7ebd86f 100644
--- a/lisp/textmodes/page.el
+++ b/lisp/textmodes/page.el
@@ -156,9 +156,9 @@ thus showing a page other than the one point was originally in."
156 (if (= (match-beginning 0) (match-end 0)) 156 (if (= (match-beginning 0) (match-end 0))
157 (forward-char 1)) 157 (forward-char 1))
158 (setq count (1+ count))) 158 (setq count (1+ count)))
159 (message "Page %d, line %d" 159 (message "Page %d, line %d" count (line-number-at-pos opoint))))))
160 count 160
161 (1+ (count-lines (point) opoint))))))) 161
162 162
163;;; Place `provide' at end of file. 163;;; Place `provide' at end of file.
164(provide 'page) 164(provide 'page)