Skip to main content

Questions tagged [newlines]

0 votes
2 answers
97 views

When you type C-o (open-line), it opens a newline without moving the point; with a positive prefix, it opens that many newlines. I expected that you can give the command a negative argument and then ...
GrB's user avatar
  • 229
0 votes
1 answer
65 views

In an Elisp regexp, when I want to specify a pattern across two consecutive lines, I found that ^J^.* (^J is new line, and ^ is anchor of the beginning of a line) doesn't work, but ^J.* works. I was ...
Tim's user avatar
  • 5,157
0 votes
1 answer
54 views

In normal regex, I would expect the following to be true: (should (equal (string-match "^abc$\nx" "abc\nx ") 0)) ;; nope! nil (should (equal (string-match "^abc\n$x" &...
Jared's user avatar
  • 111
0 votes
1 answer
218 views

I've noticed that Emacs will preserve an extra line (carriage return) between items, but if I manually edit the file, this extra spacing can fall apart. For example, I've found that entries need 2 ...
charliesneath's user avatar
1 vote
1 answer
64 views

A WinRAR command (rar vt -pmypassword -v myarc.part01.rar >source.txt) produces detailed information on files contained in .rar files or segments (e.g., filename.part01.rar). Here's an example for ...
Ray Woodcock's user avatar
0 votes
0 answers
43 views

I am using (insert "\n") to insert a newline in a specified buffer. Is this the recommended way to do it? I have seen (terpri) but cannot get it to make a newline. (defun fire-clock (bufrn)...
Dilna's user avatar
  • 1,473
0 votes
1 answer
63 views

Is this the way to add newlines to message string? (message "Some string \n Another string")
Dilna's user avatar
  • 1,473
2 votes
1 answer
75 views

Suppose I have a text document (e.g. org-mode, Markdown, etc.) in which I would like to search for the phrase "hello world". Unfortunately, if paragraphs in this document are filled (e.g. ...
Ryan C. Thompson's user avatar

15 30 50 per page
1
2 3 4 5