emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] trunk r116680: * etc/tutorials/TUTORIAL: Mention electric


From: Glenn Morris
Subject: [Emacs-diffs] trunk r116680: * etc/tutorials/TUTORIAL: Mention electric behavior of RET.
Date: Thu, 06 Mar 2014 01:59:50 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116680
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2014-03-05 20:59:47 -0500
message:
  * etc/tutorials/TUTORIAL: Mention electric behavior of RET.
  
  Note that I had to change "\" to `\', because otherwise Emacs thought
  that everything after that point was inside a string and so did not
  indent anything.
  
  So translators should check for anything similar in their translated
  versions.
modified:
  etc/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1485
  etc/tutorials/TUTORIAL         tutorial-20091113204419-o5vbwnq5f7feedwu-5165
=== modified file 'etc/ChangeLog'
--- a/etc/ChangeLog     2014-03-03 04:57:26 +0000
+++ b/etc/ChangeLog     2014-03-06 01:59:47 +0000
@@ -1,3 +1,7 @@
+2014-03-06  Glenn Morris  <address@hidden>
+
+       * tutorials/TUTORIAL: Mention electric behavior of RET.
+
 2014-02-25  Glenn Morris  <address@hidden>
 
        * refcards/vipcard.tex: Hook fix.

=== modified file 'etc/tutorials/TUTORIAL'
--- a/etc/tutorials/TUTORIAL    2014-01-01 07:43:34 +0000
+++ b/etc/tutorials/TUTORIAL    2014-03-06 01:59:47 +0000
@@ -312,7 +312,7 @@
 graphical display, little curved arrows appear in the narrow spaces on
 each side of the text area (the left and right "fringes"), to indicate
 where a line has been continued.  If you're using a text terminal, the
-continued line is indicated by a backslash ("\") on the rightmost
+continued line is indicated by a backslash (`\') on the rightmost
 screen column.
 
 >> Insert text until you reach the right margin, and keep on inserting.
@@ -331,6 +331,19 @@
 
 >> Type <Return> to reinsert the Newline you deleted.
 
+The <Return> key is special, in that pressing it may do more than
+just insert a Newline character.  Depending on the surrounding text,
+it may insert whitespace after the Newline character, so that when
+you start typing on the newly created line, the text lines up with
+that on the previous line.  We call this behavior (where pressing a
+key does more than simply inserting the relevant character) "electric".
+
+>> Here is an example of <Return> being electric.
+   Type <Return> at the end of this line.
+
+You should see that after inserting the Newline, Emacs inserts spaces
+so that the cursor moves under the "T" of "Type".
+
 Remember that most Emacs commands can be given a repeat count;
 this includes text characters.  Repeating a text character inserts
 it several times.
@@ -391,7 +404,7 @@
 C-k kills the line itself, and makes all the other lines move up.  C-k
 treats a numeric argument specially: it kills that many lines AND
 their contents.  This is not mere repetition.  C-u 2 C-k kills two
-lines and their newlines; typing C-k twice would not do that.
+lines and their Newlines; typing C-k twice would not do that.
 
 You can yank the killed text either at the same place where it was
 killed, or at some other place in the text you are editing, or even in


reply via email to

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