Questions tagged [line-endings]
5 questions
1
vote
0 answers
Emacs opens files with wrong line end encoding
Whenever I open a file encoded with dos end lines, Emacs decides it's encoded in undecided_linux and displays ^M after each line.
I checked, those files all have matching newline characters (no odd ^J without a preceding ^M).
I have set the…

em3
- 11
- 1
1
vote
1 answer
Remove the suffix `^M` when run ls in org src
When run ls to print the file list
#+begin_src ipython :session sql :results output
! ls | head -n 5
#+end_src
#+RESULTS:
: create.txt^M
: Lesson 10. Grouping Data.md^M
: Lesson 11. Working with Subqueries.md^M
: Lesson 12. Joining Tables.md^M
:…

Alice
- 219
- 1
- 7
0
votes
0 answers
Unicode Line and Paragraph Separator is Not Properly Supported
Emacs is displaying Unicode LINE SEPARATOR and PARAGRAPH SEPARATOR (PS) as rectangle. PS also does not end a paragraph. How can I make emacs treat these characters properly?

user_
- 1
- 1
0
votes
1 answer
Emacs shell - git diff not displaying inserted ("+") lines with dos file endings and color
If I modify a file checked into version control with DOS line endings, on a normal terminal I can see the change:
# Normal terminal...
$ git diff
diff --git a/a b/a
index c113281..85c3ecd 100644
--- a/a
+++ b/a
@@ -1,3 +1,3 @@
Line 1
-Line 2
+Line…

John Graham
- 23
- 3
0
votes
0 answers
^M appearing in minibuffer
when I invoke some function that requires to select an option from the minibuffer, there is often a first option tagged with [^M]
what does it mean? How to select it?

PinkCollins
- 151
- 8