aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Barzilay2015-11-12 03:07:38 -0500
committerJuanma Barranquero2015-11-12 09:35:10 +0100
commit851be0f60718795c985f504db4823344508b107d (patch)
tree9d1520368ec651e39ec8238d6061e72e8ec50549
parent055ca3a57e7326cd24bbb958531f6938466f5fd9 (diff)
downloademacs-851be0f60718795c985f504db4823344508b107d.tar.gz
emacs-851be0f60718795c985f504db4823344508b107d.zip
Add "^" to the interactive specs of `dired-next/previous-line'
* lisp/dired.el (dired-next-line, dired-previous-line): It makes sense to bind these commands to the arrow keys, and that means that they work better with a "^" in the `interactive' declaration so selection works as expected.
-rw-r--r--lisp/dired.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 5f0a83afd04..049d45d2fa8 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -2031,7 +2031,7 @@ Otherwise, toggle `read-only-mode'."
2031(defun dired-next-line (arg) 2031(defun dired-next-line (arg)
2032 "Move down lines then position at filename. 2032 "Move down lines then position at filename.
2033Optional prefix ARG says how many lines to move; default is one line." 2033Optional prefix ARG says how many lines to move; default is one line."
2034 (interactive "p") 2034 (interactive "^p")
2035 (let ((line-move-visual) 2035 (let ((line-move-visual)
2036 (goal-column)) 2036 (goal-column))
2037 (line-move arg t)) 2037 (line-move arg t))
@@ -2044,7 +2044,7 @@ Optional prefix ARG says how many lines to move; default is one line."
2044(defun dired-previous-line (arg) 2044(defun dired-previous-line (arg)
2045 "Move up lines then position at filename. 2045 "Move up lines then position at filename.
2046Optional prefix ARG says how many lines to move; default is one line." 2046Optional prefix ARG says how many lines to move; default is one line."
2047 (interactive "p") 2047 (interactive "^p")
2048 (dired-next-line (- (or arg 1)))) 2048 (dired-next-line (- (or arg 1))))
2049 2049
2050(defun dired-next-dirline (arg &optional opoint) 2050(defun dired-next-dirline (arg &optional opoint)