* Inserting \n when longlines-mode @ 2007-10-27 19:58 Lennart Borgman (gmail) 2007-10-27 20:42 ` Lennart Borgman (gmail) 2007-10-27 22:38 ` Chong Yidong 0 siblings, 2 replies; 5+ messages in thread From: Lennart Borgman (gmail) @ 2007-10-27 19:58 UTC (permalink / raw) To: Emacs Devel Can someone please tell me how one is supposed to insert a \n in the buffer when longlines-mode is on? The following will not do it (insert "\n") ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inserting \n when longlines-mode 2007-10-27 19:58 Inserting \n when longlines-mode Lennart Borgman (gmail) @ 2007-10-27 20:42 ` Lennart Borgman (gmail) 2007-10-27 22:38 ` Chong Yidong 1 sibling, 0 replies; 5+ messages in thread From: Lennart Borgman (gmail) @ 2007-10-27 20:42 UTC (permalink / raw) To: Emacs Devel Lennart Borgman (gmail) wrote: > Can someone please tell me how one is supposed to insert a \n in the > buffer when longlines-mode is on? > > The following will not do it > > (insert "\n") A workaround seems to be to add (setq longlines-wrap-beg nil) after the insertion. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inserting \n when longlines-mode 2007-10-27 19:58 Inserting \n when longlines-mode Lennart Borgman (gmail) 2007-10-27 20:42 ` Lennart Borgman (gmail) @ 2007-10-27 22:38 ` Chong Yidong 2007-10-28 0:53 ` Lennart Borgman (gmail) 2007-10-28 1:02 ` Stefan Monnier 1 sibling, 2 replies; 5+ messages in thread From: Chong Yidong @ 2007-10-27 22:38 UTC (permalink / raw) To: Lennart Borgman (gmail); +Cc: Emacs Devel "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes: > Can someone please tell me how one is supposed to insert a \n in the > buffer when longlines-mode is on? > > The following will not do it > > (insert "\n") (insert hard-newline) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inserting \n when longlines-mode 2007-10-27 22:38 ` Chong Yidong @ 2007-10-28 0:53 ` Lennart Borgman (gmail) 2007-10-28 1:02 ` Stefan Monnier 1 sibling, 0 replies; 5+ messages in thread From: Lennart Borgman (gmail) @ 2007-10-28 0:53 UTC (permalink / raw) To: Chong Yidong; +Cc: Emacs Devel Chong Yidong wrote: > "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes: > >> Can someone please tell me how one is supposed to insert a \n in the >> buffer when longlines-mode is on? >> >> The following will not do it >> >> (insert "\n") > > (insert hard-newline) Thanks, I had no idea about that. Maybe that variable should be documented? Some documentation about this in longlines-mode would perhaps also be useful? ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Inserting \n when longlines-mode 2007-10-27 22:38 ` Chong Yidong 2007-10-28 0:53 ` Lennart Borgman (gmail) @ 2007-10-28 1:02 ` Stefan Monnier 1 sibling, 0 replies; 5+ messages in thread From: Stefan Monnier @ 2007-10-28 1:02 UTC (permalink / raw) To: Chong Yidong; +Cc: Lennart Borgman (gmail), Emacs Devel >> Can someone please tell me how one is supposed to insert a \n in the >> buffer when longlines-mode is on? >> The following will not do it >> (insert "\n") I was wondering if we shouldn't start to use things like unicode #x2029 (paragraph separator) for hard newlines (and maybe #x2028 for soft newlines). Stefan ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-10-28 1:02 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-10-27 19:58 Inserting \n when longlines-mode Lennart Borgman (gmail) 2007-10-27 20:42 ` Lennart Borgman (gmail) 2007-10-27 22:38 ` Chong Yidong 2007-10-28 0:53 ` Lennart Borgman (gmail) 2007-10-28 1:02 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).