diff options
| author | Jay Belanger | 2013-12-19 22:53:24 -0600 |
|---|---|---|
| committer | Jay Belanger | 2013-12-19 22:53:24 -0600 |
| commit | 26b75b456e536c1fb2d3979e07e82455b2d9c1ca (patch) | |
| tree | 561e8613962554d95c73ea3516bf37ae6377fef1 /doc/misc | |
| parent | cf91cee781fa7919d437faccf048e23d35af8ae8 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/calc.texi | 24 |
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 @@ | |||
| 1 | 2013-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 | |||
| 1 | 2013-12-12 Michael Albinus <michael.albinus@gmx.de> | 6 | 2013-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, | |||
| 11801 | leaving the first, third, fourth, and so on; @kbd{M-3 M-@key{DEL}} deletes | 11801 | leaving the first, third, fourth, and so on; @kbd{M-3 M-@key{DEL}} deletes |
| 11802 | the third stack element. | 11802 | the third stack element. |
| 11803 | 11803 | ||
| 11804 | The above commands do not depend on the location of the cursor. | ||
| 11805 | If the customizable variable @code{calc-context-sensitive-enter} is | ||
| 11806 | non-@code{nil} (@pxref{Customizing Calc}), these commands will become | ||
| 11807 | context 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 | ||
| 11809 | stack. With a positive numeric prefix, a copy of the element at the | ||
| 11810 | cursor and the appropriate number of preceding elements will be placed | ||
| 11811 | at the top of the stack. A negative prefix will still duplicate the | ||
| 11812 | specified element of the stack regardless of the cursor position. | ||
| 11813 | Similarly, @key{DEL} will remove the corresponding elements from the | ||
| 11814 | stack. | ||
| 11815 | |||
| 11804 | @kindex @key{TAB} | 11816 | @kindex @key{TAB} |
| 11805 | @pindex calc-roll-down | 11817 | @pindex calc-roll-down |
| 11806 | To exchange the top two elements of the stack, press @key{TAB} | 11818 | To 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 |
| 35700 | The command @code{calc-enter} will typically duplicate the top of the | 35712 | The commands @code{calc-enter} and @code{calc-pop} will typically |
| 35701 | stack. If @code{calc-context-sensitive-enter} is non-@code{nil}, | 35713 | duplicate the top of the stack. If |
| 35702 | then 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 |
| 35703 | top 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}. | 35716 | top of the stack and @code{calc-pop} will delete the element at the |
| 35717 | cursor. 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 |