aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2020-02-18 12:47:32 -0500
committerStefan Monnier2020-02-18 12:47:32 -0500
commit0c0fa1d5fddadea943a9813e491f3f7727b86f45 (patch)
tree1e0e55bc9c3bbd292920fa7a10703bbb0261ed60
parent121f9bb14ab0abe618cabd24bd25ed328e36891c (diff)
downloademacs-0c0fa1d5fddadea943a9813e491f3f7727b86f45.tar.gz
emacs-0c0fa1d5fddadea943a9813e491f3f7727b86f45.zip
* lisp/wdired.el (wdired-next-line, wdired-previous-line): Preserve column
-rw-r--r--lisp/wdired.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/wdired.el b/lisp/wdired.el
index d91853e64dd..11cbe5822a7 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -640,6 +640,7 @@ Optional arguments are ignored."
640See `wdired-use-dired-vertical-movement'. Optional prefix ARG 640See `wdired-use-dired-vertical-movement'. Optional prefix ARG
641says how many lines to move; default is one line." 641says how many lines to move; default is one line."
642 (interactive "^p") 642 (interactive "^p")
643 (setq this-command 'next-line) ;Let `line-move' preserve the column.
643 (with-no-warnings (next-line arg)) 644 (with-no-warnings (next-line arg))
644 (if (or (eq wdired-use-dired-vertical-movement t) 645 (if (or (eq wdired-use-dired-vertical-movement t)
645 (and wdired-use-dired-vertical-movement 646 (and wdired-use-dired-vertical-movement
@@ -653,6 +654,7 @@ says how many lines to move; default is one line."
653See `wdired-use-dired-vertical-movement'. Optional prefix ARG 654See `wdired-use-dired-vertical-movement'. Optional prefix ARG
654says how many lines to move; default is one line." 655says how many lines to move; default is one line."
655 (interactive "^p") 656 (interactive "^p")
657 (setq this-command 'previous-line) ;Let `line-move' preserve the column.
656 (with-no-warnings (previous-line arg)) 658 (with-no-warnings (previous-line arg))
657 (if (or (eq wdired-use-dired-vertical-movement t) 659 (if (or (eq wdired-use-dired-vertical-movement t)
658 (and wdired-use-dired-vertical-movement 660 (and wdired-use-dired-vertical-movement