diff options
| author | Jim Blandy | 1992-08-04 04:15:43 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-08-04 04:15:43 +0000 |
| commit | e8a57935cbb4ccde7f621eeeca22141e5a5327b4 (patch) | |
| tree | cb90c678fa9e79cf41c1b6a22d62b620aaf0e07f | |
| parent | 0b030df78b499fde5f8dd3f20dd24a2e002fe4ee (diff) | |
| download | emacs-e8a57935cbb4ccde7f621eeeca22141e5a5327b4.tar.gz emacs-e8a57935cbb4ccde7f621eeeca22141e5a5327b4.zip | |
entered into RCS
| -rw-r--r-- | lisp/ehelp.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/edt.el | 114 | ||||
| -rw-r--r-- | lisp/gnus.el | 18 | ||||
| -rw-r--r-- | lisp/gud.el | 16 | ||||
| -rw-r--r-- | lisp/hexl.el | 2 | ||||
| -rw-r--r-- | lisp/informat.el | 2 | ||||
| -rw-r--r-- | lisp/kermit.el | 7 | ||||
| -rw-r--r-- | lisp/ledit.el | 4 | ||||
| -rw-r--r-- | lisp/mail/mail-extr.el | 6 | ||||
| -rw-r--r-- | lisp/mail/mailalias.el | 2 | ||||
| -rw-r--r-- | lisp/mail/mailpost.el | 3 | ||||
| -rw-r--r-- | lisp/medit.el | 10 | ||||
| -rw-r--r-- | lisp/play/gomoku.el | 29 | ||||
| -rw-r--r-- | lisp/play/life.el | 66 | ||||
| -rw-r--r-- | lisp/sun-curs.el | 4 | ||||
| -rw-r--r-- | lisp/terminal.el | 6 | ||||
| -rw-r--r-- | lisp/textmodes/two-column.el | 27 |
17 files changed, 148 insertions, 170 deletions
diff --git a/lisp/ehelp.el b/lisp/ehelp.el index e6f1c393d15..050a6cc48a6 100644 --- a/lisp/ehelp.el +++ b/lisp/ehelp.el | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | (if electric-help-map | 31 | (if electric-help-map |
| 32 | () | 32 | () |
| 33 | (let ((map (make-keymap))) | 33 | (let ((map (make-keymap))) |
| 34 | (fillarray map 'electric-help-undefined) | 34 | (fillarray (car (cdr map)) 'electric-help-undefined) |
| 35 | (define-key map (char-to-string meta-prefix-char) (copy-keymap map)) | 35 | (define-key map (char-to-string meta-prefix-char) (copy-keymap map)) |
| 36 | (define-key map (char-to-string help-char) 'electric-help-help) | 36 | (define-key map (char-to-string help-char) 'electric-help-help) |
| 37 | (define-key map "?" 'electric-help-help) | 37 | (define-key map "?" 'electric-help-help) |
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index 6b2603c8c5f..45c6047651b 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el | |||
| @@ -117,8 +117,6 @@ | |||
| 117 | 117 | ||
| 118 | ;;; Code: | 118 | ;;; Code: |
| 119 | 119 | ||
| 120 | (require 'keypad) | ||
| 121 | |||
| 122 | (defvar edt-last-deleted-lines "" | 120 | (defvar edt-last-deleted-lines "" |
| 123 | "Last text deleted by an EDT emulation `line-delete' command.") | 121 | "Last text deleted by an EDT emulation `line-delete' command.") |
| 124 | (defvar edt-last-deleted-words "" | 122 | (defvar edt-last-deleted-words "" |
| @@ -292,26 +290,26 @@ Accepts a prefix argument for the number of paragraphs." | |||
| 292 | "Set EDT Advance mode so keypad commands move forward." | 290 | "Set EDT Advance mode so keypad commands move forward." |
| 293 | (interactive) | 291 | (interactive) |
| 294 | (setq edt-direction-string " ADVANCE") | 292 | (setq edt-direction-string " ADVANCE") |
| 295 | (define-key function-keymap "\C-c" 'isearch-forward) ; PF3 | 293 | (global-set-key [kp-f1] 'isearch-forward) |
| 296 | (define-key function-keymap "8" 'scroll-window-up) ; "8" | 294 | (global-set-key [kp-8] 'scroll-window-up) |
| 297 | (define-key function-keymap "7" 'next-paragraph) ; "7" | 295 | (global-set-key [kp-7] 'next-paragraph) |
| 298 | (define-key function-keymap "1" 'forward-to-word) ; "1" | 296 | (global-set-key [kp-1] 'forward-to-word) |
| 299 | (define-key function-keymap "2" 'next-end-of-line) ; "2" | 297 | (global-set-key [kp-2] 'next-end-of-line) |
| 300 | (define-key function-keymap "3" 'forward-char) ; "3" | 298 | (global-set-key [kp-3] 'forward-char) |
| 301 | (define-key function-keymap "0" 'forward-line) ; "0" | 299 | (global-set-key [kp-0] 'forward-line) |
| 302 | (update-mode-line)) | 300 | (update-mode-line)) |
| 303 | 301 | ||
| 304 | (defun backup-direction () | 302 | (defun backup-direction () |
| 305 | "Set EDT Backup mode so keypad commands move backward." | 303 | "Set EDT Backup mode so keypad commands move backward." |
| 306 | (interactive) | 304 | (interactive) |
| 307 | (setq edt-direction-string " BACKUP") | 305 | (setq edt-direction-string " BACKUP") |
| 308 | (define-key function-keymap "\C-c" 'isearch-backward) ; PF3 | 306 | (global-set-key [kp-f3] 'isearch-backward) |
| 309 | (define-key function-keymap "8" 'scroll-window-down) ; "8" | 307 | (global-set-key [kp-8] 'scroll-window-down) |
| 310 | (define-key function-keymap "7" 'previous-paragraph) ; "7" | 308 | (global-set-key [kp-7] 'previous-paragraph) |
| 311 | (define-key function-keymap "1" 'backward-to-word) ; "1" | 309 | (global-set-key [kp-1] 'backward-to-word) |
| 312 | (define-key function-keymap "2" 'previous-end-of-line) ; "2" | 310 | (global-set-key [kp-2] 'previous-end-of-line) |
| 313 | (define-key function-keymap "3" 'backward-char) ; "3" | 311 | (global-set-key [kp-3] 'backward-char) |
| 314 | (define-key function-keymap "0" 'backward-line) ; "0" | 312 | (global-set-key [kp-9] 'backward-line) |
| 315 | (update-mode-line)) | 313 | (update-mode-line)) |
| 316 | 314 | ||
| 317 | (defun edt-beginning-of-window () | 315 | (defun edt-beginning-of-window () |
| @@ -366,13 +364,10 @@ and mark-paragraph for other modes." | |||
| 366 | (defun edt-emulation-on () | 364 | (defun edt-emulation-on () |
| 367 | "Emulate DEC's EDT editor. | 365 | "Emulate DEC's EDT editor. |
| 368 | Note that many keys are rebound; including nearly all keypad keys. | 366 | Note that many keys are rebound; including nearly all keypad keys. |
| 369 | Use \\[edt-emulation-off] to undo all rebindings except the keypad keys. | 367 | Use \\[edt-emulation-off] to undo all rebindings except the keypad keys." |
| 370 | Note that this function does not work if called directly from the .emacs file. | ||
| 371 | Instead, the .emacs file should do \"(setq term-setup-hook 'edt-emulation-on)\" | ||
| 372 | Then this function will be called at the time when it will work." | ||
| 373 | (interactive) | 368 | (interactive) |
| 374 | (advance-direction) | 369 | (advance-direction) |
| 375 | (edt-bind-gold-keypad) ;Must do this *after* $TERM.el is loaded | 370 | (edt-bind-gold-keypad) |
| 376 | (setq edt-mode-old-c-\\ (lookup-key global-map "\C-\\")) | 371 | (setq edt-mode-old-c-\\ (lookup-key global-map "\C-\\")) |
| 377 | (global-set-key "\C-\\" 'quoted-insert) | 372 | (global-set-key "\C-\\" 'quoted-insert) |
| 378 | (setq edt-mode-old-delete (lookup-key global-map "\177")) | 373 | (setq edt-mode-old-delete (lookup-key global-map "\177")) |
| @@ -395,33 +390,24 @@ The keys redefined by \\[edt-emulation-on] are given their old definitions." | |||
| 395 | (define-key lisp-mode-map "\177" edt-mode-old-lisp-delete) ;"Delete" | 390 | (define-key lisp-mode-map "\177" edt-mode-old-lisp-delete) ;"Delete" |
| 396 | (global-set-key "\C-j" edt-mode-old-linefeed)) ;"LineFeed" | 391 | (global-set-key "\C-j" edt-mode-old-linefeed)) ;"LineFeed" |
| 397 | 392 | ||
| 398 | (define-key function-keymap "u" 'previous-line) ;Up arrow | ||
| 399 | (define-key function-keymap "d" 'next-line) ;down arrow | ||
| 400 | (define-key function-keymap "l" 'backward-char) ;right arrow | ||
| 401 | (define-key function-keymap "r" 'forward-char) ;left arrow | ||
| 402 | (define-key function-keymap "h" 'edt-beginning-of-window) ;home | ||
| 403 | (define-key function-keymap "\C-b" 'describe-key) ;PF2 | ||
| 404 | (define-key function-keymap "\C-d" 'delete-current-line);PF4 | ||
| 405 | (define-key function-keymap "9" 'append-to-buffer) ;9 keypad key, etc. | ||
| 406 | (define-key function-keymap "-" 'delete-current-word) | ||
| 407 | (define-key function-keymap "4" 'advance-direction) | ||
| 408 | (define-key function-keymap "5" 'backup-direction) | ||
| 409 | (define-key function-keymap "6" 'kill-region) | ||
| 410 | (define-key function-keymap "," 'delete-current-char) | ||
| 411 | (define-key function-keymap "." 'set-mark-command) | ||
| 412 | (define-key function-keymap "e" 'other-window) ;enter key | ||
| 413 | (define-key function-keymap "\C-a" 'GOLD-prefix) ;PF1 ("gold") | ||
| 414 | |||
| 415 | (fset 'GOLD-prefix GOLD-map) | 393 | (fset 'GOLD-prefix GOLD-map) |
| 416 | 394 | ||
| 417 | (defvar GOLD-map (make-keymap) | 395 | (defvar GOLD-map (make-keymap) |
| 418 | "`GOLD-map' maps the function keys on the VT100 keyboard preceeded | 396 | "`GOLD-map' maps the function keys on the VT100 keyboard preceeded |
| 419 | by the PF1 key. GOLD is the ASCII the 7-bit escape sequence <ESC>OP.") | 397 | by the PF1 key. GOLD is the ASCII the 7-bit escape sequence <ESC>OP.") |
| 420 | 398 | ||
| 421 | (defun define-keypad-key (keymap function-keymap-slot definition) | 399 | (global-set-key [home] 'edt-beginning-of-window) |
| 422 | (let ((function-key-sequence (function-key-sequence function-keymap-slot))) | 400 | (global-set-key [kp-f2] 'describe-key) |
| 423 | (if function-key-sequence | 401 | (global-set-key [kp-f4] 'delete-current-line) |
| 424 | (define-key keymap function-key-sequence definition)))) | 402 | (global-set-key [kp-9] 'append-to-buffer) |
| 403 | (global-set-key [kp-subtract] 'delete-current-word) | ||
| 404 | (global-set-key [kp-4] 'advance-direction) | ||
| 405 | (global-set-key [kp-5] 'backup-direction) | ||
| 406 | (global-set-key [kp-6] 'kill-region) | ||
| 407 | (global-set-key [kp-separator] 'delete-current-char) | ||
| 408 | (global-set-key [kp-decimal] 'set-mark-command) | ||
| 409 | (global-set-key [kp-enter] 'other-window) | ||
| 410 | (global-set-key [kp-f1] 'GOLD-prefix) | ||
| 425 | 411 | ||
| 426 | ;;Bind GOLD/Keyboard keys | 412 | ;;Bind GOLD/Keyboard keys |
| 427 | 413 | ||
| @@ -465,28 +451,28 @@ by the PF1 key. GOLD is the ASCII the 7-bit escape sequence <ESC>OP.") | |||
| 465 | 451 | ||
| 466 | ;Bind GOLD/Keypad keys | 452 | ;Bind GOLD/Keypad keys |
| 467 | (defun edt-bind-gold-keypad () | 453 | (defun edt-bind-gold-keypad () |
| 468 | (define-keypad-key GOLD-map ?u 'edt-line-to-top-of-window) ;"up-arrow" | 454 | (define-key GOLD-map [up] 'edt-line-to-top-of-window) |
| 469 | (define-keypad-key GOLD-map ?d 'edt-line-to-bottom-of-window) ;"down-arrow" | 455 | (define-key GOLD-map [down] 'edt-line-to-bottom-of-window) |
| 470 | (define-keypad-key GOLD-map ?l 'backward-sentence) ;"left-arrow" | 456 | (define-key GOLD-map [left] 'backward-sentence) |
| 471 | (define-keypad-key GOLD-map ?r 'forward-sentence) ;"right-arrow" | 457 | (define-key GOLD-map [right] 'forward-sentence) |
| 472 | (define-keypad-key GOLD-map ?\C-a 'mark-section-wisely) ;Gold "PF1" | 458 | (define-key GOLD-map [kp-f1] 'mark-section-wisely) |
| 473 | (define-keypad-key GOLD-map ?\C-b 'describe-function) ;Help "PF2" | 459 | (define-key GOLD-map [kp-f2] 'describe-function) |
| 474 | (define-keypad-key GOLD-map ?\C-c 'occur) ;Find "PF3" | 460 | (define-key GOLD-map [kp-f3] 'occur) |
| 475 | (define-keypad-key GOLD-map ?\C-d 'undelete-lines) ;Und Line "PF4" | 461 | (define-key GOLD-map [kp-f4] 'undelete-lines) |
| 476 | (define-keypad-key GOLD-map ?0 'open-line) ;Open L "0" | 462 | (define-key GOLD-map [kp-0] 'open-line) |
| 477 | (define-keypad-key GOLD-map ?1 'case-flip-character) ;Chgcase "1" | 463 | (define-key GOLD-map [kp-1] 'case-flip-character) |
| 478 | (define-keypad-key GOLD-map ?2 'delete-to-eol) ;Del EOL "2" | 464 | (define-key GOLD-map [kp-2] 'delete-to-eol) |
| 479 | (define-keypad-key GOLD-map ?3 'copy-region-as-kill) ;Copy "3" | 465 | (define-key GOLD-map [kp-3] 'copy-region-as-kill) |
| 480 | (define-keypad-key GOLD-map ?4 'move-to-end) ;Bottom "4" | 466 | (define-key GOLD-map [kp-4] 'move-to-end) |
| 481 | (define-keypad-key GOLD-map ?5 'move-to-beginning) ;Top "5" | 467 | (define-key GOLD-map [kp-5] 'move-to-beginning) |
| 482 | (define-keypad-key GOLD-map ?6 'yank) ;Paste "6" | 468 | (define-key GOLD-map [kp-6] 'yank) |
| 483 | (define-keypad-key GOLD-map ?7 'execute-extended-command) ;Command "7" | 469 | (define-key GOLD-map [kp-7] 'execute-extended-command) |
| 484 | (define-keypad-key GOLD-map ?8 'indent-or-fill-region) ;Fill "8" | 470 | (define-key GOLD-map [kp-8] 'indent-or-fill-region) |
| 485 | (define-keypad-key GOLD-map ?9 'replace-regexp) ;Replace "9" | 471 | (define-key GOLD-map [kp-9] 'replace-regexp) |
| 486 | (define-keypad-key GOLD-map ?- 'undelete-words) ;UND word "-" | 472 | (define-key GOLD-map [kp-subtract] 'undelete-words) |
| 487 | (define-keypad-key GOLD-map ?, 'undelete-chars) ;UND Char "," | 473 | (define-key GOLD-map [kp-separator] 'undelete-chars) |
| 488 | (define-keypad-key GOLD-map ?. 'redraw-display) ;Reset Window "." | 474 | (define-key GOLD-map [kp-decimal] 'redraw-display) |
| 489 | (define-keypad-key GOLD-map ?e 'shell-command)) ;"ENTER" | 475 | (define-key GOLD-map [kp-enter] 'shell-command)) |
| 490 | 476 | ||
| 491 | ;; Make direction of motion show in mode line | 477 | ;; Make direction of motion show in mode line |
| 492 | ;; while EDT emulation is turned on. | 478 | ;; while EDT emulation is turned on. |
diff --git a/lisp/gnus.el b/lisp/gnus.el index ad80ec2372b..a0e70095b71 100644 --- a/lisp/gnus.el +++ b/lisp/gnus.el | |||
| @@ -954,7 +954,7 @@ Various hooks for customization: | |||
| 954 | (setq mode-line-buffer-identification "GNUS: List of Newsgroups") | 954 | (setq mode-line-buffer-identification "GNUS: List of Newsgroups") |
| 955 | (setq mode-line-process nil) | 955 | (setq mode-line-process nil) |
| 956 | (use-local-map gnus-Group-mode-map) | 956 | (use-local-map gnus-Group-mode-map) |
| 957 | (buffer-flush-undo (current-buffer)) | 957 | (buffer-disable-undo (current-buffer)) |
| 958 | (setq buffer-read-only t) ;Disable modification | 958 | (setq buffer-read-only t) ;Disable modification |
| 959 | (run-hooks 'gnus-Group-mode-hook)) | 959 | (run-hooks 'gnus-Group-mode-hook)) |
| 960 | 960 | ||
| @@ -1729,7 +1729,7 @@ Various hooks for customization: | |||
| 1729 | (cons (list 'gnus-show-threads " Thread") minor-mode-alist))) | 1729 | (cons (list 'gnus-show-threads " Thread") minor-mode-alist))) |
| 1730 | (gnus-Subject-set-mode-line) | 1730 | (gnus-Subject-set-mode-line) |
| 1731 | (use-local-map gnus-Subject-mode-map) | 1731 | (use-local-map gnus-Subject-mode-map) |
| 1732 | (buffer-flush-undo (current-buffer)) | 1732 | (buffer-disable-undo (current-buffer)) |
| 1733 | (setq buffer-read-only t) ;Disable modification | 1733 | (setq buffer-read-only t) ;Disable modification |
| 1734 | (setq truncate-lines t) ;Stop line folding | 1734 | (setq truncate-lines t) ;Stop line folding |
| 1735 | (setq selective-display t) | 1735 | (setq selective-display t) |
| @@ -3216,7 +3216,7 @@ is non-nil. The hook is intended to customize Rmail mode." | |||
| 3216 | (digbuf (get-buffer-create gnus-Digest-buffer)) | 3216 | (digbuf (get-buffer-create gnus-Digest-buffer)) |
| 3217 | (mail-header-separator "")) | 3217 | (mail-header-separator "")) |
| 3218 | (set-buffer digbuf) | 3218 | (set-buffer digbuf) |
| 3219 | (buffer-flush-undo (current-buffer)) | 3219 | (buffer-disable-undo (current-buffer)) |
| 3220 | (setq buffer-read-only nil) | 3220 | (setq buffer-read-only nil) |
| 3221 | (erase-buffer) | 3221 | (erase-buffer) |
| 3222 | (insert-buffer-substring artbuf) | 3222 | (insert-buffer-substring artbuf) |
| @@ -3652,7 +3652,7 @@ Various hooks for customization: | |||
| 3652 | (setq page-delimiter gnus-page-delimiter) | 3652 | (setq page-delimiter gnus-page-delimiter) |
| 3653 | (make-local-variable 'mail-header-separator) | 3653 | (make-local-variable 'mail-header-separator) |
| 3654 | (setq mail-header-separator "") ;For caesar function. | 3654 | (setq mail-header-separator "") ;For caesar function. |
| 3655 | (buffer-flush-undo (current-buffer)) | 3655 | (buffer-disable-undo (current-buffer)) |
| 3656 | (setq buffer-read-only t) ;Disable modification | 3656 | (setq buffer-read-only t) ;Disable modification |
| 3657 | (run-hooks 'gnus-Article-mode-hook)) | 3657 | (run-hooks 'gnus-Article-mode-hook)) |
| 3658 | 3658 | ||
| @@ -4617,7 +4617,7 @@ ROT47 will be performed for Japanese text in any case." | |||
| 4617 | (kill-buffer file-buffer)) | 4617 | (kill-buffer file-buffer)) |
| 4618 | (error "Output file does not exist"))) | 4618 | (error "Output file does not exist"))) |
| 4619 | (set-buffer tmpbuf) | 4619 | (set-buffer tmpbuf) |
| 4620 | (buffer-flush-undo (current-buffer)) | 4620 | (buffer-disable-undo (current-buffer)) |
| 4621 | (erase-buffer) | 4621 | (erase-buffer) |
| 4622 | (insert-buffer-substring artbuf) | 4622 | (insert-buffer-substring artbuf) |
| 4623 | (gnus-convert-article-to-rmail) | 4623 | (gnus-convert-article-to-rmail) |
| @@ -4655,7 +4655,7 @@ ROT47 will be performed for Japanese text in any case." | |||
| 4655 | (tmpbuf (get-buffer-create " *GNUS-output*"))) | 4655 | (tmpbuf (get-buffer-create " *GNUS-output*"))) |
| 4656 | (save-excursion | 4656 | (save-excursion |
| 4657 | (set-buffer tmpbuf) | 4657 | (set-buffer tmpbuf) |
| 4658 | (buffer-flush-undo (current-buffer)) | 4658 | (buffer-disable-undo (current-buffer)) |
| 4659 | (erase-buffer) | 4659 | (erase-buffer) |
| 4660 | (insert-buffer-substring artbuf) | 4660 | (insert-buffer-substring artbuf) |
| 4661 | ;; Append newline at end of the buffer as separator, and then | 4661 | ;; Append newline at end of the buffer as separator, and then |
| @@ -4724,7 +4724,7 @@ Run gnus-Open-server-hook just before opening news server." | |||
| 4724 | ;; If no server name is given, local host is assumed. | 4724 | ;; If no server name is given, local host is assumed. |
| 4725 | (if (string-equal gnus-nntp-server "") | 4725 | (if (string-equal gnus-nntp-server "") |
| 4726 | (setq gnus-nntp-server (system-name))) | 4726 | (setq gnus-nntp-server (system-name))) |
| 4727 | (cond ((string= gnus-nntp-server) "::") | 4727 | (cond ((string= gnus-nntp-server "::") |
| 4728 | (require 'nnspool) | 4728 | (require 'nnspool) |
| 4729 | (gnus-define-access-method 'nnspool) | 4729 | (gnus-define-access-method 'nnspool) |
| 4730 | (message "Looking up local news spool...")) | 4730 | (message "Looking up local news spool...")) |
| @@ -5701,7 +5701,7 @@ If optional argument RAWFILE is non-nil, the raw startup file is read." | |||
| 5701 | ;; Prepare .newsrc buffer. | 5701 | ;; Prepare .newsrc buffer. |
| 5702 | (set-buffer (find-file-noselect newsrc-file)) | 5702 | (set-buffer (find-file-noselect newsrc-file)) |
| 5703 | ;; It is not so good idea turning off undo. | 5703 | ;; It is not so good idea turning off undo. |
| 5704 | ;;(buffer-flush-undo (current-buffer)) | 5704 | ;;(buffer-disable-undo (current-buffer)) |
| 5705 | ;; Load quick .newsrc to restore gnus-marked-assoc and | 5705 | ;; Load quick .newsrc to restore gnus-marked-assoc and |
| 5706 | ;; gnus-killed-assoc even if gnus-newsrc-assoc is out of date. | 5706 | ;; gnus-killed-assoc even if gnus-newsrc-assoc is out of date. |
| 5707 | (condition-case nil | 5707 | (condition-case nil |
| @@ -5895,7 +5895,7 @@ If optional argument RAWFILE is non-nil, the raw startup file is read." | |||
| 5895 | (save-buffer)) | 5895 | (save-buffer)) |
| 5896 | ;; Quickly loadable .newsrc. | 5896 | ;; Quickly loadable .newsrc. |
| 5897 | (set-buffer (get-buffer-create " *GNUS-newsrc*")) | 5897 | (set-buffer (get-buffer-create " *GNUS-newsrc*")) |
| 5898 | (buffer-flush-undo (current-buffer)) | 5898 | (buffer-disable-undo (current-buffer)) |
| 5899 | (erase-buffer) | 5899 | (erase-buffer) |
| 5900 | (gnus-gnus-to-quick-newsrc-format) | 5900 | (gnus-gnus-to-quick-newsrc-format) |
| 5901 | (let ((make-backup-files nil) | 5901 | (let ((make-backup-files nil) |
diff --git a/lisp/gud.el b/lisp/gud.el index aadb3c10cc3..ec07ce0e28e 100644 --- a/lisp/gud.el +++ b/lisp/gud.el | |||
| @@ -43,7 +43,7 @@ | |||
| 43 | ;;; Code: | 43 | ;;; Code: |
| 44 | 44 | ||
| 45 | (require 'comint) | 45 | (require 'comint) |
| 46 | (require 'tags) | 46 | (require 'etags) |
| 47 | 47 | ||
| 48 | ;; ====================================================================== | 48 | ;; ====================================================================== |
| 49 | ;; the overloading mechanism | 49 | ;; the overloading mechanism |
| @@ -196,9 +196,9 @@ and source-file directory for your debugger." | |||
| 196 | "Run sdb on program FILE in buffer *gud-FILE*. | 196 | "Run sdb on program FILE in buffer *gud-FILE*. |
| 197 | The directory containing FILE becomes the initial working directory | 197 | The directory containing FILE becomes the initial working directory |
| 198 | and source-file directory for your debugger." | 198 | and source-file directory for your debugger." |
| 199 | (interactive "fRun sdb on file: ") | ||
| 199 | (if (not (and (boundp 'tags-file-name) (file-exists-p tags-file-name))) | 200 | (if (not (and (boundp 'tags-file-name) (file-exists-p tags-file-name))) |
| 200 | (error "The sdb support requires a valid tags table to work.")) | 201 | (error "The sdb support requires a valid tags table to work.")) |
| 201 | (interactive "fRun sdb on file: ") | ||
| 202 | (gud-overload-functions '((gud-debugger-startup . gud-sdb-debugger-startup) | 202 | (gud-overload-functions '((gud-debugger-startup . gud-sdb-debugger-startup) |
| 203 | (gud-marker-filter . gud-sdb-marker-filter) | 203 | (gud-marker-filter . gud-sdb-marker-filter) |
| 204 | (gud-visit-file . gud-sdb-visit-file) | 204 | (gud-visit-file . gud-sdb-visit-file) |
| @@ -525,20 +525,20 @@ Obeying it means displaying in another window the specified file and line." | |||
| 525 | (defun gud-read-address() | 525 | (defun gud-read-address() |
| 526 | "Return a string containing the core-address found in the buffer at point." | 526 | "Return a string containing the core-address found in the buffer at point." |
| 527 | (save-excursion | 527 | (save-excursion |
| 528 | (let ((pt (dot)) found begin) | 528 | (let ((pt (point)) found begin) |
| 529 | (setq found (if (search-backward "0x" (- pt 7) t)(dot))) | 529 | (setq found (if (search-backward "0x" (- pt 7) t)(point))) |
| 530 | (cond (found (forward-char 2) | 530 | (cond (found (forward-char 2) |
| 531 | (setq result | 531 | (setq result |
| 532 | (buffer-substring found | 532 | (buffer-substring found |
| 533 | (progn (re-search-forward "[^0-9a-f]") | 533 | (progn (re-search-forward "[^0-9a-f]") |
| 534 | (forward-char -1) | 534 | (forward-char -1) |
| 535 | (dot))))) | 535 | (point))))) |
| 536 | (t (setq begin (progn (re-search-backward "[^0-9]") (forward-char 1) | 536 | (t (setq begin (progn (re-search-backward "[^0-9]") (forward-char 1) |
| 537 | (dot))) | 537 | (point))) |
| 538 | (forward-char 1) | 538 | (forward-char 1) |
| 539 | (re-search-forward "[^0-9]") | 539 | (re-search-forward "[^0-9]") |
| 540 | (forward-char -1) | 540 | (forward-char -1) |
| 541 | (buffer-substring begin (dot))))))) | 541 | (buffer-substring begin (point))))))) |
| 542 | 542 | ||
| 543 | 543 | ||
| 544 | (defun send-gud-command (arg) | 544 | (defun send-gud-command (arg) |
| @@ -559,7 +559,7 @@ member of gud-commands." | |||
| 559 | (if (stringp comm) (format comm addr) (funcall comm addr)))) | 559 | (if (stringp comm) (format comm addr) (funcall comm addr)))) |
| 560 | (t (setq comm addr))) | 560 | (t (setq comm addr))) |
| 561 | (switch-to-buffer current-gud-buffer) | 561 | (switch-to-buffer current-gud-buffer) |
| 562 | (goto-char (dot-max)) | 562 | (goto-char (point-max)) |
| 563 | (insert-string comm))) | 563 | (insert-string comm))) |
| 564 | 564 | ||
| 565 | ;;; gud.el ends here | 565 | ;;; gud.el ends here |
diff --git a/lisp/hexl.el b/lisp/hexl.el index 13ce5f5259f..f9e564f3fa2 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -382,7 +382,7 @@ If there is byte at the target address move to the last byte in that line." | |||
| 382 | "Move vertically down ARG lines [16 bytes] (up if ARG negative) in hexl-mode. | 382 | "Move vertically down ARG lines [16 bytes] (up if ARG negative) in hexl-mode. |
| 383 | If there is no byte at the target address move to the last byte in that line." | 383 | If there is no byte at the target address move to the last byte in that line." |
| 384 | (interactive "p") | 384 | (interactive "p") |
| 385 | (hexl-goto-address (let ((address (+ (hexl-current-address) (* arg 16)) t)) | 385 | (hexl-goto-address (let ((address (+ (hexl-current-address) (* arg 16)))) |
| 386 | (if (and (< arg 0) (< address 0)) | 386 | (if (and (< arg 0) (< address 0)) |
| 387 | (progn (message "Out of hexl region.") | 387 | (progn (message "Out of hexl region.") |
| 388 | (setq address | 388 | (setq address |
diff --git a/lisp/informat.el b/lisp/informat.el index 4296b2fcd3e..8851558ae0f 100644 --- a/lisp/informat.el +++ b/lisp/informat.el | |||
| @@ -398,7 +398,7 @@ For example, invoke \"emacs -batch -f batch-info-validate $info/ ~/*.info\"" | |||
| 398 | ((< (point-max) 30000) | 398 | ((< (point-max) 30000) |
| 399 | (message "%s too small to bother tagifying" file)) | 399 | (message "%s too small to bother tagifying" file)) |
| 400 | (t | 400 | (t |
| 401 | (Info-tagify file)))) | 401 | (Info-tagify)))) |
| 402 | (let ((loss-name " *problems in info file*")) | 402 | (let ((loss-name " *problems in info file*")) |
| 403 | (message "Checking validity of info file %s..." file) | 403 | (message "Checking validity of info file %s..." file) |
| 404 | (if (get-buffer loss-name) | 404 | (if (get-buffer loss-name) |
diff --git a/lisp/kermit.el b/lisp/kermit.el index e894f908bd2..66f9c18414a 100644 --- a/lisp/kermit.el +++ b/lisp/kermit.el | |||
| @@ -100,7 +100,8 @@ | |||
| 100 | (defun kermit-send-input-cr () | 100 | (defun kermit-send-input-cr () |
| 101 | "Like \\[comint-send-input] but end the line with carriage-return." | 101 | "Like \\[comint-send-input] but end the line with carriage-return." |
| 102 | (interactive) | 102 | (interactive) |
| 103 | (comint-send-input "\r")) | 103 | (comint-send-input) |
| 104 | (comint-send-string (get-buffer-process (current-buffer)) "\r")) | ||
| 104 | 105 | ||
| 105 | ;; This is backwards of what makes sense, but ... | 106 | ;; This is backwards of what makes sense, but ... |
| 106 | (define-key shell-mode-map "\n" 'kermit-send-input-cr) | 107 | (define-key shell-mode-map "\n" 'kermit-send-input-cr) |
| @@ -127,11 +128,11 @@ In this state, use LFD to send a line and end it with a carriage-return." | |||
| 127 | (set-buffer (process-buffer proc)) | 128 | (set-buffer (process-buffer proc)) |
| 128 | (goto-char beg) | 129 | (goto-char beg) |
| 129 | (insert-before-markers str) | 130 | (insert-before-markers str) |
| 130 | (while (re-search-backware "[\r\C-a]+" beg t) | 131 | (while (re-search-backward "[\r\C-a]+" beg t) |
| 131 | (replace-match ""))))) | 132 | (replace-match ""))))) |
| 132 | 133 | ||
| 133 | (defun kermit-clean-on () | 134 | (defun kermit-clean-on () |
| 134 | "Delete all null characters and ^M's from the kermit output." | 135 | "Delete all null characters and ^M's from the kermit output. |
| 135 | Note that another (perhaps better) way to do this is to use the | 136 | Note that another (perhaps better) way to do this is to use the |
| 136 | command `kermit | tr -d '\\015''." | 137 | command `kermit | tr -d '\\015''." |
| 137 | (interactive) | 138 | (interactive) |
diff --git a/lisp/ledit.el b/lisp/ledit.el index d3f3311d74c..fa7892545cf 100644 --- a/lisp/ledit.el +++ b/lisp/ledit.el | |||
| @@ -114,8 +114,8 @@ | |||
| 114 | (defun ledit-setup () | 114 | (defun ledit-setup () |
| 115 | "Set up key bindings for the Lisp/Emacs interface." | 115 | "Set up key bindings for the Lisp/Emacs interface." |
| 116 | (if (not ledit-mode-map) | 116 | (if (not ledit-mode-map) |
| 117 | (progn (setq ledit-mode-map (make-sparse-keymap)) | 117 | (progn (setq ledit-mode-map (nconc (make-sparse-keymap) |
| 118 | (lisp-mode-commands ledit-mode-map))) | 118 | shared-lisp-mode-map)))) |
| 119 | (define-key ledit-mode-map "\e\^d" 'ledit-save-defun) | 119 | (define-key ledit-mode-map "\e\^d" 'ledit-save-defun) |
| 120 | (define-key ledit-mode-map "\e\^r" 'ledit-save-region) | 120 | (define-key ledit-mode-map "\e\^r" 'ledit-save-region) |
| 121 | (define-key ledit-mode-map "\^xz" 'ledit-go-to-lisp) | 121 | (define-key ledit-mode-map "\^xz" 'ledit-go-to-lisp) |
diff --git a/lisp/mail/mail-extr.el b/lisp/mail/mail-extr.el index 93adba292f3..00ff0056eb8 100644 --- a/lisp/mail/mail-extr.el +++ b/lisp/mail/mail-extr.el | |||
| @@ -430,7 +430,7 @@ Returns a list of the form (FULL-NAME CANONICAL-ADDRESS)." | |||
| 430 | 430 | ||
| 431 | (save-excursion | 431 | (save-excursion |
| 432 | (set-buffer extraction-buffer) | 432 | (set-buffer extraction-buffer) |
| 433 | (buffer-flush-undo extraction-buffer) | 433 | (buffer-disable-undo extraction-buffer) |
| 434 | (set-syntax-table address-syntax-table) | 434 | (set-syntax-table address-syntax-table) |
| 435 | (widen) | 435 | (widen) |
| 436 | (erase-buffer) | 436 | (erase-buffer) |
| @@ -697,7 +697,7 @@ Returns a list of the form (FULL-NAME CANONICAL-ADDRESS)." | |||
| 697 | 697 | ||
| 698 | (set-buffer canonicalization-buffer) | 698 | (set-buffer canonicalization-buffer) |
| 699 | 699 | ||
| 700 | (buffer-flush-undo canonicalization-buffer) | 700 | (buffer-disable-undo canonicalization-buffer) |
| 701 | (set-syntax-table address-syntax-table) | 701 | (set-syntax-table address-syntax-table) |
| 702 | (setq case-fold-search nil) | 702 | (setq case-fold-search nil) |
| 703 | 703 | ||
| @@ -1081,7 +1081,7 @@ Returns a list of the form (FULL-NAME CANONICAL-ADDRESS)." | |||
| 1081 | ) | 1081 | ) |
| 1082 | (save-excursion | 1082 | (save-excursion |
| 1083 | (set-buffer variant-buffer) | 1083 | (set-buffer variant-buffer) |
| 1084 | (buffer-flush-undo variant-buffer) | 1084 | (buffer-disable-undo variant-buffer) |
| 1085 | (set-syntax-table address-text-syntax-table) | 1085 | (set-syntax-table address-text-syntax-table) |
| 1086 | (widen) | 1086 | (widen) |
| 1087 | (erase-buffer) | 1087 | (erase-buffer) |
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el index 67f5b073039..9e95f63d9d3 100644 --- a/lisp/mail/mailalias.el +++ b/lisp/mail/mailalias.el | |||
| @@ -173,4 +173,6 @@ DEFINITION can be one or more mail addresses separated by commas." | |||
| 173 | (rplacd tem definition) | 173 | (rplacd tem definition) |
| 174 | (setq mail-aliases (cons (cons name definition) mail-aliases))))) | 174 | (setq mail-aliases (cons (cons name definition) mail-aliases))))) |
| 175 | 175 | ||
| 176 | (provide 'mailalias) | ||
| 177 | |||
| 176 | ;;; mailalias.el ends here | 178 | ;;; mailalias.el ends here |
diff --git a/lisp/mail/mailpost.el b/lisp/mail/mailpost.el index 9cc7e16ef2d..5ff33478698 100644 --- a/lisp/mail/mailpost.el +++ b/lisp/mail/mailpost.el | |||
| @@ -16,6 +16,9 @@ | |||
| 16 | 16 | ||
| 17 | ;;; Code: | 17 | ;;; Code: |
| 18 | 18 | ||
| 19 | (require 'mailalias) | ||
| 20 | (require 'sendmail) | ||
| 21 | |||
| 19 | ;; (setq send-mail-function 'post-mail-send-it) | 22 | ;; (setq send-mail-function 'post-mail-send-it) |
| 20 | 23 | ||
| 21 | (defun post-mail-send-it () | 24 | (defun post-mail-send-it () |
diff --git a/lisp/medit.el b/lisp/medit.el index d93817203ab..3e8a5be059a 100644 --- a/lisp/medit.el +++ b/lisp/medit.el | |||
| @@ -63,21 +63,21 @@ | |||
| 63 | 63 | ||
| 64 | (defun medit-zap-define-to-mdl () | 64 | (defun medit-zap-define-to-mdl () |
| 65 | "Return to MDL with surrounding or previous toplevel MDL object." | 65 | "Return to MDL with surrounding or previous toplevel MDL object." |
| 66 | (indetarctive) | 66 | (interactive) |
| 67 | (medit-save-defun) | 67 | (medit-save-define) |
| 68 | (medit-go-to-mdl)) | 68 | (medit-goto-mdl)) |
| 69 | 69 | ||
| 70 | (defun medit-zap-region-mdl (start end) | 70 | (defun medit-zap-region-mdl (start end) |
| 71 | "Return to MDL with current region." | 71 | "Return to MDL with current region." |
| 72 | (interactive) | 72 | (interactive) |
| 73 | (medit-save-region start end) | 73 | (medit-save-region start end) |
| 74 | (medit-go-to-mdl)) | 74 | (medit-goto-mdl)) |
| 75 | 75 | ||
| 76 | (defun medit-zap-buffer () | 76 | (defun medit-zap-buffer () |
| 77 | "Return to MDL with current buffer." | 77 | "Return to MDL with current buffer." |
| 78 | (interactive) | 78 | (interactive) |
| 79 | (medit-save-buffer) | 79 | (medit-save-buffer) |
| 80 | (medit-go-to-mdl)) | 80 | (medit-goto-mdl)) |
| 81 | 81 | ||
| 82 | (defun medit-goto-mdl () | 82 | (defun medit-goto-mdl () |
| 83 | "Return from Emacs to superior MDL, sending saved code. | 83 | "Return from Emacs to superior MDL, sending saved code. |
diff --git a/lisp/play/gomoku.el b/lisp/play/gomoku.el index 75344c8096f..2ba013a2fa9 100644 --- a/lisp/play/gomoku.el +++ b/lisp/play/gomoku.el | |||
| @@ -120,29 +120,12 @@ | |||
| 120 | (define-key gomoku-mode-map "\C-cr" 'gomoku-human-resigns) ; C-C R | 120 | (define-key gomoku-mode-map "\C-cr" 'gomoku-human-resigns) ; C-C R |
| 121 | (define-key gomoku-mode-map "\C-ce" 'gomoku-emacs-plays) ; C-C E | 121 | (define-key gomoku-mode-map "\C-ce" 'gomoku-emacs-plays) ; C-C E |
| 122 | 122 | ||
| 123 | ;; Key bindings for "function" keys. If your terminal has such | 123 | (define-key gomoku-mode-map [up] 'gomoku-move-up) |
| 124 | ;; keys, make sure they are declared through the function-keymap | 124 | (define-key gomoku-mode-map [down] 'gomoku-move-down) |
| 125 | ;; keymap (see file keypad.el). | 125 | (define-key gomoku-mode-map [left] 'gomoku-move-left) |
| 126 | ;; One problem with keypad.el is that the function-key-sequence | 126 | (define-key gomoku-mode-map [right] 'gomoku-move-right) |
| 127 | ;; function is really slow, so slow that you may want to comment out | 127 | (define-key gomoku-mode-map [kp-enter] 'gomoku-human-plays) |
| 128 | ;; the following lines ... | 128 | (define-key gomoku-mode-map [insert] 'gomoku-human-plays)) |
| 129 | (if (featurep 'keypad) | ||
| 130 | (let (keys) | ||
| 131 | (if (setq keys (function-key-sequence ?u)) ; Up Arrow | ||
| 132 | (define-key gomoku-mode-map keys 'gomoku-move-up)) | ||
| 133 | (if (setq keys (function-key-sequence ?d)) ; Down Arrow | ||
| 134 | (define-key gomoku-mode-map keys 'gomoku-move-down)) | ||
| 135 | (if (setq keys (function-key-sequence ?l)) ; Left Arrow | ||
| 136 | (define-key gomoku-mode-map keys 'gomoku-move-left)) | ||
| 137 | (if (setq keys (function-key-sequence ?r)) ; Right Arrow | ||
| 138 | (define-key gomoku-mode-map keys 'gomoku-move-right)) | ||
| 139 | ;; (if (setq keys (function-key-sequence ?e)) ; Enter | ||
| 140 | ;; (define-key gomoku-mode-map keys 'gomoku-human-plays)) | ||
| 141 | ;; (if (setq keys (function-key-sequence ?I)) ; Insert | ||
| 142 | ;; (define-key gomoku-mode-map keys 'gomoku-human-plays)) | ||
| 143 | ))) | ||
| 144 | |||
| 145 | |||
| 146 | 129 | ||
| 147 | (defun gomoku-mode () | 130 | (defun gomoku-mode () |
| 148 | "Major mode for playing Gomoku against Emacs. | 131 | "Major mode for playing Gomoku against Emacs. |
diff --git a/lisp/play/life.el b/lisp/play/life.el index 1dce91c2840..fbaf2b7ec7b 100644 --- a/lisp/play/life.el +++ b/lisp/play/life.el | |||
| @@ -54,34 +54,29 @@ | |||
| 54 | ;; because the compiler will convert them to constants, which should | 54 | ;; because the compiler will convert them to constants, which should |
| 55 | ;; eval faster than symbols. | 55 | ;; eval faster than symbols. |
| 56 | ;; | 56 | ;; |
| 57 | ;; The (require) wrapping forces the compiler to eval these macros at | ||
| 58 | ;; compile time. This would not be necessary if we did not use macros | ||
| 59 | ;; inside of macros, which the compiler doesn't seem to check for. | ||
| 60 | ;; | ||
| 61 | ;; Don't change any of the life-* macro constants unless you thoroughly | 57 | ;; Don't change any of the life-* macro constants unless you thoroughly |
| 62 | ;; understand the `life-grim-reaper' function. | 58 | ;; understand the `life-grim-reaper' function. |
| 63 | (require | 59 | |
| 64 | (progn | 60 | (defmacro life-life-char () ?@) |
| 65 | (defmacro life-life-char () ?@) | 61 | (defmacro life-death-char () (1+ (life-life-char))) |
| 66 | (defmacro life-death-char () (1+ (life-life-char))) | 62 | (defmacro life-birth-char () 3) |
| 67 | (defmacro life-birth-char () 3) | 63 | (defmacro life-void-char () ?\ ) |
| 68 | (defmacro life-void-char () ?\ ) | 64 | |
| 69 | 65 | (defmacro life-life-string () (char-to-string (life-life-char))) | |
| 70 | (defmacro life-life-string () (char-to-string (life-life-char))) | 66 | (defmacro life-death-string () (char-to-string (life-death-char))) |
| 71 | (defmacro life-death-string () (char-to-string (life-death-char))) | 67 | (defmacro life-birth-string () (char-to-string (life-birth-char))) |
| 72 | (defmacro life-birth-string () (char-to-string (life-birth-char))) | 68 | (defmacro life-void-string () (char-to-string (life-void-char))) |
| 73 | (defmacro life-void-string () (char-to-string (life-void-char))) | 69 | (defmacro life-not-void-regexp () (concat "[^" (life-void-string) "\n]")) |
| 74 | (defmacro life-not-void-regexp () (concat "[^" (life-void-string) "\n]")) | 70 | |
| 75 | 71 | ;; try to optimize the (goto-char (point-min)) & (goto-char (point-max)) | |
| 76 | ;; try to optimize the (goto-char (point-min)) & (goto-char (point-max)) | 72 | ;; idioms. This depends on goto-char's not griping if we underrshoot |
| 77 | ;; idioms. This depends on goto-char's not griping if we underrshoot | 73 | ;; or overshoot beginning or end of buffer. |
| 78 | ;; or overshoot beginning or end of buffer. | 74 | (defmacro goto-beginning-of-buffer () '(goto-char 1)) |
| 79 | (defmacro goto-beginning-of-buffer () '(goto-char 1)) | 75 | (defmacro maxint () (lsh (lsh (lognot 0) 1) -1)) |
| 80 | (defmacro maxint () (lsh (lsh (lognot 0) 1) -1)) | 76 | (defmacro goto-end-of-buffer () '(goto-char (maxint))) |
| 81 | (defmacro goto-end-of-buffer () '(goto-char (maxint))) | 77 | |
| 82 | 78 | (defmacro increment (variable) (list 'setq variable (list '1+ variable))) | |
| 83 | (defmacro increment (variable) (list 'setq variable (list '1+ variable))) | 79 | |
| 84 | 'life)) | ||
| 85 | 80 | ||
| 86 | ;; list of numbers that tell how many characters to move to get to | 81 | ;; list of numbers that tell how many characters to move to get to |
| 87 | ;; each of a cell's eight neighbors. | 82 | ;; each of a cell's eight neighbors. |
| @@ -98,6 +93,7 @@ | |||
| 98 | 93 | ||
| 99 | (defun abs (n) (if (< n 0) (- n) n)) | 94 | (defun abs (n) (if (< n 0) (- n) n)) |
| 100 | 95 | ||
| 96 | ;;;###autoload | ||
| 101 | (defun life (&optional sleeptime) | 97 | (defun life (&optional sleeptime) |
| 102 | "Run Conway's Life simulation. | 98 | "Run Conway's Life simulation. |
| 103 | The starting pattern is randomly selected. Prefix arg (optional first | 99 | The starting pattern is randomly selected. Prefix arg (optional first |
| @@ -107,12 +103,13 @@ generations (this defaults to 1)." | |||
| 107 | (or sleeptime (setq sleeptime 1)) | 103 | (or sleeptime (setq sleeptime 1)) |
| 108 | (life-setup) | 104 | (life-setup) |
| 109 | (life-display-generation sleeptime) | 105 | (life-display-generation sleeptime) |
| 110 | (while t | 106 | (catch 'life-exit |
| 111 | (let ((inhibit-quit t)) | 107 | (while t |
| 112 | (life-grim-reaper) | 108 | (let ((inhibit-quit t)) |
| 113 | (life-expand-plane-if-needed) | 109 | (life-grim-reaper) |
| 114 | (life-increment-generation) | 110 | (life-expand-plane-if-needed) |
| 115 | (life-display-generation sleeptime)))) | 111 | (life-increment-generation) |
| 112 | (life-display-generation sleeptime))))) | ||
| 116 | 113 | ||
| 117 | (fset 'life-mode 'life) | 114 | (fset 'life-mode 'life) |
| 118 | (put 'life-mode 'mode-class 'special) | 115 | (put 'life-mode 'mode-class 'special) |
| @@ -267,7 +264,10 @@ generations (this defaults to 1)." | |||
| 267 | (defun life-display-generation (sleeptime) | 264 | (defun life-display-generation (sleeptime) |
| 268 | (goto-char life-window-start) | 265 | (goto-char life-window-start) |
| 269 | (recenter 0) | 266 | (recenter 0) |
| 270 | (sit-for sleeptime)) | 267 | |
| 268 | ;; Redisplay; if the user has hit a key, exit the loop. | ||
| 269 | (or (eq t (sit-for sleeptime)) | ||
| 270 | (throw 'life-exit nil))) | ||
| 271 | 271 | ||
| 272 | (defun life-extinct-quit () | 272 | (defun life-extinct-quit () |
| 273 | (life-display-generation 0) | 273 | (life-display-generation 0) |
diff --git a/lisp/sun-curs.el b/lisp/sun-curs.el index 238fdc4e847..e0a530de7bd 100644 --- a/lisp/sun-curs.el +++ b/lisp/sun-curs.el | |||
| @@ -28,6 +28,8 @@ | |||
| 28 | ;;; | 28 | ;;; |
| 29 | ;;; 9-dec-86 Jeff Peck, Sun Microsystems Inc. <peck@sun.com> | 29 | ;;; 9-dec-86 Jeff Peck, Sun Microsystems Inc. <peck@sun.com> |
| 30 | 30 | ||
| 31 | (require 'cl) | ||
| 32 | |||
| 31 | (defvar sc::cursors nil "List of known cursors") | 33 | (defvar sc::cursors nil "List of known cursors") |
| 32 | 34 | ||
| 33 | (defmacro defcursor (name x y string) | 35 | (defmacro defcursor (name x y string) |
| @@ -96,7 +98,7 @@ Otherwise, ICON should be a vector or the name of a vector of [x y 32-chars]" | |||
| 96 | (defun sc::pic-ins-at-mouse (char) | 98 | (defun sc::pic-ins-at-mouse (char) |
| 97 | "Picture insert char at mouse location" | 99 | "Picture insert char at mouse location" |
| 98 | (mouse-move-point *mouse-window* (min 15 *mouse-x*) (min 15 *mouse-y*)) | 100 | (mouse-move-point *mouse-window* (min 15 *mouse-x*) (min 15 *mouse-y*)) |
| 99 | (move-to-column-force (1+ (min 15 (current-column)))) | 101 | (move-to-column (1+ (min 15 (current-column))) t) |
| 100 | (delete-char -1) | 102 | (delete-char -1) |
| 101 | (insert char) | 103 | (insert char) |
| 102 | (sc::goto-hotspot)) | 104 | (sc::goto-hotspot)) |
diff --git a/lisp/terminal.el b/lisp/terminal.el index e8909927c3d..35d5022aaf6 100644 --- a/lisp/terminal.el +++ b/lisp/terminal.el | |||
| @@ -70,7 +70,7 @@ performance.") | |||
| 70 | (if terminal-map | 70 | (if terminal-map |
| 71 | nil | 71 | nil |
| 72 | (let ((map (make-keymap))) | 72 | (let ((map (make-keymap))) |
| 73 | (fillarray map 'te-pass-through) | 73 | (fillarray (car (cdr map)) 'te-pass-through) |
| 74 | ;(define-key map "\C-l" | 74 | ;(define-key map "\C-l" |
| 75 | ; '(lambda () (interactive) (te-pass-through) (redraw-display))) | 75 | ; '(lambda () (interactive) (te-pass-through) (redraw-display))) |
| 76 | (setq terminal-map map))) | 76 | (setq terminal-map map))) |
| @@ -80,7 +80,7 @@ performance.") | |||
| 80 | nil | 80 | nil |
| 81 | (let ((map (make-keymap))) | 81 | (let ((map (make-keymap))) |
| 82 | ;(fillarray map 'te-escape-extended-command-unread) | 82 | ;(fillarray map 'te-escape-extended-command-unread) |
| 83 | (fillarray map 'undefined) | 83 | (fillarray (car (cdr map)) 'undefined) |
| 84 | (let ((s "0")) | 84 | (let ((s "0")) |
| 85 | (while (<= (aref s 0) ?9) | 85 | (while (<= (aref s 0) ?9) |
| 86 | (define-key map s 'digit-argument) | 86 | (define-key map s 'digit-argument) |
| @@ -127,7 +127,7 @@ performance.") | |||
| 127 | (if terminal-more-break-map | 127 | (if terminal-more-break-map |
| 128 | nil | 128 | nil |
| 129 | (let ((map (make-keymap))) | 129 | (let ((map (make-keymap))) |
| 130 | (fillarray map 'te-more-break-unread) | 130 | (fillarray (car (cdr map)) 'te-more-break-unread) |
| 131 | (define-key map (char-to-string help-char) 'te-more-break-help) | 131 | (define-key map (char-to-string help-char) 'te-more-break-help) |
| 132 | (define-key map " " 'te-more-break-resume) | 132 | (define-key map " " 'te-more-break-resume) |
| 133 | (define-key map "\C-l" 'redraw-display) | 133 | (define-key map "\C-l" 'redraw-display) |
diff --git a/lisp/textmodes/two-column.el b/lisp/textmodes/two-column.el index 9fe6706b751..ee3477d9e31 100644 --- a/lisp/textmodes/two-column.el +++ b/lisp/textmodes/two-column.el | |||
| @@ -126,8 +126,8 @@ | |||
| 126 | ;; An^stata^u tri `autoload' kaj tri | Instead of three `autoload' and | 126 | ;; An^stata^u tri `autoload' kaj tri | Instead of three `autoload' and |
| 127 | ;; `global-set-key' vi povas uzi la | three `global-set-key' you can use | 127 | ;; `global-set-key' vi povas uzi la | three `global-set-key' you can use |
| 128 | ;; jenon en via dataro ~/.emacs, por | the following in your file | 128 | ;; jenon en via dataro ~/.emacs, por | the following in your file |
| 129 | ;; memstare ^car^gi la modalon: | ~/.emacs, to automatically load | 129 | ;; memstare ^car^gi la modalon: | ~/.emacs, to automatically load |
| 130 | ;; | the mode: | 130 | ;; | the mode: |
| 131 | 131 | ||
| 132 | ;; (global-set-key "\C-x6" | 132 | ;; (global-set-key "\C-x6" |
| 133 | ;; '(lambda () (interactive) | 133 | ;; '(lambda () (interactive) |
| @@ -138,24 +138,25 @@ | |||
| 138 | ;; Se vi ^satus havi la dukolumnajn | If you'd like to have the | 138 | ;; Se vi ^satus havi la dukolumnajn | If you'd like to have the |
| 139 | ;; ordonojn je funkciklavo <f2>, vi | two-column commands on function | 139 | ;; ordonojn je funkciklavo <f2>, vi | two-column commands on function |
| 140 | ;; povas uzi la jenon en via dataro | key <f2>, you can use the | 140 | ;; povas uzi la jenon en via dataro | key <f2>, you can use the |
| 141 | ;; ~/.emacs: | following in your file ~/.emacs: | 141 | ;; ~/.emacs: | following in your file ~/.emacs: |
| 142 | 142 | ||
| 143 | ;; (define-key function-keymap "\^b" | 143 | ;; (global-set-key [f2] (function |
| 144 | ;; '(lambda () (interactive) | 144 | ;; (lambda () |
| 145 | ;; (load-library "two-column") | 145 | ;; (interactive) |
| 146 | ;; (define-key function-keymap "\^b" tc-mode-map) | 146 | ;; (load-library "two-column") |
| 147 | ;; (call-interactively | 147 | ;; (global-set-key [f2] tc-mode-map) |
| 148 | ;; (cdr (assq (read-char) tc-mode-map))))) | 148 | ;; (call-interactively |
| 149 | ;; (cdr (assq (read-char) tc-mode-map)))))) | ||
| 149 | 150 | ||
| 150 | ;; In addition to two-column editing of text, for example for writing a | 151 | ;; In addition to two-column editing of text, for example for writing a |
| 151 | ;; bilingual text side-by-side as shown below in the file's prolog, other | 152 | ;; bilingual text side-by-side as shown below in the file's prolog, other |
| 152 | ;; interesting uses have been found for this minor mode: | 153 | ;; interesting uses have been found for this minor mode: |
| 153 | ;; | 154 | ;; |
| 154 | ;; | 155 | ;; |
| 155 | ;; You can separate the columns with {+} C-x 6 u or <f2> u if you prefer | 156 | ;; You can separate the columns with {+} C-x 6 u or <f2> u if you prefer |
| 156 | ;; any string that pleases you, by {+} handles these with a prefix argument | 157 | ;; any string that pleases you, by {+} handles these with a prefix argument |
| 157 | ;; setting tc-separator. For {+} that enables you to declare the | 158 | ;; setting tc-separator. For {+} that enables you to declare the |
| 158 | ;; example "{+} " if you like to {+} desired length of such a string. | 159 | ;; example "{+} " if you like to {+} desired length of such a string. |
| 159 | ;; amuse yourself. | 160 | ;; amuse yourself. |
| 160 | ;; | 161 | ;; |
| 161 | ;; | 162 | ;; |