[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r116737: * doc/misc/octave-mode.texi (Using Octave M
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] trunk r116737: * doc/misc/octave-mode.texi (Using Octave Mode): Remove outdated stuff |
Date: |
Wed, 12 Mar 2014 06:53:14 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 116737
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2014-03-11 23:52:54 -0700
message:
* doc/misc/octave-mode.texi (Using Octave Mode): Remove outdated stuff
about RET and indentation. E.g., octave-reindent-then-newline-and-indent
was removed three years ago.
When you delete commands, please use grep to check for references to them.
modified:
doc/misc/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-6331
doc/misc/octave-mode.texi
docmiscoctavemode.te-20131211135130-mke18k9sh7x9vmyx-1
=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog 2014-03-03 17:15:42 +0000
+++ b/doc/misc/ChangeLog 2014-03-12 06:52:54 +0000
@@ -1,3 +1,8 @@
+2014-03-12 Glenn Morris <address@hidden>
+
+ * octave-mode.texi (Using Octave Mode): Remove outdated stuff
+ about RET and indentation.
+
2014-03-03 Juanma Barranquero <address@hidden>
* gnus.texi:
=== modified file 'doc/misc/octave-mode.texi'
--- a/doc/misc/octave-mode.texi 2014-02-27 11:59:35 +0000
+++ b/doc/misc/octave-mode.texi 2014-03-12 06:52:54 +0000
@@ -148,39 +148,6 @@
in one of your Emacs startup files.
@end table
address@hidden FIXME: `electric-indent-mode' is enabled by default in GNU Emacs
24.4.
-A common problem is that the @key{RET} key does @emph{not} indent the
-line to where the new text should go after inserting the newline. This
-is because the standard Emacs convention is that @key{RET} (aka
address@hidden) just adds a newline, whereas @key{LFD} (aka @kbd{C-j}) adds a
-newline and indents it. This is particularly inconvenient for users with
-keyboards which do not have a special @key{LFD} key at all; in such
-cases, it is typically more convenient to use @key{RET} as the @key{LFD}
-key (rather than typing @kbd{C-j}).
-
-You can make @key{RET} do this by adding
address@hidden
-(define-key octave-mode-map "\C-m"
- 'octave-reindent-then-newline-and-indent)
address@hidden lisp
address@hidden
-to one of your Emacs startup files. Another, more generally applicable
-solution is
address@hidden
-(defun RET-behaves-as-LFD ()
- (let ((x (key-binding "\C-j")))
- (local-set-key "\C-m" x)))
-(add-hook 'octave-mode-hook 'RET-behaves-as-LFD)
address@hidden lisp
address@hidden
-(this works for all modes by adding to the startup hooks, without
-having to know the particular binding of @key{RET} in that mode!).
-Similar considerations apply for using @key{M-RET} as @key{M-LFD}. As
address@hidden@@cnri.reston.va.us, Barry A. Warsaw} says in the
-documentation for his @code{cc-mode}, ``This is a very common
-question. @code{:-)} If you want this to be the default behavior,
-don't lobby me, lobby RMS!''
-
The following variables can be used to customize Octave mode.
@vtable @code
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r116737: * doc/misc/octave-mode.texi (Using Octave Mode): Remove outdated stuff,
Glenn Morris <=