diff options
| author | Paul Eggert | 2011-07-16 17:39:01 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-16 17:39:01 -0700 |
| commit | b1f367f797aa19047904e73a67e52f391c720e0d (patch) | |
| tree | d662146d7e2e99c221fae1cd2fecb0bc6b2b33d3 /doc/lispref | |
| parent | 134643946085b24a695d73b3d8f7af5aa23602aa (diff) | |
| parent | 4f8a4547454e24304b4182fbf4ae4b34a7bdc92b (diff) | |
| download | emacs-b1f367f797aa19047904e73a67e52f391c720e0d.tar.gz emacs-b1f367f797aa19047904e73a67e52f391c720e0d.zip | |
Merge from trunk.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/ChangeLog | 19 | ||||
| -rw-r--r-- | doc/lispref/debugging.texi | 10 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 24 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 11 |
4 files changed, 59 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 153d7e839c3..091a6ffda59 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,22 @@ | |||
| 1 | 2011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | Tim Cross <theophilusx@gmail.com> (tiny change) | ||
| 3 | Glenn Morris <rgm@gnu.org> | ||
| 4 | |||
| 5 | * keymaps.texi (Toolkit Differences): New node. (Bug#8176) | ||
| 6 | |||
| 7 | 2011-07-15 Andreas Schwab <schwab@linux-m68k.org> | ||
| 8 | |||
| 9 | * help.texi (Keys in Documentation): Revert last change. | ||
| 10 | |||
| 11 | 2011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 12 | |||
| 13 | * help.texi (Keys in Documentation): Clarify that \= only quotes | ||
| 14 | the next character, and doesn't affect longer sequences in | ||
| 15 | particular (bug#8935). | ||
| 16 | |||
| 17 | * debugging.texi (Using Debugger): Mention | ||
| 18 | @code{eval-expression-debug-on-error} (bug#8549). | ||
| 19 | |||
| 1 | 2011-07-14 Eli Zaretskii <eliz@gnu.org> | 20 | 2011-07-14 Eli Zaretskii <eliz@gnu.org> |
| 2 | 21 | ||
| 3 | * display.texi (Other Display Specs): Document that `left-fringe' | 22 | * display.texi (Other Display Specs): Document that `left-fringe' |
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index ed146453df7..d9e807afb88 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi | |||
| @@ -306,6 +306,16 @@ and it is wise to go back to the backtrace buffer and exit the debugger | |||
| 306 | the debugger gets out of the recursive edit and kills the backtrace | 306 | the debugger gets out of the recursive edit and kills the backtrace |
| 307 | buffer. | 307 | buffer. |
| 308 | 308 | ||
| 309 | When the debugger has been entered, the @code{debug-on-error} | ||
| 310 | variable is temporarily set according to | ||
| 311 | @code{eval-expression-debug-on-error}. If the latter variable is | ||
| 312 | non-@code{nil}, @code{debug-on-error} will temporarily be set to | ||
| 313 | @code{t}. This means that any further errors that occur while doing a | ||
| 314 | debugging session will (by default) trigger another backtrace. If | ||
| 315 | this is not want you want, you can either set | ||
| 316 | @code{eval-expression-debug-on-error} to @code{nil}, or set | ||
| 317 | @code{debug-on-error} to @code{nil} in @code{debugger-mode-hook}. | ||
| 318 | |||
| 309 | @cindex current stack frame | 319 | @cindex current stack frame |
| 310 | The backtrace buffer shows you the functions that are executing and | 320 | The backtrace buffer shows you the functions that are executing and |
| 311 | their argument values. It also allows you to specify a stack frame by | 321 | their argument values. It also allows you to specify a stack frame by |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 15b2f2079ba..e5cca0622a9 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -2019,8 +2019,10 @@ an existing menu, you can specify its position in the menu using | |||
| 2019 | various features. | 2019 | various features. |
| 2020 | * Menu Separators:: Drawing a horizontal line through a menu. | 2020 | * Menu Separators:: Drawing a horizontal line through a menu. |
| 2021 | * Alias Menu Items:: Using command aliases in menu items. | 2021 | * Alias Menu Items:: Using command aliases in menu items. |
| 2022 | * Toolkit Differences:: Not all toolkits provide the same features. | ||
| 2022 | @end menu | 2023 | @end menu |
| 2023 | 2024 | ||
| 2025 | |||
| 2024 | @node Simple Menu Items | 2026 | @node Simple Menu Items |
| 2025 | @subsubsection Simple Menu Items | 2027 | @subsubsection Simple Menu Items |
| 2026 | 2028 | ||
| @@ -2309,6 +2311,28 @@ itself). To request this, give the alias symbol a non-@code{nil} | |||
| 2309 | causes menu items for @code{make-read-only} and @code{make-writable} to | 2311 | causes menu items for @code{make-read-only} and @code{make-writable} to |
| 2310 | show the keyboard bindings for @code{toggle-read-only}. | 2312 | show the keyboard bindings for @code{toggle-read-only}. |
| 2311 | 2313 | ||
| 2314 | @node Toolkit Differences | ||
| 2315 | @subsubsection Toolkit Differences | ||
| 2316 | |||
| 2317 | The various toolkits with which you can build Emacs do not all support | ||
| 2318 | the same set of features for menus. Some code works as expected with | ||
| 2319 | one toolkit, but not under another. | ||
| 2320 | |||
| 2321 | One example is menu actions or buttons in a top-level menu-bar. The | ||
| 2322 | following works with the Lucid toolkit or on MS Windows, but not with | ||
| 2323 | GTK or Nextstep, where clicking on the item has no effect. | ||
| 2324 | |||
| 2325 | @example | ||
| 2326 | (defun menu-action-greet () | ||
| 2327 | (interactive) | ||
| 2328 | (message "Hello Emacs User!")) | ||
| 2329 | |||
| 2330 | (defun top-level-menu () | ||
| 2331 | (interactive) | ||
| 2332 | (define-key lisp-interaction-mode-map [menu-bar m] | ||
| 2333 | '(menu-item "Action Button" menu-action-greet))) | ||
| 2334 | @end example | ||
| 2335 | |||
| 2312 | @node Mouse Menus | 2336 | @node Mouse Menus |
| 2313 | @subsection Menus and the Mouse | 2337 | @subsection Menus and the Mouse |
| 2314 | 2338 | ||
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 3da09369882..091765043e3 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1099,11 +1099,12 @@ use short names like @code{x}. | |||
| 1099 | @node Lexical Binding | 1099 | @node Lexical Binding |
| 1100 | @subsection Use of Lexical Scoping | 1100 | @subsection Use of Lexical Scoping |
| 1101 | 1101 | ||
| 1102 | Emacs Lisp can be evaluated in two different modes: in dynamic binding mode or | 1102 | Emacs Lisp can be evaluated in two different modes: in dynamic binding |
| 1103 | lexical binding mode. In dynamic binding mode, all local variables use dynamic | 1103 | mode or lexical binding mode. In dynamic binding mode, all local |
| 1104 | scoping, whereas in lexical binding mode variables that have been declared | 1104 | variables use dynamic scoping, whereas in lexical binding mode |
| 1105 | @dfn{special} (i.e., declared with @code{defvar} or @code{defconst}) use | 1105 | variables that have been declared @dfn{special} (i.e., declared with |
| 1106 | dynamic scoping and all others use lexical scoping. | 1106 | @code{defvar}, @code{defcustom} or @code{defconst}) use dynamic |
| 1107 | scoping and all others use lexical scoping. | ||
| 1107 | 1108 | ||
| 1108 | @defvar lexical-binding | 1109 | @defvar lexical-binding |
| 1109 | When non-nil, evaluation of Lisp code uses lexical scoping for non-special | 1110 | When non-nil, evaluation of Lisp code uses lexical scoping for non-special |