aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Janík2002-02-20 09:04:25 +0000
committerPavel Janík2002-02-20 09:04:25 +0000
commit210f943e018c9c0813e5489a7db722a40d3a7796 (patch)
treeb19bef584ef2b5c73f257908b0ebfb5d6dd2a373
parenta2372cfd069f9828ecff0fa94a5e02ee3d5e704c (diff)
downloademacs-210f943e018c9c0813e5489a7db722a40d3a7796.tar.gz
emacs-210f943e018c9c0813e5489a7db722a40d3a7796.zip
(tar-next-line, tar-previous-line): Add doc string,
call the argument "arg" to match plain next-line and previous-line. From Kevin Ryde <user42@zip.com.au>.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/tar-mode.el10
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9ff7107dc0d..0d68ee81adb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12002-02-20 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2
3 * tar-mode.el (tar-next-line, tar-previous-line): Add doc string,
4 call the argument "arg" to match plain next-line and
5 previous-line. From Kevin Ryde <user42@zip.com.au>.
6
12002-02-19 Sam Steingold <sds@gnu.org> 72002-02-19 Sam Steingold <sds@gnu.org>
2 8
3 * mwheel.el (mouse-wheel-scroll-amount): Can specify different 9 * mwheel.el (mouse-wheel-scroll-amount): Can specify different
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 10fe019b3a5..2bfd75c7630 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -609,14 +609,16 @@ appear on disk when you save the tar-file's buffer."
609 (setq tar-header-offset old-offset))))) 609 (setq tar-header-offset old-offset)))))
610 610
611 611
612(defun tar-next-line (p) 612(defun tar-next-line (arg)
613 "Move cursor vertically down ARG lines and to the start of the filename."
613 (interactive "p") 614 (interactive "p")
614 (forward-line p) 615 (forward-line arg)
615 (if (eobp) nil (forward-char (if tar-mode-show-date 54 36)))) 616 (if (eobp) nil (forward-char (if tar-mode-show-date 54 36))))
616 617
617(defun tar-previous-line (p) 618(defun tar-previous-line (arg)
619 "Move cursor vertically up ARG lines and to the start of the filename."
618 (interactive "p") 620 (interactive "p")
619 (tar-next-line (- p))) 621 (tar-next-line (- arg)))
620 622
621(defun tar-current-descriptor (&optional noerror) 623(defun tar-current-descriptor (&optional noerror)
622 "Return the tar-descriptor of the current line, or signals an error." 624 "Return the tar-descriptor of the current line, or signals an error."