aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-03-22 03:54:14 +0000
committerRichard M. Stallman1997-03-22 03:54:14 +0000
commit1cd24721c27168c7c4e7084bea061ed1653d5ed8 (patch)
tree2820cef87fd38331eb2b278dc0af039281fe8917
parentff9c168275d2c088e5aa0b3a0f84e9d3be62b93b (diff)
downloademacs-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.el18
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)