aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThien-Thi Nguyen2007-10-18 15:56:22 +0000
committerThien-Thi Nguyen2007-10-18 15:56:22 +0000
commitcb7bddf66162ba9383cb18b54e8380ca02afb5fb (patch)
treef6e5bbe0d16f2126b03ee521e5e7abcd9a08f8db
parentfdd2ae6d90f05195d31a686b02923896324762f2 (diff)
downloademacs-cb7bddf66162ba9383cb18b54e8380ca02afb5fb.tar.gz
emacs-cb7bddf66162ba9383cb18b54e8380ca02afb5fb.zip
(artist-previous-line, artist-next-line): Use forward-line.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/artist.el22
2 files changed, 13 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index daaeee3e93d..b469883c4cc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-10-18 Thien-Thi Nguyen <ttn@gnuvola.org>
2
3 * textmodes/artist.el (artist-previous-line, artist-next-line):
4 Use forward-line.
5
12007-10-18 Juanma Barranquero <lekktu@gmail.com> 62007-10-18 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * textmodes/fill.el (fill-individual-paragraphs): Doc fix. 8 * textmodes/fill.el (fill-individual-paragraphs): Doc fix.
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el
index bc0434e151a..f0442904185 100644
--- a/lisp/textmodes/artist.el
+++ b/lisp/textmodes/artist.el
@@ -4383,13 +4383,10 @@ With non-nil ARG, set the last point."
4383If N is negative, move cursor down." 4383If N is negative, move cursor down."
4384 (interactive "p") 4384 (interactive "p")
4385 (let ((col (artist-current-column))) 4385 (let ((col (artist-current-column)))
4386 (if (not artist-key-is-drawing) 4386 (forward-line (- n))
4387 (progn 4387 (move-to-column col t))
4388 (previous-line n) 4388 (when artist-key-is-drawing
4389 (move-to-column col t)) 4389 (artist-key-do-continously-common)))
4390 (previous-line n)
4391 (move-to-column col t)
4392 (artist-key-do-continously-common))))
4393 4390
4394 4391
4395(defun artist-next-line (&optional n) 4392(defun artist-next-line (&optional n)
@@ -4397,13 +4394,10 @@ If N is negative, move cursor down."
4397If N is negative, move cursor up." 4394If N is negative, move cursor up."
4398 (interactive "p") 4395 (interactive "p")
4399 (let ((col (artist-current-column))) 4396 (let ((col (artist-current-column)))
4400 (if (not artist-key-is-drawing) 4397 (forward-line n)
4401 (progn 4398 (move-to-column col t))
4402 (next-line n) 4399 (when artist-key-is-drawing
4403 (move-to-column col t)) 4400 (artist-key-do-continously-common)))
4404 (next-line n)
4405 (move-to-column col t)
4406 (artist-key-do-continously-common))))
4407 4401
4408(defun artist-backward-char (&optional n) 4402(defun artist-backward-char (&optional n)
4409 "Move cursor backward optional N chars (default is 1), updating curr shape. 4403 "Move cursor backward optional N chars (default is 1), updating curr shape.