Mercurial > hg > xemacs-beta
comparison lisp/simple.el @ 771:943eaba38521
[xemacs-hg @ 2002-03-13 08:51:24 by ben]
The big ben-mule-21-5 check-in!
Various files were added and deleted. See CHANGES-ben-mule.
There are still some test suite failures. No crashes, though.
Many of the failures have to do with problems in the test suite itself
rather than in the actual code. I'll be addressing these in the next
day or so -- none of the test suite failures are at all critical.
Meanwhile I'll be trying to address the biggest issues -- i.e. build
or run failures, which will almost certainly happen on various platforms.
All comments should be sent to ben@xemacs.org -- use a Cc: if necessary
when sending to mailing lists. There will be pre- and post- tags,
something like
pre-ben-mule-21-5-merge-in, and
post-ben-mule-21-5-merge-in.
author | ben |
---|---|
date | Wed, 13 Mar 2002 08:54:06 +0000 |
parents | 023b83f4e54b |
children | 79940b592197 |
comparison
equal
deleted
inserted
replaced
770:336a418893b5 | 771:943eaba38521 |
---|---|
1 ;;; simple.el --- basic editing commands for XEmacs | 1 ;;; simple.el --- basic editing commands for XEmacs |
2 | 2 |
3 ;; Copyright (C) 1985-7, 1993-5, 1997 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1985-7, 1993-5, 1997 Free Software Foundation, Inc. |
4 ;; Copyright (C) 1995 Tinker Systems and INS Engineering Corp. | 4 ;; Copyright (C) 1995 Tinker Systems and INS Engineering Corp. |
5 ;; Copyright (C) 2000 Ben Wing. | 5 ;; Copyright (C) 2000, 2001, 2002 Ben Wing. |
6 | 6 |
7 ;; Maintainer: XEmacs Development Team | 7 ;; Maintainer: XEmacs Development Team |
8 ;; Keywords: lisp, extensions, internal, dumped | 8 ;; Keywords: lisp, extensions, internal, dumped |
9 | 9 |
10 ;; This file is part of XEmacs. | 10 ;; This file is part of XEmacs. |
900 (goto-char 1) | 900 (goto-char 1) |
901 (if (eq selective-display t) | 901 (if (eq selective-display t) |
902 (re-search-forward "[\n\C-m]" nil 'end (1- line)) | 902 (re-search-forward "[\n\C-m]" nil 'end (1- line)) |
903 (forward-line (1- line))))) | 903 (forward-line (1- line))))) |
904 | 904 |
905 ;Put this on C-x u, so we can force that rather than C-_ into startup msg | 905 ;[Put this on C-x u, so we can force that rather than C-_ into startup msg] |
906 ;No more, stop pandering to TTY users. | |
906 (define-function 'advertised-undo 'undo) | 907 (define-function 'advertised-undo 'undo) |
907 | 908 |
908 (defun undo (&optional count) | 909 (defun undo (&optional count) |
909 "Undo some previous changes. | 910 "Undo some previous changes. |
910 Repeat this command to undo more changes. | 911 Repeat this command to undo more changes. |
3044 | 3045 |
3045 This function is only called during auto-filling of a comment section. | 3046 This function is only called during auto-filling of a comment section. |
3046 The function should take a single optional argument which is a flag | 3047 The function should take a single optional argument which is a flag |
3047 indicating whether soft newlines should be inserted.") | 3048 indicating whether soft newlines should be inserted.") |
3048 | 3049 |
3049 ;; defined in mule-base/mule-category.el | |
3050 (defvar word-across-newline) | |
3051 | |
3052 ;; This function is the auto-fill-function of a buffer | 3050 ;; This function is the auto-fill-function of a buffer |
3053 ;; when Auto-Fill mode is enabled. | 3051 ;; when Auto-Fill mode is enabled. |
3054 ;; It returns t if it really did any work. | 3052 ;; It returns t if it really did any work. |
3055 ;; XEmacs: This function is totally different. | 3053 ;; XEmacs: This function is totally different. |
3056 (defun do-auto-fill () | 3054 (defun do-auto-fill () |
3064 (fill-point | 3062 (fill-point |
3065 (let ((opoint (point)) | 3063 (let ((opoint (point)) |
3066 bounce | 3064 bounce |
3067 (re-break-point ;; Kinsoku processing | 3065 (re-break-point ;; Kinsoku processing |
3068 (if (featurep 'mule) | 3066 (if (featurep 'mule) |
3069 (concat "[ \t\n]\\|" word-across-newline | 3067 (with-boundp 'word-across-newline |
3070 ".\\|." word-across-newline) | 3068 (concat "[ \t\n]\\|" word-across-newline |
3069 ".\\|." word-across-newline)) | |
3071 "[ \t\n]")) | 3070 "[ \t\n]")) |
3072 (first t)) | 3071 (first t)) |
3073 (save-excursion | 3072 (save-excursion |
3074 (move-to-column (1+ fill-column)) | 3073 (move-to-column (1+ fill-column)) |
3075 ;; Move back to a word boundary. | 3074 ;; Move back to a word boundary. |
3474 (not (eq overwrite-mode 'overwrite-mode-binary)) | 3473 (not (eq overwrite-mode 'overwrite-mode-binary)) |
3475 (> (prefix-numeric-value arg) 0)) | 3474 (> (prefix-numeric-value arg) 0)) |
3476 'overwrite-mode-binary)) | 3475 'overwrite-mode-binary)) |
3477 (redraw-modeline)) | 3476 (redraw-modeline)) |
3478 | 3477 |
3479 (defcustom line-number-mode nil | 3478 (defcustom line-number-mode t |
3480 "*Non-nil means display line number in modeline." | 3479 "*Non-nil means display line number in modeline." |
3481 :type 'boolean | 3480 :type 'boolean |
3482 :group 'editing-basics) | 3481 :group 'editing-basics) |
3483 | 3482 |
3484 (defun line-number-mode (arg) | 3483 (defun line-number-mode (arg) |
3490 (setq line-number-mode | 3489 (setq line-number-mode |
3491 (if (null arg) (not line-number-mode) | 3490 (if (null arg) (not line-number-mode) |
3492 (> (prefix-numeric-value arg) 0))) | 3491 (> (prefix-numeric-value arg) 0))) |
3493 (redraw-modeline)) | 3492 (redraw-modeline)) |
3494 | 3493 |
3495 (defcustom column-number-mode nil | 3494 (defcustom column-number-mode t |
3496 "*Non-nil means display column number in mode line." | 3495 "*Non-nil means display column number in mode line." |
3497 :type 'boolean | 3496 :type 'boolean |
3498 :group 'editing-basics) | 3497 :group 'editing-basics) |
3499 | 3498 |
3500 (defun column-number-mode (arg) | 3499 (defun column-number-mode (arg) |