Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ad8fb8ae
Commit
ad8fb8ae
authored
Mar 01, 1994
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(picture-forward-column, picture-backward-column): Allow backward motion
across multi-column characters.
parent
54a003f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lisp/textmodes/picture.el
lisp/textmodes/picture.el
+8
-2
No files found.
lisp/textmodes/picture.el
View file @
ad8fb8ae
...
...
@@ -76,13 +76,19 @@ If scan reaches end of buffer, stop there without error."
"Move cursor right, making whitespace if necessary.
With argument, move that many columns."
(
interactive
"p"
)
(
move-to-column-force
(
+
(
current-column
)
arg
)))
(
let
((
target-column
(
+
(
current-column
)
arg
)))
(
move-to-column-force
target-column
)
;; Picture mode isn't really suited to multi-column characters,
;; but we might as well let the user move across them.
(
and
(
<
arg
0
)
(
>
(
current-column
)
target-column
)
(
forward-char
-1
))))
(
defun
picture-backward-column
(
arg
)
"Move cursor left, making whitespace if necessary.
With argument, move that many columns."
(
interactive
"p"
)
(
move-to-column-force
(
-
(
current
-column
)
arg
)))
(
picture-forward
-column
(
-
arg
)))
(
defun
picture-move-down
(
arg
)
"Move vertically down, making whitespace if necessary.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment