aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1999-07-29 21:56:02 +0000
committerDave Love1999-07-29 21:56:02 +0000
commit5f6a0375b3eb7f646462404a9ef7d9f571e3ba02 (patch)
treee5b4eb2fafe84cb9658dea12289c37a8dbce7a54
parent11cfb745a29fc8581504e3722c91bf84b7f42c63 (diff)
downloademacs-5f6a0375b3eb7f646462404a9ef7d9f571e3ba02.tar.gz
emacs-5f6a0375b3eb7f646462404a9ef7d9f571e3ba02.zip
(picture-beginning-of-line): Don't call
hscroll-point-visible now we have real autoscrolling. (picture-end-of-line, picture-newline, picture-open-line): Likewise.
-rw-r--r--lisp/textmodes/picture.el16
1 files changed, 4 insertions, 12 deletions
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el
index 4d3d4741681..55b4a4df5cc 100644
--- a/lisp/textmodes/picture.el
+++ b/lisp/textmodes/picture.el
@@ -87,9 +87,7 @@ If scan reaches end of buffer, stop there without error."
87 (interactive "P") 87 (interactive "P")
88 (if arg (forward-line (1- (prefix-numeric-value arg)))) 88 (if arg (forward-line (1- (prefix-numeric-value arg))))
89 (beginning-of-line) 89 (beginning-of-line)
90 (setq picture-desired-column 0) 90 (setq picture-desired-column 0))
91 ;; This call will go away when Emacs gets real horizontal autoscrolling
92 (hscroll-point-visible))
93 91
94(defun picture-end-of-line (&optional arg) 92(defun picture-end-of-line (&optional arg)
95 "Position point after last non-blank character on current line. 93 "Position point after last non-blank character on current line.
@@ -99,9 +97,7 @@ If scan reaches end of buffer, stop there without error."
99 (if arg (forward-line (1- (prefix-numeric-value arg)))) 97 (if arg (forward-line (1- (prefix-numeric-value arg))))
100 (beginning-of-line) 98 (beginning-of-line)
101 (skip-chars-backward " \t" (prog1 (point) (end-of-line))) 99 (skip-chars-backward " \t" (prog1 (point) (end-of-line)))
102 (setq picture-desired-column (current-column)) 100 (setq picture-desired-column (current-column)))
103 ;; This call will go away when Emacs gets real horizontal autoscrolling
104 (hscroll-point-visible))
105 101
106(defun picture-forward-column (arg) 102(defun picture-forward-column (arg)
107 "Move cursor right, making whitespace if necessary. 103 "Move cursor right, making whitespace if necessary.
@@ -306,9 +302,7 @@ always moves to the beginning of a line."
306 (while (> arg 0) 302 (while (> arg 0)
307 (end-of-line) 303 (end-of-line)
308 (if (eobp) (newline) (forward-char 1)) 304 (if (eobp) (newline) (forward-char 1))
309 (setq arg (1- arg)))) 305 (setq arg (1- arg)))))
310 ;; This call will go away when Emacs gets real horizontal autoscrolling
311 (hscroll-point-visible))
312 306
313(defun picture-open-line (arg) 307(defun picture-open-line (arg)
314 "Insert an empty line after the current line. 308 "Insert an empty line after the current line.
@@ -316,9 +310,7 @@ With positive argument insert that many lines."
316 (interactive "p") 310 (interactive "p")
317 (save-excursion 311 (save-excursion
318 (end-of-line) 312 (end-of-line)
319 (open-line arg)) 313 (open-line arg)))
320 ;; This call will go away when Emacs gets real horizontal autoscrolling
321 (hscroll-point-visible))
322 314
323(defun picture-duplicate-line () 315(defun picture-duplicate-line ()
324 "Insert a duplicate of the current line, below it." 316 "Insert a duplicate of the current line, below it."