diff options
| author | Richard M. Stallman | 1997-03-22 03:54:14 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-03-22 03:54:14 +0000 |
| commit | 1cd24721c27168c7c4e7084bea061ed1653d5ed8 (patch) | |
| tree | 2820cef87fd38331eb2b278dc0af039281fe8917 | |
| parent | ff9c168275d2c088e5aa0b3a0f84e9d3be62b93b (diff) | |
| download | emacs-1cd24721c27168c7c4e7084bea061ed1653d5ed8.tar.gz emacs-1cd24721c27168c7c4e7084bea061ed1653d5ed8.zip | |
(newline): Be more conservative about when to use the optimization.
(universal-argument-more): If previous arg is `-', change that to -4.
| -rw-r--r-- | lisp/simple.el | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 715660b174f..7f8aa1deff0 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -39,8 +39,20 @@ In Auto Fill mode, if no numeric arg, break the preceding line if it's long." | |||
| 39 | ;; the end of the previous line. | 39 | ;; the end of the previous line. |
| 40 | (let ((flag (and (not (bobp)) | 40 | (let ((flag (and (not (bobp)) |
| 41 | (bolp) | 41 | (bolp) |
| 42 | ;; Make sure no functions want to be told about | ||
| 43 | ;; the range of the changes. | ||
| 44 | (not after-change-function) | ||
| 45 | (not before-change-function) | ||
| 46 | (not after-change-functions) | ||
| 47 | (not before-change-functions) | ||
| 42 | ;; Make sure there are no markers here. | 48 | ;; Make sure there are no markers here. |
| 43 | (not (buffer-has-markers-at (1- (point)))) | 49 | (not (buffer-has-markers-at (1- (point)))) |
| 50 | ;; Make sure no text properties want to know | ||
| 51 | ;; where the change was. | ||
| 52 | (not (get-char-property (1- (point)) 'modification-hooks)) | ||
| 53 | (not (get-char-property (1- (point)) 'insert-behind-hooks)) | ||
| 54 | (or (eobp) | ||
| 55 | (not (get-char-property (point) 'insert-in-front-hooks))) | ||
| 44 | ;; Make sure the newline before point isn't intangible. | 56 | ;; Make sure the newline before point isn't intangible. |
| 45 | (not (get-char-property (1- (point)) 'intangible)) | 57 | (not (get-char-property (1- (point)) 'intangible)) |
| 46 | ;; Make sure the newline before point isn't read-only. | 58 | ;; Make sure the newline before point isn't read-only. |
| @@ -1003,8 +1015,10 @@ These commands include \\[set-mark-command] and \\[start-kbd-macro]." | |||
| 1003 | (interactive "P") | 1015 | (interactive "P") |
| 1004 | (if (consp arg) | 1016 | (if (consp arg) |
| 1005 | (setq prefix-arg (list (* 4 (car arg)))) | 1017 | (setq prefix-arg (list (* 4 (car arg)))) |
| 1006 | (setq prefix-arg arg) | 1018 | (if (eq arg '-) |
| 1007 | (setq overriding-terminal-local-map nil)) | 1019 | (setq prefix-arg (list -4)) |
| 1020 | (setq prefix-arg arg) | ||
| 1021 | (setq overriding-terminal-local-map nil))) | ||
| 1008 | (setq universal-argument-num-events (length (this-command-keys)))) | 1022 | (setq universal-argument-num-events (length (this-command-keys)))) |
| 1009 | 1023 | ||
| 1010 | (defun negative-argument (arg) | 1024 | (defun negative-argument (arg) |