emacs-devel
[Top][All Lists]
Advanced

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

address@hidden: Feature suggestion: split-line]


From: Richard Stallman
Subject: address@hidden: Feature suggestion: split-line]
Date: Thu, 02 Jan 2003 13:38:26 -0500

What do other people think of this idea?

------- Start of forwarded message -------
Date: Tue, 31 Dec 2002 14:22:20 -0500
From: Andrew Arensburger <address@hidden>
To: address@hidden
Content-Disposition: inline
X-Message-Flag: Your mailbox is corrupt. Upgrade your mail software.
cc: Andrew &urger <address@hidden>
Subject: Feature suggestion: split-line
Sender: address@hidden


- --bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

        Hi! I'd like to suggest a change to the split-line function,
defined in "simple.el" (I'm attaching a patch).
        Currently (as of Emacs 21.1), split-line simply inserts
whitespace when splitting a line. The change I'm proposing inserts the
value of fill-prefix, if it is non-nil, and then inserts whitespace.
That is, it gives you

        > The quick 
        >           brown fox
instead of
        > The quick 
                    brown fox

- -- 
Andrew Arensburger                      This message *does* represent the
address@hidden                      views of ooblick.com
              Quidquid latine dictum sit, altum viditur.



- --bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="simple.el.patch"

- --- simple.el-21.1    Tue Dec 31 14:16:42 2002
+++ simple.el   Tue Dec 31 14:16:49 2002
@@ -162,6 +162,7 @@
   (let ((col (current-column))
        (pos (point)))
     (newline 1)
+    (if fill-prefix (insert-and-inherit fill-prefix))
     (indent-to col 0)
     (goto-char pos)))
 

- --bg08WKrSYDhXBjb5
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

_______________________________________________
Bug-gnu-emacs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

- --bg08WKrSYDhXBjb5--
------- End of forwarded message -------



reply via email to

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