Mercurial > emacs
diff lisp/simple.el @ 83401:03335deca80b
Merged from miles@gnu.org--gnu-2005 (patch 655)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-655
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-441
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Fri, 18 Nov 2005 14:53:14 +0000 |
parents | 03934708f1e9 775cde85fe0a |
children | 69e184bbba16 |
line wrap: on
line diff
--- a/lisp/simple.el Fri Nov 18 13:13:34 2005 +0000 +++ b/lisp/simple.el Fri Nov 18 14:53:14 2005 +0000 @@ -348,6 +348,8 @@ ;; Making and deleting lines. +(defvar hard-newline (propertize "\n" 'hard t 'rear-nonsticky '(hard))) + (defun newline (&optional arg) "Insert a newline, and move to left margin of the new line if it's blank. If `use-hard-newlines' is non-nil, the newline is marked with the @@ -3328,7 +3330,7 @@ ;; When adding a newline, don't expand an abbrev. (let ((abbrev-mode nil)) (end-of-line) - (insert "\n")) + (insert hard-newline)) (line-move arg nil nil try-vscroll)) (if (interactive-p) (condition-case nil @@ -4508,7 +4510,7 @@ (unless (member-ignore-case (car (car other-headers)) '("in-reply-to" "cc" "body")) (insert (car (car other-headers)) ": " - (cdr (car other-headers)) "\n")) + (cdr (car other-headers)) hard-newline)) (setq other-headers (cdr other-headers))) (when body (forward-line 1) @@ -4921,7 +4923,7 @@ ;; when completing file names. It's not even clear what ;; is TRT. 0 - (- common-string-length (- (point) (point-max)))))) + (- common-string-length (- (point-max) (point)))))) (with-current-buffer standard-output (completion-list-mode) (set (make-local-variable 'completion-reference-buffer) mainbuf)