]> git.eshelyaron.com Git - emacs.git/commitdiff
(picture-forward-column): New arg `interactive'
authorRichard M. Stallman <rms@gnu.org>
Fri, 8 Mar 2002 09:58:51 +0000 (09:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 8 Mar 2002 09:58:51 +0000 (09:58 +0000)
is non-nil for an interactive call.  Use instead of interactive-p.
(picture-backward-column): Likewise.

lisp/textmodes/picture.el

index dc47a89dedb6028fedc81fa26a7d92e130e8416f..0ef0630a2020a87594a2b064d6ccd6af382d6769 100644 (file)
@@ -100,11 +100,11 @@ If scan reaches end of buffer, stop there without error."
   (skip-chars-backward " \t" (prog1 (point) (end-of-line)))
   (setq picture-desired-column (current-column)))
 
-(defun picture-forward-column (arg)
+(defun picture-forward-column (arg &optional interactive)
   "Move cursor right, making whitespace if necessary.
 With argument, move that many columns."
-  (interactive "p")
-  (picture-update-desired-column (interactive-p))
+  (interactive "p\nd")
+  (picture-update-desired-column interactive)
   (setq picture-desired-column (max 0 (+ picture-desired-column arg)))
   (let ((current-column (move-to-column picture-desired-column t)))
     (if (and (> current-column picture-desired-column)
@@ -113,11 +113,11 @@ With argument, move that many columns."
        ;; column of a multi-column character.
        (forward-char -1))))
 
-(defun picture-backward-column (arg)
+(defun picture-backward-column (arg &optional interactive)
   "Move cursor left, making whitespace if necessary.
 With argument, move that many columns."
-  (interactive "p")
-  (picture-update-desired-column (interactive-p))
+  (interactive "p\nd")
+  (picture-update-desired-column interactive)
   (picture-forward-column (- arg)))
 
 (defun picture-move-down (arg)