diff options
| author | Daniel Colascione | 2012-09-17 04:07:36 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2012-09-17 04:07:36 -0800 |
| commit | 2ab329f3b5d52a39f0a45c3d9c129f1c19560142 (patch) | |
| tree | 6dd6784d63e54cb18071df8e28fbdbc27d418728 /doc | |
| parent | f701ab72dd55460d23c8b029550aa4d7ecef3cfa (diff) | |
| parent | bb7dce392f6d9d5fc4b9d7de09ff920a52f07669 (diff) | |
| download | emacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.tar.gz emacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.zip | |
Merge from trunk
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 27 | ||||
| -rw-r--r-- | doc/emacs/building.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/emacs.texi | 3 | ||||
| -rw-r--r-- | doc/emacs/regs.texi | 26 | ||||
| -rw-r--r-- | doc/emacs/trouble.texi | 39 | ||||
| -rw-r--r-- | doc/emacs/windows.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 53 | ||||
| -rw-r--r-- | doc/lispref/commands.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/debugging.texi | 5 | ||||
| -rw-r--r-- | doc/lispref/eval.texi | 1 | ||||
| -rw-r--r-- | doc/lispref/lists.texi | 33 | ||||
| -rw-r--r-- | doc/lispref/markers.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/minibuf.texi | 49 | ||||
| -rw-r--r-- | doc/lispref/numbers.texi | 35 | ||||
| -rw-r--r-- | doc/lispref/positions.texi | 29 | ||||
| -rw-r--r-- | doc/lispref/searching.texi | 8 | ||||
| -rw-r--r-- | doc/lispref/syntax.texi | 64 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 7 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 36 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 16 | ||||
| -rw-r--r-- | doc/misc/texinfo.tex | 84 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 3 | ||||
| -rw-r--r-- | doc/misc/trampver.texi | 2 |
23 files changed, 347 insertions, 196 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index a4f9985ad85..35e635eec28 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,8 +1,29 @@ | |||
| 1 | 2012-09-17 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * building.texi (GDB User Interface Layout): Remove reference to | ||
| 4 | removed variable gdb-use-separate-io-buffer (Bug#12454). | ||
| 5 | |||
| 6 | 2012-09-08 Jambunathan K <kjambunathan@gmail.com> | ||
| 7 | |||
| 8 | * regs.texi (Text Registers): `C-x r +' can now be used instead of | ||
| 9 | M-x append-to-register. New option `register-separator'. | ||
| 10 | (Number Registers): Mention that `C-x r +' is polymorphic. | ||
| 11 | |||
| 12 | 2012-09-07 Chong Yidong <cyd@gnu.org> | ||
| 13 | |||
| 14 | * windows.texi (Window Choice): Don't mention obsolete | ||
| 15 | display-buffer-reuse-frames. | ||
| 16 | |||
| 17 | 2012-09-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 18 | |||
| 19 | Give more-useful info on a fatal error (Bug#12328). | ||
| 20 | * trouble.texi (Crashing): New section, documenting this. | ||
| 21 | |||
| 1 | 2012-08-24 Michael Albinus <michael.albinus@gmx.de> | 22 | 2012-08-24 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 23 | ||
| 3 | * cmdargs.texi (General Variables): Setting | 24 | * cmdargs.texi (General Variables): |
| 4 | $DBUS_SESSION_BUS_ADDRESS to a dummy value suppresses connections | 25 | Setting $DBUS_SESSION_BUS_ADDRESS to a dummy value suppresses |
| 5 | to the D-Bus session bus. (Bug#12112) | 26 | connections to the D-Bus session bus. (Bug#12112) |
| 6 | 27 | ||
| 7 | 2012-08-14 Eli Zaretskii <eliz@gnu.org> | 28 | 2012-08-14 Eli Zaretskii <eliz@gnu.org> |
| 8 | 29 | ||
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 05ea667e5f7..21948f181fb 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi | |||
| @@ -888,10 +888,6 @@ displays the following frame layout: | |||
| 888 | @end group | 888 | @end group |
| 889 | @end smallexample | 889 | @end smallexample |
| 890 | 890 | ||
| 891 | However, if @code{gdb-use-separate-io-buffer} is @code{nil}, the I/O | ||
| 892 | buffer does not appear and the primary source buffer occupies the full | ||
| 893 | width of the frame. | ||
| 894 | |||
| 895 | @findex gdb-restore-windows | 891 | @findex gdb-restore-windows |
| 896 | @findex gdb-many-windows | 892 | @findex gdb-many-windows |
| 897 | If you ever change the window layout, you can restore the ``many | 893 | If you ever change the window layout, you can restore the ``many |
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi index 6357aebc6ff..192a9a2bb28 100644 --- a/doc/emacs/emacs.texi +++ b/doc/emacs/emacs.texi | |||
| @@ -1136,6 +1136,7 @@ Dealing with Emacs Trouble | |||
| 1136 | * Screen Garbled:: Garbage on the screen. | 1136 | * Screen Garbled:: Garbage on the screen. |
| 1137 | * Text Garbled:: Garbage in the text. | 1137 | * Text Garbled:: Garbage in the text. |
| 1138 | * Memory Full:: How to cope when you run out of memory. | 1138 | * Memory Full:: How to cope when you run out of memory. |
| 1139 | * Crashing:: What Emacs does when it crashes. | ||
| 1139 | * After a Crash:: Recovering editing in an Emacs session that crashed. | 1140 | * After a Crash:: Recovering editing in an Emacs session that crashed. |
| 1140 | * Emergency Escape:: What to do if Emacs stops responding. | 1141 | * Emergency Escape:: What to do if Emacs stops responding. |
| 1141 | 1142 | ||
| @@ -1320,7 +1321,7 @@ when you get it, not just free for the manufacturer. | |||
| 1320 | If you find GNU Emacs useful, please @strong{send a donation} to the | 1321 | If you find GNU Emacs useful, please @strong{send a donation} to the |
| 1321 | Free Software Foundation to support our work. Donations to the Free | 1322 | Free Software Foundation to support our work. Donations to the Free |
| 1322 | Software Foundation are tax deductible in the US. If you use GNU Emacs | 1323 | Software Foundation are tax deductible in the US. If you use GNU Emacs |
| 1323 | at your workplace, please suggest that the company make a donation. | 1324 | at your workplace, please suggest that the company make a donation. |
| 1324 | For more information on how you can help, see | 1325 | For more information on how you can help, see |
| 1325 | @url{http://www.gnu.org/help/help.html}. | 1326 | @url{http://www.gnu.org/help/help.html}. |
| 1326 | 1327 | ||
diff --git a/doc/emacs/regs.texi b/doc/emacs/regs.texi index 72fd6458dde..0a83c0bdddd 100644 --- a/doc/emacs/regs.texi +++ b/doc/emacs/regs.texi | |||
| @@ -92,6 +92,13 @@ Copy region into register @var{r} (@code{copy-to-register}). | |||
| 92 | Insert text from register @var{r} (@code{insert-register}). | 92 | Insert text from register @var{r} (@code{insert-register}). |
| 93 | @item M-x append-to-register @key{RET} @var{r} | 93 | @item M-x append-to-register @key{RET} @var{r} |
| 94 | Append region to text in register @var{r}. | 94 | Append region to text in register @var{r}. |
| 95 | |||
| 96 | @kindex C-x r + | ||
| 97 | When register @var{r} contains text, you can use @kbd{C-x r +} | ||
| 98 | (@code{increment-register}) to append to that register. Note that | ||
| 99 | command @kbd{C-x r +} behaves differently if @var{r} contains a | ||
| 100 | number. @xref{Number Registers}. | ||
| 101 | |||
| 95 | @item M-x prepend-to-register @key{RET} @var{r} | 102 | @item M-x prepend-to-register @key{RET} @var{r} |
| 96 | Prepend region to text in register @var{r}. | 103 | Prepend region to text in register @var{r}. |
| 97 | @end table | 104 | @end table |
| @@ -116,6 +123,19 @@ region after appending it to the register. The command | |||
| 116 | the region text to the text in the register instead of | 123 | the region text to the text in the register instead of |
| 117 | @emph{appending} it. | 124 | @emph{appending} it. |
| 118 | 125 | ||
| 126 | @vindex register-separator | ||
| 127 | When you are collecting text using @code{append-to-register} and | ||
| 128 | @code{prepend-to-register}, you may want to separate individual | ||
| 129 | collected pieces using a separator. In that case, configure a | ||
| 130 | @code{register-separator} and store the separator text in to that | ||
| 131 | register. For example, to get double newlines as text separator | ||
| 132 | during the collection process, you can use the following setting. | ||
| 133 | |||
| 134 | @example | ||
| 135 | (setq register-separator ?+) | ||
| 136 | (set-register register-separator "\n\n") | ||
| 137 | @end example | ||
| 138 | |||
| 119 | @kindex C-x r i | 139 | @kindex C-x r i |
| 120 | @findex insert-register | 140 | @findex insert-register |
| 121 | @kbd{C-x r i @var{r}} inserts in the buffer the text from register | 141 | @kbd{C-x r i @var{r}} inserts in the buffer the text from register |
| @@ -191,8 +211,10 @@ Store @var{number} into register @var{r} (@code{number-to-register}). | |||
| 191 | @item C-u @var{number} C-x r + @var{r} | 211 | @item C-u @var{number} C-x r + @var{r} |
| 192 | @kindex C-x r + | 212 | @kindex C-x r + |
| 193 | @findex increment-register | 213 | @findex increment-register |
| 194 | Increment the number in register @var{r} by @var{number} | 214 | If @var{r} contains a number, increment the number in that register by |
| 195 | (@code{increment-register}). | 215 | @var{number}. Note that command @kbd{C-x r +} |
| 216 | (@code{increment-register}) behaves differently if @var{r} contains | ||
| 217 | text. @xref{Text Registers}. | ||
| 196 | @item C-x r i @var{r} | 218 | @item C-x r i @var{r} |
| 197 | Insert the number from register @var{r} into the buffer. | 219 | Insert the number from register @var{r} into the buffer. |
| 198 | @end table | 220 | @end table |
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi index 025185c583f..1806339e45d 100644 --- a/doc/emacs/trouble.texi +++ b/doc/emacs/trouble.texi | |||
| @@ -149,6 +149,7 @@ Emacs. | |||
| 149 | * Screen Garbled:: Garbage on the screen. | 149 | * Screen Garbled:: Garbage on the screen. |
| 150 | * Text Garbled:: Garbage in the text. | 150 | * Text Garbled:: Garbage in the text. |
| 151 | * Memory Full:: How to cope when you run out of memory. | 151 | * Memory Full:: How to cope when you run out of memory. |
| 152 | * Crashing:: What Emacs does when it crashes. | ||
| 152 | * After a Crash:: Recovering editing in an Emacs session that crashed. | 153 | * After a Crash:: Recovering editing in an Emacs session that crashed. |
| 153 | * Emergency Escape:: What to do if Emacs stops responding. | 154 | * Emergency Escape:: What to do if Emacs stops responding. |
| 154 | @end menu | 155 | @end menu |
| @@ -277,6 +278,44 @@ editing in the same Emacs session. | |||
| 277 | out of memory, because the buffer menu needs a fair amount of memory | 278 | out of memory, because the buffer menu needs a fair amount of memory |
| 278 | itself, and the reserve supply may not be enough. | 279 | itself, and the reserve supply may not be enough. |
| 279 | 280 | ||
| 281 | @node Crashing | ||
| 282 | @subsection When Emacs Crashes | ||
| 283 | |||
| 284 | Emacs is not supposed to crash, but if it does, before it exits it | ||
| 285 | reports some information about the crash to the standard error stream | ||
| 286 | @code{stderr}. This report may be useful to someone who later debugs | ||
| 287 | the same version of Emacs on the same platform. The format of this | ||
| 288 | report depends on the platform, and some platforms support backtraces. | ||
| 289 | Here is an example, generated on x86-64 GNU/Linux with version 2.15 of | ||
| 290 | the GNU C Library: | ||
| 291 | |||
| 292 | @example | ||
| 293 | Fatal error 11: Segmentation fault | ||
| 294 | Backtrace: | ||
| 295 | emacs[0x5094e4] | ||
| 296 | emacs[0x4ed3e6] | ||
| 297 | emacs[0x4ed504] | ||
| 298 | /lib64/libpthread.so.0[0x375220efe0] | ||
| 299 | /lib64/libpthread.so.0(read+0xe)[0x375220e08e] | ||
| 300 | emacs[0x509af6] | ||
| 301 | emacs[0x5acc26] | ||
| 302 | emacs[0x5adbfb] | ||
| 303 | emacs[0x56566b] | ||
| 304 | emacs[0x59bac3] | ||
| 305 | emacs[0x565151] | ||
| 306 | ... | ||
| 307 | @end example | ||
| 308 | |||
| 309 | @noindent | ||
| 310 | The number @samp{11} is the system signal number that corresponds to | ||
| 311 | the problem, a segmentation fault here. The hexadecimal program | ||
| 312 | addresses can be useful in debugging sessions. For example, the GDB | ||
| 313 | command @samp{list *0x509af6} prints the source-code lines | ||
| 314 | corresponding to the @samp{emacs[0x509af6]} entry in the backtrace. | ||
| 315 | |||
| 316 | The three dots at the end indicate that Emacs suppressed further | ||
| 317 | backtrace entries, in the interest of brevity. | ||
| 318 | |||
| 280 | @node After a Crash | 319 | @node After a Crash |
| 281 | @subsection Recovery After a Crash | 320 | @subsection Recovery After a Crash |
| 282 | 321 | ||
diff --git a/doc/emacs/windows.texi b/doc/emacs/windows.texi index 2496a505063..04d1353006f 100644 --- a/doc/emacs/windows.texi +++ b/doc/emacs/windows.texi | |||
| @@ -378,12 +378,10 @@ adding the desired buffer's name to the list | |||
| 378 | expression to the list @code{same-window-regexps}. By default, these | 378 | expression to the list @code{same-window-regexps}. By default, these |
| 379 | variables are @code{nil}, so this step is skipped. | 379 | variables are @code{nil}, so this step is skipped. |
| 380 | 380 | ||
| 381 | @vindex display-buffer-reuse-frames | ||
| 382 | @item | 381 | @item |
| 383 | Otherwise, if the buffer is already displayed in an existing window, | 382 | Otherwise, if the buffer is already displayed in an existing window, |
| 384 | ``reuse'' that window. Normally, only windows on the selected frame | 383 | ``reuse'' that window. Normally, only windows on the selected frame |
| 385 | are considered, but windows on other frames are also reusable if you | 384 | are considered, but windows on other frames are also reusable if you |
| 386 | change @code{display-buffer-reuse-frames} to @code{t}, or if you | ||
| 387 | change @code{pop-up-frames} (see below) to @code{t}. | 385 | change @code{pop-up-frames} (see below) to @code{t}. |
| 388 | 386 | ||
| 389 | @item | 387 | @item |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index b0156e5ac7e..ce99c81a912 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,56 @@ | |||
| 1 | 2012-09-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Simplify, document, and port floating-point (Bug#12381). | ||
| 4 | * numbers.texi (Float Basics, Arithmetic Operations, Math Functions): | ||
| 5 | Document that / and mod (with floating point arguments), along | ||
| 6 | with asin, acos, log, log10, expt and sqrt, return special values | ||
| 7 | instead of signaling exceptions. | ||
| 8 | (Float Basics): Document that logb operates on the absolute value | ||
| 9 | of its argument. | ||
| 10 | (Math Functions): Document that (log ARG BASE) also returns NaN if | ||
| 11 | BASE is negative. Document that (expt X Y) returns NaN if X is a | ||
| 12 | finite negative number and Y a finite non-integer. | ||
| 13 | |||
| 14 | 2012-09-09 Chong Yidong <cyd@gnu.org> | ||
| 15 | |||
| 16 | * lists.texi (Sets And Lists): Explain that the return value for | ||
| 17 | delete should be used, like for delq. | ||
| 18 | |||
| 19 | * minibuf.texi (Yes-or-No Queries): Document recentering and | ||
| 20 | scrolling in y-or-n-p. Remove gratuitous example. | ||
| 21 | |||
| 22 | * searching.texi (Search and Replace): Document window scrolling | ||
| 23 | entries in query-replace-map. | ||
| 24 | |||
| 25 | 2012-09-08 Chong Yidong <cyd@gnu.org> | ||
| 26 | |||
| 27 | * syntax.texi (Syntax Table Internals): Define "raw syntax | ||
| 28 | descriptor" terminology (Bug#12383). | ||
| 29 | (Syntax Descriptors): Mention raw syntax descriptors. | ||
| 30 | |||
| 31 | 2012-09-07 Chong Yidong <cyd@gnu.org> | ||
| 32 | |||
| 33 | * variables.texi (Creating Buffer-Local): Fix description of | ||
| 34 | local-variable-if-set-p (Bug#10713). | ||
| 35 | |||
| 36 | * eval.texi (Intro Eval): Add index entry for sexp (Bug#12233). | ||
| 37 | |||
| 38 | * windows.texi (Display Action Functions) | ||
| 39 | (Choosing Window Options): Remove obsolete variable | ||
| 40 | display-buffer-reuse-frames. | ||
| 41 | (Switching Buffers): Minor doc tweak for switch-to-buffer. | ||
| 42 | |||
| 43 | * positions.texi (Narrowing): Document buffer-narrowed-p. | ||
| 44 | |||
| 45 | * markers.texi (Moving Markers): Add xref to Point (Bug#7151). | ||
| 46 | |||
| 47 | * syntax.texi (Low-Level Parsing): Add xref to Parser State | ||
| 48 | (Bug#12269). | ||
| 49 | |||
| 50 | 2012-09-04 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 51 | |||
| 52 | * debugging.texi (Explicit Debug): Document `debug-on-message'. | ||
| 53 | |||
| 1 | 2012-09-02 Chong Yidong <cyd@gnu.org> | 54 | 2012-09-02 Chong Yidong <cyd@gnu.org> |
| 2 | 55 | ||
| 3 | * windows.texi (Window Configurations): Recommend against using | 56 | * windows.texi (Window Configurations): Recommend against using |
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index 7e24de94fbe..dc0fa4c639d 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi | |||
| @@ -2738,17 +2738,6 @@ This function converts the string or vector @var{key} to a list of | |||
| 2738 | individual events, which you can put in @code{unread-command-events}. | 2738 | individual events, which you can put in @code{unread-command-events}. |
| 2739 | @end defun | 2739 | @end defun |
| 2740 | 2740 | ||
| 2741 | @ignore | ||
| 2742 | @defvar unread-command-char | ||
| 2743 | This variable holds a character to be read as command input. | ||
| 2744 | A value of -1 means ``empty''. | ||
| 2745 | |||
| 2746 | This variable is mostly obsolete now that you can use | ||
| 2747 | @code{unread-command-events} instead; it exists only to support programs | ||
| 2748 | written for Emacs versions 18 and earlier. | ||
| 2749 | @end defvar | ||
| 2750 | @end ignore | ||
| 2751 | |||
| 2752 | @defun input-pending-p | 2741 | @defun input-pending-p |
| 2753 | @cindex waiting for command key input | 2742 | @cindex waiting for command key input |
| 2754 | This function determines whether any command input is currently | 2743 | This function determines whether any command input is currently |
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index 00e8d84e9b3..5aeff576d09 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi | |||
| @@ -298,6 +298,11 @@ of @code{(debug)} isn't ignored, it will alter the execution of the | |||
| 298 | program!) The most common suitable places are inside a @code{progn} or | 298 | program!) The most common suitable places are inside a @code{progn} or |
| 299 | an implicit @code{progn} (@pxref{Sequencing}). | 299 | an implicit @code{progn} (@pxref{Sequencing}). |
| 300 | 300 | ||
| 301 | If you don't know exactly where in the source code you want to put | ||
| 302 | the debug statement, but you want to display a backtrace when a | ||
| 303 | certain message is displayed, you can set @code{debug-on-message} to a | ||
| 304 | regular expression matching the desired message. | ||
| 305 | |||
| 301 | @node Using Debugger | 306 | @node Using Debugger |
| 302 | @subsection Using the Debugger | 307 | @subsection Using the Debugger |
| 303 | 308 | ||
diff --git a/doc/lispref/eval.texi b/doc/lispref/eval.texi index 6dc6287b803..b373ecfbe62 100644 --- a/doc/lispref/eval.texi +++ b/doc/lispref/eval.texi | |||
| @@ -40,6 +40,7 @@ interpreter. | |||
| 40 | @cindex form | 40 | @cindex form |
| 41 | @cindex expression | 41 | @cindex expression |
| 42 | @cindex S-expression | 42 | @cindex S-expression |
| 43 | @cindex sexp | ||
| 43 | A Lisp object that is intended for evaluation is called a @dfn{form} | 44 | A Lisp object that is intended for evaluation is called a @dfn{form} |
| 44 | or @dfn{expression}@footnote{It is sometimes also referred to as an | 45 | or @dfn{expression}@footnote{It is sometimes also referred to as an |
| 45 | @dfn{S-expression} or @dfn{sexp}, but we generally do not use this | 46 | @dfn{S-expression} or @dfn{sexp}, but we generally do not use this |
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi index 023f8ba18dd..d685ce0aa74 100644 --- a/doc/lispref/lists.texi +++ b/doc/lispref/lists.texi | |||
| @@ -1293,14 +1293,19 @@ compare @var{object} against the elements of the list. For example: | |||
| 1293 | @defun delq object list | 1293 | @defun delq object list |
| 1294 | @cindex deleting list elements | 1294 | @cindex deleting list elements |
| 1295 | This function destructively removes all elements @code{eq} to | 1295 | This function destructively removes all elements @code{eq} to |
| 1296 | @var{object} from @var{list}. The letter @samp{q} in @code{delq} says | 1296 | @var{object} from @var{list}, and returns the resulting list. The |
| 1297 | that it uses @code{eq} to compare @var{object} against the elements of | 1297 | letter @samp{q} in @code{delq} says that it uses @code{eq} to compare |
| 1298 | the list, like @code{memq} and @code{remq}. | 1298 | @var{object} against the elements of the list, like @code{memq} and |
| 1299 | @code{remq}. | ||
| 1300 | |||
| 1301 | Typically, when you invoke @code{delq}, you should use the return | ||
| 1302 | value by assigning it to the variable which held the original list. | ||
| 1303 | The reason for this is explained below. | ||
| 1299 | @end defun | 1304 | @end defun |
| 1300 | 1305 | ||
| 1301 | When @code{delq} deletes elements from the front of the list, it does so | 1306 | The @code{delq} function deletes elements from the front of the list |
| 1302 | simply by advancing down the list and returning a sublist that starts | 1307 | by simply advancing down the list, and returning a sublist that starts |
| 1303 | after those elements: | 1308 | after those elements. For example: |
| 1304 | 1309 | ||
| 1305 | @example | 1310 | @example |
| 1306 | @group | 1311 | @group |
| @@ -1308,6 +1313,7 @@ after those elements: | |||
| 1308 | @end group | 1313 | @end group |
| 1309 | @end example | 1314 | @end example |
| 1310 | 1315 | ||
| 1316 | @noindent | ||
| 1311 | When an element to be deleted appears in the middle of the list, | 1317 | When an element to be deleted appears in the middle of the list, |
| 1312 | removing it involves changing the @sc{cdr}s (@pxref{Setcdr}). | 1318 | removing it involves changing the @sc{cdr}s (@pxref{Setcdr}). |
| 1313 | 1319 | ||
| @@ -1432,12 +1438,15 @@ Compare this with @code{memq}: | |||
| 1432 | @end defun | 1438 | @end defun |
| 1433 | 1439 | ||
| 1434 | @defun delete object sequence | 1440 | @defun delete object sequence |
| 1435 | If @code{sequence} is a list, this function destructively removes all | 1441 | This function removes all elements @code{equal} to @var{object} from |
| 1436 | elements @code{equal} to @var{object} from @var{sequence}. For lists, | 1442 | @var{sequence}, and returns the resulting sequence. |
| 1437 | @code{delete} is to @code{delq} as @code{member} is to @code{memq}: it | 1443 | |
| 1438 | uses @code{equal} to compare elements with @var{object}, like | 1444 | If @var{sequence} is a list, @code{delete} is to @code{delq} as |
| 1439 | @code{member}; when it finds an element that matches, it cuts the | 1445 | @code{member} is to @code{memq}: it uses @code{equal} to compare |
| 1440 | element out just as @code{delq} would. | 1446 | elements with @var{object}, like @code{member}; when it finds an |
| 1447 | element that matches, it cuts the element out just as @code{delq} | ||
| 1448 | would. As with @code{delq}, you should typically use the return value | ||
| 1449 | by assigning it to the variable which held the original list. | ||
| 1441 | 1450 | ||
| 1442 | If @code{sequence} is a vector or string, @code{delete} returns a copy | 1451 | If @code{sequence} is a vector or string, @code{delete} returns a copy |
| 1443 | of @code{sequence} with all elements @code{equal} to @code{object} | 1452 | of @code{sequence} with all elements @code{equal} to @code{object} |
diff --git a/doc/lispref/markers.texi b/doc/lispref/markers.texi index 22e806defec..80136f2e6f4 100644 --- a/doc/lispref/markers.texi +++ b/doc/lispref/markers.texi | |||
| @@ -355,9 +355,9 @@ the current buffer. | |||
| 355 | 355 | ||
| 356 | If @var{position} is less than 1, @code{set-marker} moves @var{marker} | 356 | If @var{position} is less than 1, @code{set-marker} moves @var{marker} |
| 357 | to the beginning of the buffer. If @var{position} is greater than the | 357 | to the beginning of the buffer. If @var{position} is greater than the |
| 358 | size of the buffer, @code{set-marker} moves marker to the end of the | 358 | size of the buffer (@pxref{Point}), @code{set-marker} moves marker to |
| 359 | buffer. If @var{position} is @code{nil} or a marker that points | 359 | the end of the buffer. If @var{position} is @code{nil} or a marker |
| 360 | nowhere, then @var{marker} is set to point nowhere. | 360 | that points nowhere, then @var{marker} is set to point nowhere. |
| 361 | 361 | ||
| 362 | The value returned is @var{marker}. | 362 | The value returned is @var{marker}. |
| 363 | 363 | ||
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index 4cf096b8663..3d6e80bf3f0 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -1888,47 +1888,14 @@ Echo Area}), which uses the same screen space as the minibuffer. The | |||
| 1888 | cursor moves to the echo area while the question is being asked. | 1888 | cursor moves to the echo area while the question is being asked. |
| 1889 | 1889 | ||
| 1890 | The answers and their meanings, even @samp{y} and @samp{n}, are not | 1890 | The answers and their meanings, even @samp{y} and @samp{n}, are not |
| 1891 | hardwired. The keymap @code{query-replace-map} specifies them. | 1891 | hardwired, and are specified by the keymap @code{query-replace-map} |
| 1892 | @xref{Search and Replace}. | 1892 | (@pxref{Search and Replace}). In particular, if the user enters the |
| 1893 | 1893 | special responses @code{recenter}, @code{scroll-up}, | |
| 1894 | In the following example, the user first types @kbd{q}, which is | 1894 | @code{scroll-down}, @code{scroll-other-window}, or |
| 1895 | invalid. At the next prompt the user types @kbd{y}. | 1895 | @code{scroll-other-window-down} (respectively bound to @kbd{C-l}, |
| 1896 | 1896 | @kbd{C-v}, @kbd{M-v}, @kbd{C-M-v} and @kbd{C-M-S-v} in | |
| 1897 | @c Need an interactive example, because otherwise the return value | 1897 | @code{query-replace-map}), this function performs the specified window |
| 1898 | @c obscures the display of the valid answer. | 1898 | recentering or scrolling operation, and poses the question again. |
| 1899 | @smallexample | ||
| 1900 | @group | ||
| 1901 | (defun ask () | ||
| 1902 | (interactive) | ||
| 1903 | (y-or-n-p "Do you need a lift? ")) | ||
| 1904 | |||
| 1905 | ;; @r{After evaluation of the preceding definition, @kbd{M-x ask}} | ||
| 1906 | ;; @r{causes the following prompt to appear in the echo area:} | ||
| 1907 | @end group | ||
| 1908 | |||
| 1909 | @group | ||
| 1910 | ---------- Echo area ---------- | ||
| 1911 | Do you need a lift? (y or n) | ||
| 1912 | ---------- Echo area ---------- | ||
| 1913 | @end group | ||
| 1914 | |||
| 1915 | ;; @r{If the user then types @kbd{q}, the following appears:} | ||
| 1916 | |||
| 1917 | @group | ||
| 1918 | ---------- Echo area ---------- | ||
| 1919 | Please answer y or n. Do you need a lift? (y or n) | ||
| 1920 | ---------- Echo area ---------- | ||
| 1921 | @end group | ||
| 1922 | |||
| 1923 | ;; @r{When the user types a valid answer,} | ||
| 1924 | ;; @r{it is displayed after the question:} | ||
| 1925 | |||
| 1926 | @group | ||
| 1927 | ---------- Echo area ---------- | ||
| 1928 | Do you need a lift? (y or n) y | ||
| 1929 | ---------- Echo area ---------- | ||
| 1930 | @end group | ||
| 1931 | @end smallexample | ||
| 1932 | 1899 | ||
| 1933 | @noindent | 1900 | @noindent |
| 1934 | We show successive lines of echo area messages, but only one actually | 1901 | We show successive lines of echo area messages, but only one actually |
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi index 17f3ee099bd..7c9672a38c0 100644 --- a/doc/lispref/numbers.texi +++ b/doc/lispref/numbers.texi | |||
| @@ -196,6 +196,14 @@ numerical functions return such values in cases where there is no | |||
| 196 | correct answer. For example, @code{(/ 0.0 0.0)} returns a NaN. (NaN | 196 | correct answer. For example, @code{(/ 0.0 0.0)} returns a NaN. (NaN |
| 197 | values can also carry a sign, but for practical purposes there's no | 197 | values can also carry a sign, but for practical purposes there's no |
| 198 | significant difference between different NaN values in Emacs Lisp.) | 198 | significant difference between different NaN values in Emacs Lisp.) |
| 199 | |||
| 200 | When a function is documented to return a NaN, it returns an | ||
| 201 | implementation-defined value when Emacs is running on one of the | ||
| 202 | now-rare platforms that do not use @acronym{IEEE} floating point. For | ||
| 203 | example, @code{(log -1.0)} typically returns a NaN, but on | ||
| 204 | non-@acronym{IEEE} platforms it returns an implementation-defined | ||
| 205 | value. | ||
| 206 | |||
| 199 | Here are the read syntaxes for these special floating point values: | 207 | Here are the read syntaxes for these special floating point values: |
| 200 | 208 | ||
| 201 | @table @asis | 209 | @table @asis |
| @@ -241,7 +249,7 @@ numbers. | |||
| 241 | 249 | ||
| 242 | @defun logb number | 250 | @defun logb number |
| 243 | This function returns the binary exponent of @var{number}. More | 251 | This function returns the binary exponent of @var{number}. More |
| 244 | precisely, the value is the logarithm of @var{number} base 2, rounded | 252 | precisely, the value is the logarithm of |@var{number}| base 2, rounded |
| 245 | down to an integer. | 253 | down to an integer. |
| 246 | 254 | ||
| 247 | @example | 255 | @example |
| @@ -694,7 +702,8 @@ arguments. It also permits floating point arguments; it rounds the | |||
| 694 | quotient downward (towards minus infinity) to an integer, and uses that | 702 | quotient downward (towards minus infinity) to an integer, and uses that |
| 695 | quotient to compute the remainder. | 703 | quotient to compute the remainder. |
| 696 | 704 | ||
| 697 | An @code{arith-error} results if @var{divisor} is 0. | 705 | If @var{divisor} is zero, @code{mod} signals an @code{arith-error} |
| 706 | error if both arguments are integers, and returns a NaN otherwise. | ||
| 698 | 707 | ||
| 699 | @example | 708 | @example |
| 700 | @group | 709 | @group |
| @@ -1096,8 +1105,8 @@ pi/2 | |||
| 1096 | @tex | 1105 | @tex |
| 1097 | @math{\pi/2} | 1106 | @math{\pi/2} |
| 1098 | @end tex | 1107 | @end tex |
| 1099 | (inclusive) whose sine is @var{arg}; if, however, @var{arg} is out of | 1108 | (inclusive) whose sine is @var{arg}. If @var{arg} is out of range |
| 1100 | range (outside [@minus{}1, 1]), it signals a @code{domain-error} error. | 1109 | (outside [@minus{}1, 1]), @code{asin} returns a NaN. |
| 1101 | @end defun | 1110 | @end defun |
| 1102 | 1111 | ||
| 1103 | @defun acos arg | 1112 | @defun acos arg |
| @@ -1108,8 +1117,8 @@ pi | |||
| 1108 | @tex | 1117 | @tex |
| 1109 | @math{\pi} | 1118 | @math{\pi} |
| 1110 | @end tex | 1119 | @end tex |
| 1111 | (inclusive) whose cosine is @var{arg}; if, however, @var{arg} is out | 1120 | (inclusive) whose cosine is @var{arg}. If @var{arg} is out of range |
| 1112 | of range (outside [@minus{}1, 1]), it signals a @code{domain-error} error. | 1121 | (outside [@minus{}1, 1]), @code{acos} returns a NaN. |
| 1113 | @end defun | 1122 | @end defun |
| 1114 | 1123 | ||
| 1115 | @defun atan y &optional x | 1124 | @defun atan y &optional x |
| @@ -1141,8 +1150,8 @@ This is the exponential function; it returns @math{e} to the power | |||
| 1141 | @defun log arg &optional base | 1150 | @defun log arg &optional base |
| 1142 | This function returns the logarithm of @var{arg}, with base | 1151 | This function returns the logarithm of @var{arg}, with base |
| 1143 | @var{base}. If you don't specify @var{base}, the natural base | 1152 | @var{base}. If you don't specify @var{base}, the natural base |
| 1144 | @math{e} is used. If @var{arg} is negative, it signals a | 1153 | @math{e} is used. If @var{arg} or @var{base} is negative, @code{log} |
| 1145 | @code{domain-error} error. | 1154 | returns a NaN. |
| 1146 | @end defun | 1155 | @end defun |
| 1147 | 1156 | ||
| 1148 | @ignore | 1157 | @ignore |
| @@ -1160,21 +1169,21 @@ lose accuracy. | |||
| 1160 | @end ignore | 1169 | @end ignore |
| 1161 | 1170 | ||
| 1162 | @defun log10 arg | 1171 | @defun log10 arg |
| 1163 | This function returns the logarithm of @var{arg}, with base 10. If | 1172 | This function returns the logarithm of @var{arg}, with base 10: |
| 1164 | @var{arg} is negative, it signals a @code{domain-error} error. | 1173 | @code{(log10 @var{x})} @equiv{} @code{(log @var{x} 10)}. |
| 1165 | @code{(log10 @var{x})} @equiv{} @code{(log @var{x} 10)}, at least | ||
| 1166 | approximately. | ||
| 1167 | @end defun | 1174 | @end defun |
| 1168 | 1175 | ||
| 1169 | @defun expt x y | 1176 | @defun expt x y |
| 1170 | This function returns @var{x} raised to power @var{y}. If both | 1177 | This function returns @var{x} raised to power @var{y}. If both |
| 1171 | arguments are integers and @var{y} is positive, the result is an | 1178 | arguments are integers and @var{y} is positive, the result is an |
| 1172 | integer; in this case, overflow causes truncation, so watch out. | 1179 | integer; in this case, overflow causes truncation, so watch out. |
| 1180 | If @var{x} is a finite negative number and @var{y} is a finite | ||
| 1181 | non-integer, @code{expt} returns a NaN. | ||
| 1173 | @end defun | 1182 | @end defun |
| 1174 | 1183 | ||
| 1175 | @defun sqrt arg | 1184 | @defun sqrt arg |
| 1176 | This returns the square root of @var{arg}. If @var{arg} is negative, | 1185 | This returns the square root of @var{arg}. If @var{arg} is negative, |
| 1177 | it signals a @code{domain-error} error. | 1186 | @code{sqrt} returns a NaN. |
| 1178 | @end defun | 1187 | @end defun |
| 1179 | 1188 | ||
| 1180 | In addition, Emacs defines the following common mathematical | 1189 | In addition, Emacs defines the following common mathematical |
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi index a0c65319850..c4576e6456d 100644 --- a/doc/lispref/positions.texi +++ b/doc/lispref/positions.texi | |||
| @@ -874,18 +874,18 @@ commands to a limited range of characters in a buffer. The text that | |||
| 874 | remains addressable is called the @dfn{accessible portion} of the | 874 | remains addressable is called the @dfn{accessible portion} of the |
| 875 | buffer. | 875 | buffer. |
| 876 | 876 | ||
| 877 | Narrowing is specified with two buffer positions which become the | 877 | Narrowing is specified with two buffer positions, which become the |
| 878 | beginning and end of the accessible portion. For most editing commands | 878 | beginning and end of the accessible portion. For most editing |
| 879 | and most Emacs primitives, these positions replace the values of the | 879 | commands and primitives, these positions replace the values of the |
| 880 | beginning and end of the buffer. While narrowing is in effect, no text | 880 | beginning and end of the buffer. While narrowing is in effect, no |
| 881 | outside the accessible portion is displayed, and point cannot move | 881 | text outside the accessible portion is displayed, and point cannot |
| 882 | outside the accessible portion. | 882 | move outside the accessible portion. Note that narrowing does not |
| 883 | 883 | alter actual buffer positions (@pxref{Point}); it only determines | |
| 884 | Values such as positions or line numbers, which usually count from the | 884 | which positions are considered the accessible portion of the buffer. |
| 885 | beginning of the buffer, do so despite narrowing, but the functions | 885 | Most functions refuse to operate on text that is outside the |
| 886 | which use them refuse to operate on text that is inaccessible. | 886 | accessible portion. |
| 887 | 887 | ||
| 888 | The commands for saving buffers are unaffected by narrowing; they save | 888 | Commands for saving buffers are unaffected by narrowing; they save |
| 889 | the entire buffer regardless of any narrowing. | 889 | the entire buffer regardless of any narrowing. |
| 890 | 890 | ||
| 891 | If you need to display in a single buffer several very different | 891 | If you need to display in a single buffer several very different |
| @@ -924,6 +924,11 @@ It is equivalent to the following expression: | |||
| 924 | @end example | 924 | @end example |
| 925 | @end deffn | 925 | @end deffn |
| 926 | 926 | ||
| 927 | @defun buffer-narrowed-p | ||
| 928 | This function returns non-@code{nil} if the buffer is narrowed, and | ||
| 929 | @code{nil} otherwise. | ||
| 930 | @end defun | ||
| 931 | |||
| 927 | @defspec save-restriction body@dots{} | 932 | @defspec save-restriction body@dots{} |
| 928 | This special form saves the current bounds of the accessible portion, | 933 | This special form saves the current bounds of the accessible portion, |
| 929 | evaluates the @var{body} forms, and finally restores the saved bounds, | 934 | evaluates the @var{body} forms, and finally restores the saved bounds, |
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 0fa681ecb51..edd1d30e28d 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi | |||
| @@ -1796,7 +1796,13 @@ Delete the text being considered, then enter a recursive edit to replace | |||
| 1796 | it. | 1796 | it. |
| 1797 | 1797 | ||
| 1798 | @item recenter | 1798 | @item recenter |
| 1799 | Redisplay and center the window, then ask the same question again. | 1799 | @itemx scroll-up |
| 1800 | @itemx scroll-down | ||
| 1801 | @itemx scroll-other-window | ||
| 1802 | @itemx scroll-other-window-down | ||
| 1803 | Perform the specified window scroll operation, then ask the same | ||
| 1804 | question again. Only @code{y-or-n-p} and related functions use this | ||
| 1805 | answer. | ||
| 1800 | 1806 | ||
| 1801 | @item quit | 1807 | @item quit |
| 1802 | Perform a quit right away. Only @code{y-or-n-p} and related functions | 1808 | Perform a quit right away. Only @code{y-or-n-p} and related functions |
diff --git a/doc/lispref/syntax.texi b/doc/lispref/syntax.texi index ab685290901..624b5a92d6e 100644 --- a/doc/lispref/syntax.texi +++ b/doc/lispref/syntax.texi | |||
| @@ -130,6 +130,10 @@ comment-ender), and the entry for @samp{/} is @samp{@w{. 14}} (i.e., | |||
| 130 | punctuation, matching character slot unused, first character of a | 130 | punctuation, matching character slot unused, first character of a |
| 131 | comment-starter, second character of a comment-ender). | 131 | comment-starter, second character of a comment-ender). |
| 132 | 132 | ||
| 133 | Emacs also defines @dfn{raw syntax descriptors}, which are used to | ||
| 134 | describe syntax classes at a lower level. @xref{Syntax Table | ||
| 135 | Internals}. | ||
| 136 | |||
| 133 | @menu | 137 | @menu |
| 134 | * Syntax Class Table:: Table of syntax classes. | 138 | * Syntax Class Table:: Table of syntax classes. |
| 135 | * Syntax Flags:: Additional flags each character can have. | 139 | * Syntax Flags:: Additional flags each character can have. |
| @@ -531,8 +535,9 @@ the current buffer's syntax table to determine the syntax for the | |||
| 531 | underlying text character. | 535 | underlying text character. |
| 532 | 536 | ||
| 533 | @item @code{(@var{syntax-code} . @var{matching-char})} | 537 | @item @code{(@var{syntax-code} . @var{matching-char})} |
| 534 | A cons cell of this format specifies the syntax for the underlying | 538 | A cons cell of this format is a raw syntax descriptor (@pxref{Syntax |
| 535 | text character. (@pxref{Syntax Table Internals}) | 539 | Table Internals}), which directly specifies a syntax class for the |
| 540 | underlying text character. | ||
| 536 | 541 | ||
| 537 | @item @code{nil} | 542 | @item @code{nil} |
| 538 | If the property is @code{nil}, the character's syntax is determined from | 543 | If the property is @code{nil}, the character's syntax is determined from |
| @@ -878,6 +883,9 @@ This function parses a sexp in the current buffer starting at | |||
| 878 | @var{start}, not scanning past @var{limit}. It stops at position | 883 | @var{start}, not scanning past @var{limit}. It stops at position |
| 879 | @var{limit} or when certain criteria described below are met, and sets | 884 | @var{limit} or when certain criteria described below are met, and sets |
| 880 | point to the location where parsing stops. It returns a parser state | 885 | point to the location where parsing stops. It returns a parser state |
| 886 | @ifinfo | ||
| 887 | (@pxref{Parser State}) | ||
| 888 | @end ifinfo | ||
| 881 | describing the status of the parse at the point where it stops. | 889 | describing the status of the parse at the point where it stops. |
| 882 | 890 | ||
| 883 | @cindex parenthesis depth | 891 | @cindex parenthesis depth |
| @@ -937,16 +945,20 @@ documented in this section. This internal format can also be assigned | |||
| 937 | as syntax properties (@pxref{Syntax Properties}). | 945 | as syntax properties (@pxref{Syntax Properties}). |
| 938 | 946 | ||
| 939 | @cindex syntax code | 947 | @cindex syntax code |
| 940 | Each entry in a syntax table is a cons cell of the form | 948 | @cindex raw syntax descriptor |
| 941 | @code{(@var{syntax-code} . @var{matching-char})}. @var{syntax-code} | 949 | Each entry in a syntax table is a @dfn{raw syntax descriptor}: a |
| 942 | is an integer that encodes the syntax class and syntax flags, | 950 | cons cell of the form @code{(@var{syntax-code} |
| 943 | according to the table below. @var{matching-char}, if non-@code{nil}, | 951 | . @var{matching-char})}. @var{syntax-code} is an integer which |
| 944 | specifies a matching character (similar to the second character in a | 952 | encodes the syntax class and syntax flags, according to the table |
| 945 | syntax descriptor). | 953 | below. @var{matching-char}, if non-@code{nil}, specifies a matching |
| 954 | character (similar to the second character in a syntax descriptor). | ||
| 955 | |||
| 956 | Here are the syntax codes corresponding to the various syntax | ||
| 957 | classes: | ||
| 946 | 958 | ||
| 947 | @multitable @columnfractions .2 .3 .2 .3 | 959 | @multitable @columnfractions .2 .3 .2 .3 |
| 948 | @item | 960 | @item |
| 949 | @i{Syntax code} @tab @i{Class} @tab @i{Syntax code} @tab @i{Class} | 961 | @i{Code} @tab @i{Class} @tab @i{Code} @tab @i{Class} |
| 950 | @item | 962 | @item |
| 951 | 0 @tab whitespace @tab 8 @tab paired delimiter | 963 | 0 @tab whitespace @tab 8 @tab paired delimiter |
| 952 | @item | 964 | @item |
| @@ -967,7 +979,7 @@ syntax descriptor). | |||
| 967 | 979 | ||
| 968 | @noindent | 980 | @noindent |
| 969 | For example, in the standard syntax table, the entry for @samp{(} is | 981 | For example, in the standard syntax table, the entry for @samp{(} is |
| 970 | @code{(4 . 41)}. (41 is the character code for @samp{)}.) | 982 | @code{(4 . 41)}. 41 is the character code for @samp{)}. |
| 971 | 983 | ||
| 972 | Syntax flags are encoded in higher order bits, starting 16 bits from | 984 | Syntax flags are encoded in higher order bits, starting 16 bits from |
| 973 | the least significant bit. This table gives the power of two which | 985 | the least significant bit. This table gives the power of two which |
| @@ -987,33 +999,35 @@ corresponds to each syntax flag. | |||
| 987 | @end multitable | 999 | @end multitable |
| 988 | 1000 | ||
| 989 | @defun string-to-syntax @var{desc} | 1001 | @defun string-to-syntax @var{desc} |
| 990 | Given a syntax descriptor @var{desc}, this function returns the | 1002 | Given a syntax descriptor @var{desc} (a string), this function returns |
| 991 | corresponding internal form, a cons cell @code{(@var{syntax-code} | 1003 | the corresponding raw syntax descriptor. |
| 992 | . @var{matching-char})}. | ||
| 993 | @end defun | 1004 | @end defun |
| 994 | 1005 | ||
| 995 | @defun syntax-after pos | 1006 | @defun syntax-after pos |
| 996 | This function returns the syntax code of the character in the buffer | 1007 | This function returns the raw syntax descriptor for the character in |
| 997 | after position @var{pos}, taking account of syntax properties as well | 1008 | the buffer after position @var{pos}, taking account of syntax |
| 998 | as the syntax table. If @var{pos} is outside the buffer's accessible | 1009 | properties as well as the syntax table. If @var{pos} is outside the |
| 999 | portion (@pxref{Narrowing, accessible portion}), this function returns | 1010 | buffer's accessible portion (@pxref{Narrowing, accessible portion}), |
| 1000 | @code{nil}. | 1011 | the return value is @code{nil}. |
| 1001 | @end defun | 1012 | @end defun |
| 1002 | 1013 | ||
| 1003 | @defun syntax-class syntax | 1014 | @defun syntax-class syntax |
| 1004 | This function returns the syntax class of the syntax code | 1015 | This function returns the syntax code for the raw syntax descriptor |
| 1005 | @var{syntax}. (It masks off the high 16 bits that hold the flags | 1016 | @var{syntax}. More precisely, it takes the raw syntax descriptor's |
| 1006 | encoded in the syntax descriptor.) If @var{syntax} is @code{nil}, it | 1017 | @var{syntax-code} component, masks off the high 16 bits which record |
| 1007 | returns @code{nil}; this is so evaluating the expression | 1018 | the syntax flags, and returns the resulting integer. |
| 1019 | |||
| 1020 | If @var{syntax} is @code{nil}, the return value is returns @code{nil}. | ||
| 1021 | This is so that the expression | ||
| 1008 | 1022 | ||
| 1009 | @example | 1023 | @example |
| 1010 | (syntax-class (syntax-after pos)) | 1024 | (syntax-class (syntax-after pos)) |
| 1011 | @end example | 1025 | @end example |
| 1012 | 1026 | ||
| 1013 | @noindent | 1027 | @noindent |
| 1014 | where @code{pos} is outside the buffer's accessible portion, will | 1028 | evaluates to @code{nil} if @code{pos} is outside the buffer's |
| 1015 | yield @code{nil} without throwing errors or producing wrong syntax | 1029 | accessible portion, without throwing errors or returning an incorrect |
| 1016 | class codes. | 1030 | code. |
| 1017 | @end defun | 1031 | @end defun |
| 1018 | 1032 | ||
| 1019 | @node Categories | 1033 | @node Categories |
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index 3b078e7e19f..c5b66757ace 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -1302,9 +1302,10 @@ This returns @code{t} if @var{variable} is buffer-local in buffer | |||
| 1302 | @end defun | 1302 | @end defun |
| 1303 | 1303 | ||
| 1304 | @defun local-variable-if-set-p variable &optional buffer | 1304 | @defun local-variable-if-set-p variable &optional buffer |
| 1305 | This returns @code{t} if @var{variable} will become buffer-local in | 1305 | This returns @code{t} if @var{variable} either has a buffer-local |
| 1306 | buffer @var{buffer} (which defaults to the current buffer) if it is | 1306 | value in buffer @var{buffer}, or is automatically buffer-local. |
| 1307 | set there. | 1307 | Otherwise, it returns @code{nil}. If omitted or @code{nil}, |
| 1308 | @var{buffer} defaults to the current buffer. | ||
| 1308 | @end defun | 1309 | @end defun |
| 1309 | 1310 | ||
| 1310 | @defun buffer-local-value variable buffer | 1311 | @defun buffer-local-value variable buffer |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 5fe007ba02d..ea48a46359c 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -1492,12 +1492,10 @@ to make a buffer current to modify it in Lisp, use | |||
| 1492 | @code{set-buffer}. @xref{Current Buffer}. | 1492 | @code{set-buffer}. @xref{Current Buffer}. |
| 1493 | 1493 | ||
| 1494 | @deffn Command switch-to-buffer buffer-or-name &optional norecord force-same-window | 1494 | @deffn Command switch-to-buffer buffer-or-name &optional norecord force-same-window |
| 1495 | This function displays @var{buffer-or-name} in the selected window, | 1495 | This command attempts to display @var{buffer-or-name} in the selected |
| 1496 | and makes it the current buffer. (In contrast, @code{set-buffer} | 1496 | window, and makes it the current buffer. It is often used |
| 1497 | makes the buffer current but does not display it; @pxref{Current | 1497 | interactively (as the binding of @kbd{C-x b}), as well as in Lisp |
| 1498 | Buffer}). It is often used interactively (as the binding of @kbd{C-x | 1498 | programs. The return value is the buffer switched to. |
| 1499 | b}), as well as in Lisp programs. The return value is the buffer | ||
| 1500 | switched to. | ||
| 1501 | 1499 | ||
| 1502 | If @var{buffer-or-name} is @code{nil}, it defaults to the buffer | 1500 | If @var{buffer-or-name} is @code{nil}, it defaults to the buffer |
| 1503 | returned by @code{other-buffer} (@pxref{The Buffer List}). If | 1501 | returned by @code{other-buffer} (@pxref{The Buffer List}). If |
| @@ -1506,17 +1504,18 @@ buffer, this function creates a new buffer with that name; the new | |||
| 1506 | buffer's major mode is determined by the variable @code{major-mode} | 1504 | buffer's major mode is determined by the variable @code{major-mode} |
| 1507 | (@pxref{Major Modes}). | 1505 | (@pxref{Major Modes}). |
| 1508 | 1506 | ||
| 1509 | Normally the specified buffer is put at the front of the buffer | 1507 | Normally, the specified buffer is put at the front of the buffer |
| 1510 | list---both the global buffer list and the selected frame's buffer | 1508 | list---both the global buffer list and the selected frame's buffer |
| 1511 | list (@pxref{The Buffer List}). However, this is not done if the | 1509 | list (@pxref{The Buffer List}). However, this is not done if the |
| 1512 | optional argument @var{norecord} is non-@code{nil}. | 1510 | optional argument @var{norecord} is non-@code{nil}. |
| 1513 | 1511 | ||
| 1514 | If this function is unable to display the buffer in the selected | 1512 | Sometimes, @code{switch-to-buffer} may be unable to display the buffer |
| 1515 | window---usually because the selected window is a minibuffer window or | 1513 | in the selected window. This happens if the selected window is a |
| 1516 | is strongly dedicated to its buffer (@pxref{Dedicated Windows})---then | 1514 | minibuffer window, or if the selected window is strongly dedicated to |
| 1517 | it normally tries to display the buffer in some other window, in the | 1515 | its buffer (@pxref{Dedicated Windows}). In that case, the command |
| 1518 | manner of @code{pop-to-buffer} (see below). However, if the optional | 1516 | normally tries to display the buffer in some other window, by invoking |
| 1519 | argument @var{force-same-window} is non-@code{nil}, it signals an error | 1517 | @code{pop-to-buffer} (see below). However, if the optional argument |
| 1518 | @var{force-same-window} is non-@code{nil}, it signals an error | ||
| 1520 | instead. | 1519 | instead. |
| 1521 | @end deffn | 1520 | @end deffn |
| 1522 | 1521 | ||
| @@ -1728,8 +1727,7 @@ A frame means consider windows on that frame only. | |||
| 1728 | @end itemize | 1727 | @end itemize |
| 1729 | 1728 | ||
| 1730 | If @var{alist} contains no @code{reusable-frames} entry, this function | 1729 | If @var{alist} contains no @code{reusable-frames} entry, this function |
| 1731 | normally searches just the selected frame; however, if either the | 1730 | normally searches just the selected frame; however, if the variable |
| 1732 | variable @code{display-buffer-reuse-frames} or the variable | ||
| 1733 | @code{pop-up-frames} is non-@code{nil}, it searches all frames on the | 1731 | @code{pop-up-frames} is non-@code{nil}, it searches all frames on the |
| 1734 | current terminal. @xref{Choosing Window Options}. | 1732 | current terminal. @xref{Choosing Window Options}. |
| 1735 | 1733 | ||
| @@ -1769,14 +1767,6 @@ The behavior of the standard display actions of @code{display-buffer} | |||
| 1769 | (@pxref{Choosing Window}) can be modified by a variety of user | 1767 | (@pxref{Choosing Window}) can be modified by a variety of user |
| 1770 | options. | 1768 | options. |
| 1771 | 1769 | ||
| 1772 | @defopt display-buffer-reuse-frames | ||
| 1773 | If the value of this variable is non-@code{nil}, @code{display-buffer} | ||
| 1774 | may search all frames on the current terminal when looking for a | ||
| 1775 | window already displaying the specified buffer. The default is | ||
| 1776 | @code{nil}. This variable is consulted by the action function | ||
| 1777 | @code{display-buffer-reuse-window} (@pxref{Display Action Functions}). | ||
| 1778 | @end defopt | ||
| 1779 | |||
| 1780 | @defopt pop-up-windows | 1770 | @defopt pop-up-windows |
| 1781 | If the value of this variable is non-@code{nil}, @code{display-buffer} | 1771 | If the value of this variable is non-@code{nil}, @code{display-buffer} |
| 1782 | is allowed to split an existing window to make a new window for | 1772 | is allowed to split an existing window to make a new window for |
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 20c74cf70b2..8ecaf97a84a 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2012-09-13 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * texinfo.tex: Merge from gnulib. | ||
| 4 | |||
| 5 | 2012-09-12 Michael Albinus <michael.albinus@gmx.de> | ||
| 6 | |||
| 7 | Sync with Tramp 2.2.6. | ||
| 8 | |||
| 9 | * tramp.texi (Bug Reports): Cleanup caches before a test run. | ||
| 10 | |||
| 11 | * trampver.texi: Update release number. | ||
| 12 | |||
| 13 | 2012-09-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 14 | |||
| 15 | * texinfo.tex: Merge from gnulib. | ||
| 16 | |||
| 1 | 2012-08-06 Aurélien Aptel <aurelien.aptel@gmail.com> | 17 | 2012-08-06 Aurélien Aptel <aurelien.aptel@gmail.com> |
| 2 | 18 | ||
| 3 | * url.texi (Parsed URLs): Adjust to the code's use of defstruct | 19 | * url.texi (Parsed URLs): Adjust to the code's use of defstruct |
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex index dc4bf6400c4..f3093d0853f 100644 --- a/doc/misc/texinfo.tex +++ b/doc/misc/texinfo.tex | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | % Load plain if necessary, i.e., if running under initex. | 3 | % Load plain if necessary, i.e., if running under initex. |
| 4 | \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi | 4 | \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi |
| 5 | % | 5 | % |
| 6 | \def\texinfoversion{2012-07-29.17} | 6 | \def\texinfoversion{2012-09-12.16} |
| 7 | % | 7 | % |
| 8 | % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, | 8 | % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, |
| 9 | % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | 9 | % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
| @@ -594,7 +594,7 @@ | |||
| 594 | \def\:{\spacefactor=1000 } | 594 | \def\:{\spacefactor=1000 } |
| 595 | 595 | ||
| 596 | % @* forces a line break. | 596 | % @* forces a line break. |
| 597 | \def\*{\hfil\break\hbox{}\ignorespaces} | 597 | \def\*{\unskip\hfil\break\hbox{}\ignorespaces} |
| 598 | 598 | ||
| 599 | % @/ allows a line break. | 599 | % @/ allows a line break. |
| 600 | \let\/=\allowbreak | 600 | \let\/=\allowbreak |
| @@ -2272,8 +2272,6 @@ end | |||
| 2272 | 2272 | ||
| 2273 | \gdef\markupsetcodequoteleft{\let`\codequoteleft} | 2273 | \gdef\markupsetcodequoteleft{\let`\codequoteleft} |
| 2274 | \gdef\markupsetcodequoteright{\let'\codequoteright} | 2274 | \gdef\markupsetcodequoteright{\let'\codequoteright} |
| 2275 | |||
| 2276 | \gdef\markupsetnoligaturesquoteleft{\let`\noligaturesquoteleft} | ||
| 2277 | } | 2275 | } |
| 2278 | 2276 | ||
| 2279 | \let\markupsetuplqcode \markupsetcodequoteleft | 2277 | \let\markupsetuplqcode \markupsetcodequoteleft |
| @@ -2282,6 +2280,9 @@ end | |||
| 2282 | \let\markupsetuplqexample \markupsetcodequoteleft | 2280 | \let\markupsetuplqexample \markupsetcodequoteleft |
| 2283 | \let\markupsetuprqexample \markupsetcodequoteright | 2281 | \let\markupsetuprqexample \markupsetcodequoteright |
| 2284 | % | 2282 | % |
| 2283 | \let\markupsetuplqkbd \markupsetcodequoteleft | ||
| 2284 | \let\markupsetuprqkbd \markupsetcodequoteright | ||
| 2285 | % | ||
| 2285 | \let\markupsetuplqsamp \markupsetcodequoteleft | 2286 | \let\markupsetuplqsamp \markupsetcodequoteleft |
| 2286 | \let\markupsetuprqsamp \markupsetcodequoteright | 2287 | \let\markupsetuprqsamp \markupsetcodequoteright |
| 2287 | % | 2288 | % |
| @@ -2291,8 +2292,6 @@ end | |||
| 2291 | \let\markupsetuplqverbatim \markupsetcodequoteleft | 2292 | \let\markupsetuplqverbatim \markupsetcodequoteleft |
| 2292 | \let\markupsetuprqverbatim \markupsetcodequoteright | 2293 | \let\markupsetuprqverbatim \markupsetcodequoteright |
| 2293 | 2294 | ||
| 2294 | \let\markupsetuplqkbd \markupsetnoligaturesquoteleft | ||
| 2295 | |||
| 2296 | % Allow an option to not use regular directed right quote/apostrophe | 2295 | % Allow an option to not use regular directed right quote/apostrophe |
| 2297 | % (char 0x27), but instead the undirected quote from cmtt (char 0x0d). | 2296 | % (char 0x27), but instead the undirected quote from cmtt (char 0x0d). |
| 2298 | % The undirected quote is ugly, so don't make it the default, but it | 2297 | % The undirected quote is ugly, so don't make it the default, but it |
| @@ -2382,8 +2381,7 @@ end | |||
| 2382 | \aftersmartic | 2381 | \aftersmartic |
| 2383 | } | 2382 | } |
| 2384 | 2383 | ||
| 2385 | % like \smartslanted except unconditionally uses \ttsl, and no ic. | 2384 | % Unconditional use \ttsl, and no ic. @var is set to this for defuns. |
| 2386 | % @var is set to this for defun arguments. | ||
| 2387 | \def\ttslanted#1{{\ttsl #1}} | 2385 | \def\ttslanted#1{{\ttsl #1}} |
| 2388 | 2386 | ||
| 2389 | % @cite is like \smartslanted except unconditionally use \sl. We never want | 2387 | % @cite is like \smartslanted except unconditionally use \sl. We never want |
| @@ -2695,10 +2693,6 @@ end | |||
| 2695 | \let\email=\uref | 2693 | \let\email=\uref |
| 2696 | \fi | 2694 | \fi |
| 2697 | 2695 | ||
| 2698 | % @kbd is like @code, except that if the argument is just one @key command, | ||
| 2699 | % then @kbd has no effect. | ||
| 2700 | \def\kbd#1{{\setupmarkupstyle{kbd}\def\look{#1}\expandafter\kbdfoo\look??\par}} | ||
| 2701 | |||
| 2702 | % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always), | 2696 | % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always), |
| 2703 | % `example' (@kbd uses ttsl only inside of @example and friends), | 2697 | % `example' (@kbd uses ttsl only inside of @example and friends), |
| 2704 | % or `code' (@kbd uses normal tty font always). | 2698 | % or `code' (@kbd uses normal tty font always). |
| @@ -2722,11 +2716,17 @@ end | |||
| 2722 | % Default is `distinct'. | 2716 | % Default is `distinct'. |
| 2723 | \kbdinputstyle distinct | 2717 | \kbdinputstyle distinct |
| 2724 | 2718 | ||
| 2719 | % @kbd is like @code, except that if the argument is just one @key command, | ||
| 2720 | % then @kbd has no effect. | ||
| 2721 | \def\kbd#1{{\def\look{#1}\expandafter\kbdsub\look??\par}} | ||
| 2722 | |||
| 2725 | \def\xkey{\key} | 2723 | \def\xkey{\key} |
| 2726 | \def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}% | 2724 | \def\kbdsub#1#2#3\par{% |
| 2727 | \ifx\one\xkey\ifx\threex\three \key{#2}% | 2725 | \def\one{#1}\def\three{#3}\def\threex{??}% |
| 2728 | \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi | 2726 | \ifx\one\xkey\ifx\threex\three \key{#2}% |
| 2729 | \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi} | 2727 | \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi |
| 2728 | \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi | ||
| 2729 | } | ||
| 2730 | 2730 | ||
| 2731 | % definition of @key that produces a lozenge. Doesn't adjust to text size. | 2731 | % definition of @key that produces a lozenge. Doesn't adjust to text size. |
| 2732 | %\setfont\keyrm\rmshape{8}{1000}{OT1} | 2732 | %\setfont\keyrm\rmshape{8}{1000}{OT1} |
| @@ -3269,6 +3269,20 @@ end | |||
| 3269 | \finishedtitlepagetrue | 3269 | \finishedtitlepagetrue |
| 3270 | } | 3270 | } |
| 3271 | 3271 | ||
| 3272 | % Settings used for typesetting titles: no hyphenation, no indentation, | ||
| 3273 | % don't worry much about spacing, ragged right. This should be used | ||
| 3274 | % inside a \vbox, and fonts need to be set appropriately first. Because | ||
| 3275 | % it is always used for titles, nothing else, we call \rmisbold. \par | ||
| 3276 | % should be specified before the end of the \vbox, since a vbox is a group. | ||
| 3277 | % | ||
| 3278 | \def\raggedtitlesettings{% | ||
| 3279 | \rmisbold | ||
| 3280 | \hyphenpenalty=10000 | ||
| 3281 | \parindent=0pt | ||
| 3282 | \tolerance=5000 | ||
| 3283 | \ptexraggedright | ||
| 3284 | } | ||
| 3285 | |||
| 3272 | % Macros to be used within @titlepage: | 3286 | % Macros to be used within @titlepage: |
| 3273 | 3287 | ||
| 3274 | \let\subtitlerm=\tenrm | 3288 | \let\subtitlerm=\tenrm |
| @@ -3276,7 +3290,7 @@ end | |||
| 3276 | 3290 | ||
| 3277 | \parseargdef\title{% | 3291 | \parseargdef\title{% |
| 3278 | \checkenv\titlepage | 3292 | \checkenv\titlepage |
| 3279 | \leftline{\titlefonts\rmisbold #1} | 3293 | \vbox{\titlefonts \raggedtitlesettings #1\par}% |
| 3280 | % print a rule at the page bottom also. | 3294 | % print a rule at the page bottom also. |
| 3281 | \finishedtitlepagefalse | 3295 | \finishedtitlepagefalse |
| 3282 | \vskip4pt \hrule height 4pt width \hsize \vskip4pt | 3296 | \vskip4pt \hrule height 4pt width \hsize \vskip4pt |
| @@ -4243,7 +4257,7 @@ end | |||
| 4243 | } | 4257 | } |
| 4244 | \def\ifcmddefinedfail{\doignore{ifcommanddefined}} | 4258 | \def\ifcmddefinedfail{\doignore{ifcommanddefined}} |
| 4245 | 4259 | ||
| 4246 | % @ifcommandnotdefined CMD ... handlded similar to @ifclear above. | 4260 | % @ifcommandnotdefined CMD ... handled similar to @ifclear above. |
| 4247 | \makecond{ifcommandnotdefined} | 4261 | \makecond{ifcommandnotdefined} |
| 4248 | \def\ifcommandnotdefined{% | 4262 | \def\ifcommandnotdefined{% |
| 4249 | \parsearg{\doifcmddefined{\else \let\next=\ifcmdnotdefinedfail}}} | 4263 | \parsearg{\doifcmddefined{\else \let\next=\ifcmdnotdefinedfail}}} |
| @@ -5579,14 +5593,6 @@ end | |||
| 5579 | 5593 | ||
| 5580 | % Define @majorheading, @heading and @subheading | 5594 | % Define @majorheading, @heading and @subheading |
| 5581 | 5595 | ||
| 5582 | % NOTE on use of \vbox for chapter headings, section headings, and such: | ||
| 5583 | % 1) We use \vbox rather than the earlier \line to permit | ||
| 5584 | % overlong headings to fold. | ||
| 5585 | % 2) \hyphenpenalty is set to 10000 because hyphenation in a | ||
| 5586 | % heading is obnoxious; this forbids it. | ||
| 5587 | % 3) Likewise, headings look best if no \parindent is used, and | ||
| 5588 | % if justification is not attempted. Hence \raggedright. | ||
| 5589 | |||
| 5590 | \def\majorheading{% | 5596 | \def\majorheading{% |
| 5591 | {\advance\chapheadingskip by 10pt \chapbreak }% | 5597 | {\advance\chapheadingskip by 10pt \chapbreak }% |
| 5592 | \parsearg\chapheadingzzz | 5598 | \parsearg\chapheadingzzz |
| @@ -5594,10 +5600,8 @@ end | |||
| 5594 | 5600 | ||
| 5595 | \def\chapheading{\chapbreak \parsearg\chapheadingzzz} | 5601 | \def\chapheading{\chapbreak \parsearg\chapheadingzzz} |
| 5596 | \def\chapheadingzzz#1{% | 5602 | \def\chapheadingzzz#1{% |
| 5597 | {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 | 5603 | \vbox{\chapfonts \raggedtitlesettings #1\par}% |
| 5598 | \parindent=0pt\ptexraggedright | 5604 | \nobreak\bigskip \nobreak |
| 5599 | \rmisbold #1\hfill}}% | ||
| 5600 | \bigskip \par\penalty 200\relax | ||
| 5601 | \suppressfirstparagraphindent | 5605 | \suppressfirstparagraphindent |
| 5602 | } | 5606 | } |
| 5603 | 5607 | ||
| @@ -5756,8 +5760,7 @@ end | |||
| 5756 | % | 5760 | % |
| 5757 | % Typeset the actual heading. | 5761 | % Typeset the actual heading. |
| 5758 | \nobreak % Avoid page breaks at the interline glue. | 5762 | \nobreak % Avoid page breaks at the interline glue. |
| 5759 | \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \ptexraggedright | 5763 | \vbox{\raggedtitlesettings \hangindent=\wd0 \centerparametersmaybe |
| 5760 | \hangindent=\wd0 \centerparametersmaybe | ||
| 5761 | \unhbox0 #1\par}% | 5764 | \unhbox0 #1\par}% |
| 5762 | }% | 5765 | }% |
| 5763 | \nobreak\bigskip % no page break after a chapter title | 5766 | \nobreak\bigskip % no page break after a chapter title |
| @@ -5779,18 +5782,18 @@ end | |||
| 5779 | \def\setchapterstyle #1 {\csname CHAPF#1\endcsname} | 5782 | \def\setchapterstyle #1 {\csname CHAPF#1\endcsname} |
| 5780 | % | 5783 | % |
| 5781 | \def\unnchfopen #1{% | 5784 | \def\unnchfopen #1{% |
| 5782 | \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 | 5785 | \chapoddpage |
| 5783 | \parindent=0pt\ptexraggedright | 5786 | \vbox{\chapfonts \raggedtitlesettings #1\par}% |
| 5784 | \rmisbold #1\hfill}}\bigskip \par\nobreak | 5787 | \nobreak\bigskip\nobreak |
| 5785 | } | 5788 | } |
| 5786 | \def\chfopen #1#2{\chapoddpage {\chapfonts | 5789 | \def\chfopen #1#2{\chapoddpage {\chapfonts |
| 5787 | \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}% | 5790 | \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}% |
| 5788 | \par\penalty 5000 % | 5791 | \par\penalty 5000 % |
| 5789 | } | 5792 | } |
| 5790 | \def\centerchfopen #1{% | 5793 | \def\centerchfopen #1{% |
| 5791 | \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000 | 5794 | \chapoddpage |
| 5792 | \parindent=0pt | 5795 | \vbox{\chapfonts \raggedtitlesettings \hfill #1\hfill}% |
| 5793 | \hfill {\rmisbold #1}\hfill}}\bigskip \par\nobreak | 5796 | \nobreak\bigskip \nobreak |
| 5794 | } | 5797 | } |
| 5795 | \def\CHAPFopen{% | 5798 | \def\CHAPFopen{% |
| 5796 | \global\let\chapmacro=\chfopen | 5799 | \global\let\chapmacro=\chfopen |
| @@ -7069,7 +7072,10 @@ end | |||
| 7069 | \df \sl \hyphenchar\font=0 | 7072 | \df \sl \hyphenchar\font=0 |
| 7070 | % | 7073 | % |
| 7071 | % On the other hand, if an argument has two dashes (for instance), we | 7074 | % On the other hand, if an argument has two dashes (for instance), we |
| 7072 | % want a way to get ttsl. Let's try @var for that. | 7075 | % want a way to get ttsl. We used to recommend @var for that, so |
| 7076 | % leave the code in, but it's strange for @var to lead to typewriter. | ||
| 7077 | % Nowadays we recommend @code, since the difference between a ttsl hyphen | ||
| 7078 | % and a tt hyphen is pretty tiny. @code also disables ?` !`. | ||
| 7073 | \def\var##1{{\setupmarkupstyle{var}\ttslanted{##1}}}% | 7079 | \def\var##1{{\setupmarkupstyle{var}\ttslanted{##1}}}% |
| 7074 | #1% | 7080 | #1% |
| 7075 | \sl\hyphenchar\font=45 | 7081 | \sl\hyphenchar\font=45 |
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 87ad2bc5009..530b8fdd6c2 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -2853,6 +2853,9 @@ If you can identify a minimal test case that reproduces the problem, | |||
| 2853 | include that with your bug report. This will make it much easier for | 2853 | include that with your bug report. This will make it much easier for |
| 2854 | the development team to analyze and correct the problem. | 2854 | the development team to analyze and correct the problem. |
| 2855 | 2855 | ||
| 2856 | Sometimes, there might be also problems due to Tramp caches. Flush | ||
| 2857 | all caches before running the test, @ref{Cleanup remote connections}. | ||
| 2858 | |||
| 2856 | Before reporting the bug, you should set the verbosity level to 6 | 2859 | Before reporting the bug, you should set the verbosity level to 6 |
| 2857 | (@pxref{Traces and Profiles, Traces}) in the @file{~/.emacs} file and | 2860 | (@pxref{Traces and Profiles, Traces}) in the @file{~/.emacs} file and |
| 2858 | repeat the bug. Then, include the contents of the @file{*tramp/foo*} | 2861 | repeat the bug. Then, include the contents of the @file{*tramp/foo*} |
diff --git a/doc/misc/trampver.texi b/doc/misc/trampver.texi index 78bd9d0965f..d902ac0fb97 100644 --- a/doc/misc/trampver.texi +++ b/doc/misc/trampver.texi | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | @c In the Tramp CVS, the version number is auto-frobbed from | 8 | @c In the Tramp CVS, the version number is auto-frobbed from |
| 9 | @c configure.ac, so you should edit that file and run | 9 | @c configure.ac, so you should edit that file and run |
| 10 | @c "autoconf && ./configure" to change the version number. | 10 | @c "autoconf && ./configure" to change the version number. |
| 11 | @set trampver 2.2.6-pre | 11 | @set trampver 2.2.6 |
| 12 | 12 | ||
| 13 | @c Other flags from configuration | 13 | @c Other flags from configuration |
| 14 | @set instprefix /usr/local | 14 | @set instprefix /usr/local |