aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorJay Belanger2013-12-19 22:53:24 -0600
committerJay Belanger2013-12-19 22:53:24 -0600
commit26b75b456e536c1fb2d3979e07e82455b2d9c1ca (patch)
tree561e8613962554d95c73ea3516bf37ae6377fef1 /doc/misc
parentcf91cee781fa7919d437faccf048e23d35af8ae8 (diff)
downloademacs-26b75b456e536c1fb2d3979e07e82455b2d9c1ca.tar.gz
emacs-26b75b456e536c1fb2d3979e07e82455b2d9c1ca.zip
lisp/calc/calc.el (calc-enter, calc-pop): Use the variable
`calc-context-sensitive-enter'. doc/misc/calc.texi (Stack Manipulation Commands): Mention using the variable `calc-context-sensitive-enter' for `calc-enter' and `calc-pop'.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/calc.texi24
2 files changed, 24 insertions, 5 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 8db1f7fa23b..fc07ad6dc08 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12013-12-20 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc.texi (Stack Manipulation Commands): Mention using the variable
4 `calc-context-sensitive-enter' for `calc-enter' and `calc-pop'.
5
12013-12-12 Michael Albinus <michael.albinus@gmx.de> 62013-12-12 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * tramp.texi (direntry): Use ssh but rsh. 8 * tramp.texi (direntry): Use ssh but rsh.
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index 0154c82750a..425cd349784 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -11801,6 +11801,18 @@ Thus @kbd{M-@key{DEL}} by itself removes the second-from-top stack element,
11801leaving the first, third, fourth, and so on; @kbd{M-3 M-@key{DEL}} deletes 11801leaving the first, third, fourth, and so on; @kbd{M-3 M-@key{DEL}} deletes
11802the third stack element. 11802the third stack element.
11803 11803
11804The above commands do not depend on the location of the cursor.
11805If the customizable variable @code{calc-context-sensitive-enter} is
11806non-@code{nil} (@pxref{Customizing Calc}), these commands will become
11807context sensitive. For example, instead of duplicating the top of the stack,
11808@key{RET} will copy the element at the cursor to the top of the
11809stack. With a positive numeric prefix, a copy of the element at the
11810cursor and the appropriate number of preceding elements will be placed
11811at the top of the stack. A negative prefix will still duplicate the
11812specified element of the stack regardless of the cursor position.
11813Similarly, @key{DEL} will remove the corresponding elements from the
11814stack.
11815
11804@kindex @key{TAB} 11816@kindex @key{TAB}
11805@pindex calc-roll-down 11817@pindex calc-roll-down
11806To exchange the top two elements of the stack, press @key{TAB} 11818To exchange the top two elements of the stack, press @key{TAB}
@@ -35697,11 +35709,13 @@ is @code{nil}.
35697@end defvar 35709@end defvar
35698 35710
35699@defvar calc-context-sensitive-enter 35711@defvar calc-context-sensitive-enter
35700The command @code{calc-enter} will typically duplicate the top of the 35712The commands @code{calc-enter} and @code{calc-pop} will typically
35701stack. If @code{calc-context-sensitive-enter} is non-@code{nil}, 35713duplicate the top of the stack. If
35702then the @code{calc-enter} will copy the element at the cursor to the 35714@code{calc-context-sensitive-enter} is non-@code{nil}, then the
35703top of the stack. The default value of 35715@code{calc-enter} will copy the element at the cursor to the
35704@code{calc-context-sensitive-enter} is @code{nil}. 35716top of the stack and @code{calc-pop} will delete the element at the
35717cursor. The default value of @code{calc-context-sensitive-enter} is
35718@code{nil}.
35705@end defvar 35719@end defvar
35706 35720
35707@defvar calc-undo-length 35721@defvar calc-undo-length