emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Longlines and insert


From: Ryan Yeske
Subject: Re: Longlines and insert
Date: Tue, 15 Nov 2005 15:33:31 -0800

   > Which I think could be fixed like this:
   > 
   > (let ((hard-newline "\n"))
   >    ;; see set-hard-newline-properties:
   >    (put-text-property 0 1 'hard t hard-newline)
   >    (put-text-property 0 1 'rear-nonsticky '(hard) hard-newline)
   >    ...
   >    (insert header hard-newline))

   I think (and as far as I understood, Chong Yidong does too) that this is
   a welcoming message for future problems.  You patch up a piece of code,
   while there are hundreds other lisp files, many of which insert newlines,
   some of which need to be hard.  We probably need something generic.  At
   the very least we need a convenience function to create a newline-string
   with the necessary properties already set, so we don't have to go over
   the lines above each time.

Doesn't (newline) insert the right kind of newline based on the value
of `use-hard-newlines'?

Ryan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]