Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2ff4d3d9
Commit
2ff4d3d9
authored
Apr 30, 2003
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(echo_char): Don't clear out a dash that follows a space.
parent
95684592
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/keyboard.c
src/keyboard.c
+8
-3
No files found.
src/keyboard.c
View file @
2ff4d3d9
...
...
@@ -785,14 +785,19 @@ echo_char (c)
/* Replace a dash from echo_dash with a space, otherwise
add a space at the end as a separator between keys. */
if (STRINGP (echo_string)
&& SCHARS (echo_string) >
0
)
&& SCHARS (echo_string) >
1
)
{
Lisp_Object last_char, idx;
Lisp_Object last_char, prev_char, idx;
idx = make_number (SCHARS (echo_string) - 2);
prev_char = Faref (echo_string, idx);
idx = make_number (SCHARS (echo_string) - 1);
last_char = Faref (echo_string, idx);
if (XINT (last_char) == '-')
/* We test PREV_CHAR to make sure this isn't the echoing
of a minus-sign. */
if (XINT (last_char) == '-' && XINT (prev_char) != ' ')
Faset (echo_string, idx, make_number (' '));
else
echo_string = concat2 (echo_string, build_string (" "));
...
...
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