diff options
| author | Chong Yidong | 2012-05-05 12:32:58 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-05-05 12:32:58 +0800 |
| commit | eceeb5fca618f3bc0743c2388148dd758229c7c9 (patch) | |
| tree | 314434b14014363326ec7ce2868c3b86af4d97c3 | |
| parent | 248da2f497e8865e8bebb0e3adb9184ab36e95f2 (diff) | |
| parent | be4e7c155b6922dd6105f4be57164210c3441f37 (diff) | |
| download | emacs-eceeb5fca618f3bc0743c2388148dd758229c7c9.tar.gz emacs-eceeb5fca618f3bc0743c2388148dd758229c7c9.zip | |
Merge from emacs-24; up to 2012-04-20T05:47:55Z!eliz@gnu.org
32 files changed, 284 insertions, 197 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index a6d9ea6a8bc..238a8ebf8cc 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,44 @@ | |||
| 1 | 2012-05-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * custom.texi (Customization Groups, Custom Themes, Examining): | ||
| 4 | Improve page breaks. | ||
| 5 | |||
| 6 | * rmail.texi (Rmail Display): Use example rather than smallexample. | ||
| 7 | |||
| 8 | * calendar.texi: Convert inforefs to refs. | ||
| 9 | |||
| 10 | * dired.texi (Dired Enter): Improve page break. | ||
| 11 | |||
| 12 | * abbrevs.texi (Abbrev Concepts): Copyedits. | ||
| 13 | |||
| 14 | * maintaining.texi (Registering, Tag Syntax): | ||
| 15 | Tweak line and page breaks. | ||
| 16 | |||
| 17 | * programs.texi (Programs, Electric C): Copyedits. | ||
| 18 | (Program Modes): Add xref to Fortran. | ||
| 19 | (Left Margin Paren): Remove what was (oddly enough) the only use | ||
| 20 | of defvar in the entire Emacs manual. | ||
| 21 | (Hungry Delete): Remove footnote about ancient Emacs version. | ||
| 22 | (Other C Commands): Use example rather than smallexample. | ||
| 23 | |||
| 24 | * text.texi (Pages, Filling, Foldout, Org Mode, HTML Mode) | ||
| 25 | (Nroff Mode, Enriched Indentation, Table Rows and Columns): | ||
| 26 | Tweak line and page breaks. | ||
| 27 | |||
| 28 | * modes.texi (Major Modes, Minor Modes): Reword to improve page-breaks. | ||
| 29 | (Major Modes): Use example rather than smallexample. | ||
| 30 | |||
| 31 | * mule.texi (Output Coding): Reword to improve page-breaks. | ||
| 32 | |||
| 33 | * frames.texi (Fonts): Tweak line and page breaks. | ||
| 34 | Use example rather than smallexample. Change cross-reference. | ||
| 35 | (Text-Only Mouse): Fix xref. | ||
| 36 | |||
| 37 | * buffers.texi (Buffers, Kill Buffer, Several Buffers) | ||
| 38 | (Indirect Buffers): Tweak line- and page-breaks. | ||
| 39 | |||
| 40 | * fixit.texi (Fixit, Undo): Reword to improve page-breaks. | ||
| 41 | |||
| 1 | 2012-05-04 Glenn Morris <rgm@gnu.org> | 42 | 2012-05-04 Glenn Morris <rgm@gnu.org> |
| 2 | 43 | ||
| 3 | * Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure. | 44 | * Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure. |
diff --git a/doc/emacs/abbrevs.texi b/doc/emacs/abbrevs.texi index a8a34e62c1f..d3c914d92b0 100644 --- a/doc/emacs/abbrevs.texi +++ b/doc/emacs/abbrevs.texi | |||
| @@ -37,12 +37,12 @@ Automatic Typing}. | |||
| 37 | @node Abbrev Concepts | 37 | @node Abbrev Concepts |
| 38 | @section Abbrev Concepts | 38 | @section Abbrev Concepts |
| 39 | 39 | ||
| 40 | An @dfn{abbrev} is a word which has been defined to @dfn{expand} into | 40 | An @dfn{abbrev} is a word that has been defined to @dfn{expand} into |
| 41 | a specified @dfn{expansion}. When you insert a word-separator character | 41 | a specified @dfn{expansion}. When you insert a word-separator character |
| 42 | following the abbrev, that expands the abbrev---replacing the abbrev | 42 | following the abbrev, that expands the abbrev---replacing the abbrev |
| 43 | with its expansion. For example, if @samp{foo} is defined as an abbrev | 43 | with its expansion. For example, if @samp{foo} is defined as an abbrev |
| 44 | expanding to @samp{find outer otter}, then you can insert @samp{find | 44 | expanding to @samp{find outer otter}, then typing @kbd{f o o .} will |
| 45 | outer otter.} into the buffer by typing @kbd{f o o .}. | 45 | insert @samp{find outer otter.}. |
| 46 | 46 | ||
| 47 | @findex abbrev-mode | 47 | @findex abbrev-mode |
| 48 | @cindex Abbrev mode | 48 | @cindex Abbrev mode |
| @@ -61,10 +61,9 @@ mode-specific definitions for different major modes. A mode-specific | |||
| 61 | definition for the current major mode overrides a global definition. | 61 | definition for the current major mode overrides a global definition. |
| 62 | 62 | ||
| 63 | You can define abbrevs interactively during the editing session, | 63 | You can define abbrevs interactively during the editing session, |
| 64 | irrespective of whether Abbrev mode is enabled. You | 64 | irrespective of whether Abbrev mode is enabled. You can also save |
| 65 | can also save lists of abbrev definitions in files for use in later | 65 | lists of abbrev definitions in files, which you can the reload for use |
| 66 | sessions. Some users keep extensive lists of abbrevs that they load | 66 | in later sessions. |
| 67 | in every session. | ||
| 68 | 67 | ||
| 69 | @node Defining Abbrevs | 68 | @node Defining Abbrevs |
| 70 | @section Defining Abbrevs | 69 | @section Defining Abbrevs |
diff --git a/doc/emacs/arevert-xtra.texi b/doc/emacs/arevert-xtra.texi index 55d7646542d..5a957b02843 100644 --- a/doc/emacs/arevert-xtra.texi +++ b/doc/emacs/arevert-xtra.texi | |||
| @@ -109,6 +109,7 @@ revert-buffer-function,, Reverting, elisp, the Emacs Lisp Reference Manual}. | |||
| 109 | 109 | ||
| 110 | In addition, it @emph{must} have a @code{buffer-stale-function}. | 110 | In addition, it @emph{must} have a @code{buffer-stale-function}. |
| 111 | 111 | ||
| 112 | @c FIXME only defvar in all of doc/emacs! | ||
| 112 | @defvar buffer-stale-function | 113 | @defvar buffer-stale-function |
| 113 | The value of this variable is a function to check whether a non-file | 114 | The value of this variable is a function to check whether a non-file |
| 114 | buffer needs reverting. This should be a function with one optional | 115 | buffer needs reverting. This should be a function with one optional |
diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi index 90d5084e3d9..5dd95cc2a6f 100644 --- a/doc/emacs/buffers.texi +++ b/doc/emacs/buffers.texi | |||
| @@ -46,7 +46,7 @@ This is because Emacs tracks buffer positions using that data type. | |||
| 46 | For typical 64-bit machines, this maximum buffer size is @math{2^61 - | 46 | For typical 64-bit machines, this maximum buffer size is @math{2^61 - |
| 47 | 2} bytes, or about 2 EiB. For typical 32-bit machines, the maximum is | 47 | 2} bytes, or about 2 EiB. For typical 32-bit machines, the maximum is |
| 48 | usually @math{2^29 - 2} bytes, or about 512 MiB. Buffer sizes are | 48 | usually @math{2^29 - 2} bytes, or about 512 MiB. Buffer sizes are |
| 49 | also limited by the amount of memory present in the system. | 49 | also limited by the amount of memory in the system. |
| 50 | 50 | ||
| 51 | @menu | 51 | @menu |
| 52 | * Select Buffer:: Creating a new buffer or reselecting an old one. | 52 | * Select Buffer:: Creating a new buffer or reselecting an old one. |
| @@ -326,8 +326,8 @@ for a mere hour. | |||
| 326 | @cindex Midnight mode | 326 | @cindex Midnight mode |
| 327 | @vindex midnight-mode | 327 | @vindex midnight-mode |
| 328 | @vindex midnight-hook | 328 | @vindex midnight-hook |
| 329 | You can also have this buffer purging done for you, every day at | 329 | You can also have this buffer purging done for you, once a day, |
| 330 | midnight, by enabling Midnight mode. Midnight mode operates each day | 330 | by enabling Midnight mode. Midnight mode operates each day |
| 331 | at midnight; at that time, it runs @code{clean-buffer-list}, or | 331 | at midnight; at that time, it runs @code{clean-buffer-list}, or |
| 332 | whichever functions you have placed in the normal hook | 332 | whichever functions you have placed in the normal hook |
| 333 | @code{midnight-hook} (@pxref{Hooks}). To enable Midnight mode, use | 333 | @code{midnight-hook} (@pxref{Hooks}). To enable Midnight mode, use |
| @@ -361,7 +361,7 @@ the buffer menu in another window, and selects that window. | |||
| 361 | 361 | ||
| 362 | The buffer menu is a read-only buffer, and can be changed only | 362 | The buffer menu is a read-only buffer, and can be changed only |
| 363 | through the special commands described in this section. The usual | 363 | through the special commands described in this section. The usual |
| 364 | Emacs cursor motion commands can be used in this buffer. The | 364 | cursor motion commands can be used in this buffer. The |
| 365 | following commands apply to the buffer described on the current line: | 365 | following commands apply to the buffer described on the current line: |
| 366 | 366 | ||
| 367 | @table @kbd | 367 | @table @kbd |
| @@ -476,13 +476,13 @@ Auto Revert mode applies to the @file{*Buffer List*} buffer only if | |||
| 476 | 476 | ||
| 477 | An @dfn{indirect buffer} shares the text of some other buffer, which | 477 | An @dfn{indirect buffer} shares the text of some other buffer, which |
| 478 | is called the @dfn{base buffer} of the indirect buffer. In some ways it | 478 | is called the @dfn{base buffer} of the indirect buffer. In some ways it |
| 479 | is the analogue, for buffers, of a symbolic link between files. | 479 | is a buffer analogue of a symbolic link between files. |
| 480 | 480 | ||
| 481 | @table @kbd | 481 | @table @kbd |
| 482 | @findex make-indirect-buffer | 482 | @findex make-indirect-buffer |
| 483 | @item M-x make-indirect-buffer @key{RET} @var{base-buffer} @key{RET} @var{indirect-name} @key{RET} | 483 | @item M-x make-indirect-buffer @key{RET} @var{base-buffer} @key{RET} @var{indirect-name} @key{RET} |
| 484 | Create an indirect buffer named @var{indirect-name} whose base buffer | 484 | Create an indirect buffer named @var{indirect-name} with base buffer |
| 485 | is @var{base-buffer}. | 485 | @var{base-buffer}. |
| 486 | @findex clone-indirect-buffer | 486 | @findex clone-indirect-buffer |
| 487 | @item M-x clone-indirect-buffer @key{RET} | 487 | @item M-x clone-indirect-buffer @key{RET} |
| 488 | Create an indirect buffer that is a twin copy of the current buffer. | 488 | Create an indirect buffer that is a twin copy of the current buffer. |
| @@ -520,10 +520,9 @@ buffer in another window. These functions run the hook | |||
| 520 | @code{clone-indirect-buffer-hook} after creating the indirect buffer. | 520 | @code{clone-indirect-buffer-hook} after creating the indirect buffer. |
| 521 | 521 | ||
| 522 | The more general way to make an indirect buffer is with the command | 522 | The more general way to make an indirect buffer is with the command |
| 523 | @kbd{M-x make-indirect-buffer}. It creates an indirect buffer from | 523 | @kbd{M-x make-indirect-buffer}. It creates an indirect buffer |
| 524 | buffer @var{base-buffer}, under the name @var{indirect-name}. It | 524 | named @var{indirect-name} from a buffer @var{base-buffer}, prompting for |
| 525 | prompts for both @var{base-buffer} and @var{indirect-name} using the | 525 | both using the minibuffer. |
| 526 | minibuffer. | ||
| 527 | 526 | ||
| 528 | @node Buffer Convenience | 527 | @node Buffer Convenience |
| 529 | @section Convenience Features and Customization of Buffer Handling | 528 | @section Convenience Features and Customization of Buffer Handling |
diff --git a/doc/emacs/calendar.texi b/doc/emacs/calendar.texi index a1e98bfcb92..e55d40767f4 100644 --- a/doc/emacs/calendar.texi +++ b/doc/emacs/calendar.texi | |||
| @@ -26,8 +26,8 @@ the calendar, type @kbd{q}. | |||
| 26 | 26 | ||
| 27 | @iftex | 27 | @iftex |
| 28 | This chapter describes the basic calendar features. | 28 | This chapter describes the basic calendar features. |
| 29 | @inforef{Advanced Calendar/Diary Usage,, emacs-xtra}, for information | 29 | For more advanced topics, |
| 30 | about more specialized features. | 30 | @pxref{Advanced Calendar/Diary Usage,,, emacs-xtra, Specialized Emacs Features}. |
| 31 | @end iftex | 31 | @end iftex |
| 32 | 32 | ||
| 33 | @menu | 33 | @menu |
| @@ -489,7 +489,7 @@ window. | |||
| 489 | calendar, use the @kbd{x} command. This displays the dates that are | 489 | calendar, use the @kbd{x} command. This displays the dates that are |
| 490 | holidays in a different face. | 490 | holidays in a different face. |
| 491 | @iftex | 491 | @iftex |
| 492 | @inforef{Calendar Customizing, calendar-holiday-marker, emacs-xtra}. | 492 | @xref{Calendar Customizing,,, emacs-xtra, Specialized Emacs Features}. |
| 493 | @end iftex | 493 | @end iftex |
| 494 | @ifnottex | 494 | @ifnottex |
| 495 | @xref{Calendar Customizing, calendar-holiday-marker}. | 495 | @xref{Calendar Customizing, calendar-holiday-marker}. |
| @@ -1102,7 +1102,7 @@ current date is visible). | |||
| 1102 | the @kbd{m} command. This marks the dates that have diary entries in | 1102 | the @kbd{m} command. This marks the dates that have diary entries in |
| 1103 | a different face. | 1103 | a different face. |
| 1104 | @iftex | 1104 | @iftex |
| 1105 | @inforef{Calendar Customizing, diary-entry-marker, emacs-xtra}. | 1105 | @xref{Calendar Customizing,,, emacs-xtra, Specialized Emacs Features}. |
| 1106 | @end iftex | 1106 | @end iftex |
| 1107 | @ifnottex | 1107 | @ifnottex |
| 1108 | @xref{Calendar Customizing, diary-entry-marker}. | 1108 | @xref{Calendar Customizing, diary-entry-marker}. |
| @@ -1126,7 +1126,7 @@ date, independently of the calendar display, and optionally for the next | |||
| 1126 | few days as well; the variable @code{diary-number-of-entries} specifies | 1126 | few days as well; the variable @code{diary-number-of-entries} specifies |
| 1127 | how many days to include. | 1127 | how many days to include. |
| 1128 | @iftex | 1128 | @iftex |
| 1129 | @inforef{Diary Customizing,, emacs-xtra}. | 1129 | @xref{Diary Customizing,,, emacs-xtra, Specialized Emacs Features}. |
| 1130 | @end iftex | 1130 | @end iftex |
| 1131 | @ifnottex | 1131 | @ifnottex |
| 1132 | @xref{Diary Customizing, diary-number-of-entries}. | 1132 | @xref{Diary Customizing, diary-number-of-entries}. |
| @@ -1270,7 +1270,7 @@ entries. The basic commands are listed here; more sophisticated | |||
| 1270 | commands are in the next section (@pxref{Special Diary Entries}). | 1270 | commands are in the next section (@pxref{Special Diary Entries}). |
| 1271 | Entries can also be based on non-Gregorian calendars. | 1271 | Entries can also be based on non-Gregorian calendars. |
| 1272 | @iftex | 1272 | @iftex |
| 1273 | @inforef{Non-Gregorian Diary,, emacs-xtra}. | 1273 | @xref{Non-Gregorian Diary,,, emacs-xtra, Specialized Emacs Features}. |
| 1274 | @end iftex | 1274 | @end iftex |
| 1275 | @ifnottex | 1275 | @ifnottex |
| 1276 | @xref{Non-Gregorian Diary}. | 1276 | @xref{Non-Gregorian Diary}. |
| @@ -1438,7 +1438,7 @@ specifying the name of a face or a single-character string to use when | |||
| 1438 | marking the entry in the calendar. Most generally, sexp diary entries | 1438 | marking the entry in the calendar. Most generally, sexp diary entries |
| 1439 | can perform arbitrary computations to determine when they apply. | 1439 | can perform arbitrary computations to determine when they apply. |
| 1440 | @iftex | 1440 | @iftex |
| 1441 | @inforef{Sexp Diary Entries,, emacs-xtra}. | 1441 | @xref{Sexp Diary Entries,,, emacs-xtra, Specialized Emacs Features}. |
| 1442 | @end iftex | 1442 | @end iftex |
| 1443 | @ifnottex | 1443 | @ifnottex |
| 1444 | @xref{Sexp Diary Entries}. | 1444 | @xref{Sexp Diary Entries}. |
| @@ -1512,7 +1512,7 @@ display the day's diary buffer, unless you set | |||
| 1512 | @code{appt-display-diary} to @code{nil}. The appointments list is | 1512 | @code{appt-display-diary} to @code{nil}. The appointments list is |
| 1513 | also updated whenever the diary file (or a file it includes; see | 1513 | also updated whenever the diary file (or a file it includes; see |
| 1514 | @iftex | 1514 | @iftex |
| 1515 | @inforef{Fancy Diary Display,, emacs-xtra}) | 1515 | @ref{Fancy Diary Display,,, emacs-xtra, Specialized Emacs Features}) |
| 1516 | @end iftex | 1516 | @end iftex |
| 1517 | @ifnottex | 1517 | @ifnottex |
| 1518 | @ref{Fancy Diary Display}) | 1518 | @ref{Fancy Diary Display}) |
| @@ -1576,7 +1576,7 @@ and adds the results to an Emacs diary file. For example: | |||
| 1576 | You can use an @code{#include} directive to add the import file contents | 1576 | You can use an @code{#include} directive to add the import file contents |
| 1577 | to the main diary file, if these are different files. | 1577 | to the main diary file, if these are different files. |
| 1578 | @iftex | 1578 | @iftex |
| 1579 | @inforef{Fancy Diary Display,, emacs-xtra}. | 1579 | @xref{Fancy Diary Display,,, emacs-xtra, Specialized Emacs Features}. |
| 1580 | @end iftex | 1580 | @end iftex |
| 1581 | @ifnottex | 1581 | @ifnottex |
| 1582 | @xref{Fancy Diary Display}. | 1582 | @xref{Fancy Diary Display}. |
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index bf2602f8f08..d5a68249ec4 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -79,7 +79,7 @@ top-level @code{Emacs} group. It looks like this, in part: | |||
| 79 | 79 | ||
| 80 | @c we want the buffer example to all be on one page, but unfortunately | 80 | @c we want the buffer example to all be on one page, but unfortunately |
| 81 | @c that's quite a bit of text, so force all space to the bottom. | 81 | @c that's quite a bit of text, so force all space to the bottom. |
| 82 | @page | 82 | @c @page |
| 83 | @smallexample | 83 | @smallexample |
| 84 | @group | 84 | @group |
| 85 | To apply changes, use the Save or Set buttons. | 85 | To apply changes, use the Save or Set buttons. |
| @@ -628,7 +628,7 @@ theme, its @samp{State} display shows @samp{THEMED} instead of | |||
| 628 | @findex disable-theme | 628 | @findex disable-theme |
| 629 | You can enable a specific Custom theme in the current Emacs session | 629 | You can enable a specific Custom theme in the current Emacs session |
| 630 | by typing @kbd{M-x load-theme}. This prompts for a theme name, loads | 630 | by typing @kbd{M-x load-theme}. This prompts for a theme name, loads |
| 631 | the theme from the theme file, and enables the theme. If a theme file | 631 | the theme from the theme file, and enables it. If a theme file |
| 632 | has been loaded before, you can enable the theme without loading its | 632 | has been loaded before, you can enable the theme without loading its |
| 633 | file by typing @kbd{M-x enable-theme}. To disable a Custom theme, | 633 | file by typing @kbd{M-x enable-theme}. To disable a Custom theme, |
| 634 | type @kbd{M-x disable-theme}. | 634 | type @kbd{M-x disable-theme}. |
| @@ -636,7 +636,7 @@ type @kbd{M-x disable-theme}. | |||
| 636 | @findex describe-theme | 636 | @findex describe-theme |
| 637 | To see a description of a Custom theme, type @kbd{?} on its line in | 637 | To see a description of a Custom theme, type @kbd{?} on its line in |
| 638 | the @file{*Custom Themes*} buffer; or type @kbd{M-x describe-theme} | 638 | the @file{*Custom Themes*} buffer; or type @kbd{M-x describe-theme} |
| 639 | anywhere in Emacs and enter the theme name in the minibuffer. | 639 | anywhere in Emacs and enter the theme name. |
| 640 | 640 | ||
| 641 | @node Creating Custom Themes | 641 | @node Creating Custom Themes |
| 642 | @subsection Creating Custom Themes | 642 | @subsection Creating Custom Themes |
| @@ -762,7 +762,7 @@ C-h v fill-column @key{RET} | |||
| 762 | @noindent | 762 | @noindent |
| 763 | displays something like this: | 763 | displays something like this: |
| 764 | 764 | ||
| 765 | @smallexample | 765 | @example |
| 766 | fill-column is a variable defined in `C source code'. | 766 | fill-column is a variable defined in `C source code'. |
| 767 | fill-column's value is 70 | 767 | fill-column's value is 70 |
| 768 | Local in buffer custom.texi; global value is 70 | 768 | Local in buffer custom.texi; global value is 70 |
| @@ -777,7 +777,7 @@ Documentation: | |||
| 777 | Interactively, you can set the buffer local value using C-x f. | 777 | Interactively, you can set the buffer local value using C-x f. |
| 778 | 778 | ||
| 779 | You can customize this variable. | 779 | You can customize this variable. |
| 780 | @end smallexample | 780 | @end example |
| 781 | 781 | ||
| 782 | @noindent | 782 | @noindent |
| 783 | The line that says ``You can customize the variable'' indicates that | 783 | The line that says ``You can customize the variable'' indicates that |
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index f3a1ae2fc99..0dcded78364 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi | |||
| @@ -104,7 +104,7 @@ use the @samp{--dired} option. | |||
| 104 | @findex dired-other-frame | 104 | @findex dired-other-frame |
| 105 | @kindex C-x 5 d | 105 | @kindex C-x 5 d |
| 106 | To display the Dired buffer in another window, use @kbd{C-x 4 d} | 106 | To display the Dired buffer in another window, use @kbd{C-x 4 d} |
| 107 | (@code{dired-other-window}) instead of @kbd{C-x d}. @kbd{C-x 5 d} | 107 | (@code{dired-other-window}). @kbd{C-x 5 d} |
| 108 | (@code{dired-other-frame}) displays the Dired buffer in a separate | 108 | (@code{dired-other-frame}) displays the Dired buffer in a separate |
| 109 | frame. | 109 | frame. |
| 110 | 110 | ||
diff --git a/doc/emacs/fixit.texi b/doc/emacs/fixit.texi index 85fac2b146b..2857e2b1af6 100644 --- a/doc/emacs/fixit.texi +++ b/doc/emacs/fixit.texi | |||
| @@ -8,9 +8,9 @@ | |||
| 8 | @cindex mistakes, correcting | 8 | @cindex mistakes, correcting |
| 9 | 9 | ||
| 10 | In this chapter we describe commands that are useful when you catch | 10 | In this chapter we describe commands that are useful when you catch |
| 11 | a mistake while editing. The most fundamental command for correcting | 11 | a mistake while editing. The most fundamental of these commands is |
| 12 | erroneous editing is the undo command @kbd{C-/} (which is also bound | 12 | the undo command @kbd{C-/} (also bound to @kbd{C-x u} and @kbd{C-_}). |
| 13 | to @kbd{C-x u} and @kbd{C-_}). This undoes a single command, or a | 13 | This undoes a single command, or a |
| 14 | part of a command (as in the case of @code{query-replace}), or several | 14 | part of a command (as in the case of @code{query-replace}), or several |
| 15 | consecutive character insertions. Consecutive repetitions of | 15 | consecutive character insertions. Consecutive repetitions of |
| 16 | @kbd{C-/} undo earlier and earlier changes, back to the limit of the | 16 | @kbd{C-/} undo earlier and earlier changes, back to the limit of the |
| @@ -60,7 +60,6 @@ beginners to remember: @samp{u} stands for ``undo''. It is also bound | |||
| 60 | to @kbd{C-_} because typing @kbd{C-/} on some text terminals actually | 60 | to @kbd{C-_} because typing @kbd{C-/} on some text terminals actually |
| 61 | enters @kbd{C-_}.}. This undoes the most recent change in the buffer, | 61 | enters @kbd{C-_}.}. This undoes the most recent change in the buffer, |
| 62 | and moves point back to where it was before that change. | 62 | and moves point back to where it was before that change. |
| 63 | |||
| 64 | Consecutive repetitions of @kbd{C-/} (or its aliases) undo earlier | 63 | Consecutive repetitions of @kbd{C-/} (or its aliases) undo earlier |
| 65 | and earlier changes in the current buffer. If all the recorded | 64 | and earlier changes in the current buffer. If all the recorded |
| 66 | changes have already been undone, the undo command signals an error. | 65 | changes have already been undone, the undo command signals an error. |
| @@ -75,7 +74,7 @@ changes you have undone, type @kbd{C-f} or any other command that | |||
| 75 | harmlessly breaks the sequence of undoing; then type @kbd{C-/} to undo | 74 | harmlessly breaks the sequence of undoing; then type @kbd{C-/} to undo |
| 76 | the undo command. | 75 | the undo command. |
| 77 | 76 | ||
| 78 | On the other hand, if you want to resume undoing, without redoing | 77 | Alternatively, if you want to resume undoing, without redoing |
| 79 | previous undo commands, use @kbd{M-x undo-only}. This is like | 78 | previous undo commands, use @kbd{M-x undo-only}. This is like |
| 80 | @code{undo}, but will not redo changes you have just undone. | 79 | @code{undo}, but will not redo changes you have just undone. |
| 81 | 80 | ||
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index 7b912ec9722..80a12afeb1b 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi | |||
| @@ -492,13 +492,13 @@ this for future sessions, click on @samp{Save Options} in the | |||
| 492 | @samp{Options} menu. | 492 | @samp{Options} menu. |
| 493 | 493 | ||
| 494 | @item | 494 | @item |
| 495 | Add a line to your init file (@pxref{Init File}), modifying the | 495 | Add a line to your init file, modifying the variable |
| 496 | variable @code{default-frame-alist} to specify the @code{font} | 496 | @code{default-frame-alist} to specify the @code{font} parameter |
| 497 | parameter (@pxref{Creating Frames}), like this: | 497 | (@pxref{Frame Parameters}), like this: |
| 498 | 498 | ||
| 499 | @smallexample | 499 | @example |
| 500 | (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-10")) | 500 | (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-10")) |
| 501 | @end smallexample | 501 | @end example |
| 502 | 502 | ||
| 503 | @cindex X defaults file | 503 | @cindex X defaults file |
| 504 | @cindex X resources file | 504 | @cindex X resources file |
| @@ -506,14 +506,14 @@ parameter (@pxref{Creating Frames}), like this: | |||
| 506 | Add an @samp{emacs.font} X resource setting to your X resource file, | 506 | Add an @samp{emacs.font} X resource setting to your X resource file, |
| 507 | like this: | 507 | like this: |
| 508 | 508 | ||
| 509 | @smallexample | 509 | @example |
| 510 | emacs.font: DejaVu Sans Mono-12 | 510 | emacs.font: DejaVu Sans Mono-12 |
| 511 | @end smallexample | 511 | @end example |
| 512 | 512 | ||
| 513 | @noindent | 513 | @noindent |
| 514 | You must restart X, or use the @command{xrdb} command, for the X | 514 | You must restart X, or use the @command{xrdb} command, for the X |
| 515 | resources file to take effect. @xref{Resources}. When specifying a | 515 | resources file to take effect. @xref{Resources}. Do not quote |
| 516 | font in your X resources file, you should not quote it. | 516 | font names in X resource files. |
| 517 | 517 | ||
| 518 | @item | 518 | @item |
| 519 | If you are running Emacs on the GNOME desktop, you can tell Emacs to | 519 | If you are running Emacs on the GNOME desktop, you can tell Emacs to |
| @@ -535,9 +535,9 @@ names the font that it's rendered in. | |||
| 535 | first is to use a @dfn{Fontconfig pattern}. Fontconfig patterns have | 535 | first is to use a @dfn{Fontconfig pattern}. Fontconfig patterns have |
| 536 | the following form: | 536 | the following form: |
| 537 | 537 | ||
| 538 | @smallexample | 538 | @example |
| 539 | @var{fontname}[-@var{fontsize}][:@var{name1}=@var{values1}][:@var{name2}=@var{values2}]... | 539 | @var{fontname}[-@var{fontsize}][:@var{name1}=@var{values1}][:@var{name2}=@var{values2}]... |
| 540 | @end smallexample | 540 | @end example |
| 541 | 541 | ||
| 542 | @noindent | 542 | @noindent |
| 543 | Within this format, any of the elements in braces may be omitted. | 543 | Within this format, any of the elements in braces may be omitted. |
| @@ -577,13 +577,13 @@ One of @samp{monospace}, @samp{proportional}, @samp{dual-width}, or | |||
| 577 | @noindent | 577 | @noindent |
| 578 | Here are some examples of Fontconfig patterns: | 578 | Here are some examples of Fontconfig patterns: |
| 579 | 579 | ||
| 580 | @smallexample | 580 | @example |
| 581 | Monospace | 581 | Monospace |
| 582 | Monospace-12 | 582 | Monospace-12 |
| 583 | Monospace-12:bold | 583 | Monospace-12:bold |
| 584 | DejaVu Sans Mono:bold:italic | 584 | DejaVu Sans Mono:bold:italic |
| 585 | Monospace-12:weight=bold:slant=italic | 585 | Monospace-12:weight=bold:slant=italic |
| 586 | @end smallexample | 586 | @end example |
| 587 | 587 | ||
| 588 | For a more detailed description of Fontconfig patterns, see the | 588 | For a more detailed description of Fontconfig patterns, see the |
| 589 | Fontconfig manual, which is distributed with Fontconfig and available | 589 | Fontconfig manual, which is distributed with Fontconfig and available |
| @@ -593,9 +593,9 @@ online at @url{http://fontconfig.org/fontconfig-user.html}. | |||
| 593 | The second way to specify a font is to use a @dfn{GTK font pattern}. | 593 | The second way to specify a font is to use a @dfn{GTK font pattern}. |
| 594 | These have the syntax | 594 | These have the syntax |
| 595 | 595 | ||
| 596 | @smallexample | 596 | @example |
| 597 | @var{fontname} [@var{properties}] [@var{fontsize}] | 597 | @var{fontname} [@var{properties}] [@var{fontsize}] |
| 598 | @end smallexample | 598 | @end example |
| 599 | 599 | ||
| 600 | @noindent | 600 | @noindent |
| 601 | where @var{fontname} is the family name, @var{properties} is a list of | 601 | where @var{fontname} is the family name, @var{properties} is a list of |
| @@ -619,10 +619,10 @@ omitted, a default width is used. | |||
| 619 | @noindent | 619 | @noindent |
| 620 | Here are some examples of GTK font patterns: | 620 | Here are some examples of GTK font patterns: |
| 621 | 621 | ||
| 622 | @smallexample | 622 | @example |
| 623 | Monospace 12 | 623 | Monospace 12 |
| 624 | Monospace Bold Italic 12 | 624 | Monospace Bold Italic 12 |
| 625 | @end smallexample | 625 | @end example |
| 626 | 626 | ||
| 627 | @cindex XLFD | 627 | @cindex XLFD |
| 628 | @cindex X Logical Font Description | 628 | @cindex X Logical Font Description |
| @@ -631,9 +631,9 @@ Logical Font Description}). This is the traditional method for | |||
| 631 | specifying fonts under X. Each XLFD consists of fourteen words or | 631 | specifying fonts under X. Each XLFD consists of fourteen words or |
| 632 | numbers, separated by dashes, like this: | 632 | numbers, separated by dashes, like this: |
| 633 | 633 | ||
| 634 | @smallexample | 634 | @example |
| 635 | -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1 | 635 | -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1 |
| 636 | @end smallexample | 636 | @end example |
| 637 | 637 | ||
| 638 | @noindent | 638 | @noindent |
| 639 | A wildcard character (@samp{*}) in an XLFD matches any sequence of | 639 | A wildcard character (@samp{*}) in an XLFD matches any sequence of |
| @@ -644,10 +644,10 @@ results, supply all 14 dashes and use wildcards only within a field. | |||
| 644 | Case is insignificant in an XLFD. The syntax for an XLFD is as | 644 | Case is insignificant in an XLFD. The syntax for an XLFD is as |
| 645 | follows: | 645 | follows: |
| 646 | 646 | ||
| 647 | @smallexample | 647 | @example |
| 648 | -@var{maker}-@var{family}-@var{weight}-@var{slant}-@var{widthtype}-@var{style}@dots{} | 648 | -@var{maker}-@var{family}-@var{weight}-@var{slant}-@var{widthtype}-@var{style}@dots{} |
| 649 | @dots{}-@var{pixels}-@var{height}-@var{horiz}-@var{vert}-@var{spacing}-@var{width}-@var{registry}-@var{encoding} | 649 | @dots{}-@var{pixels}-@var{height}-@var{horiz}-@var{vert}-@var{spacing}-@var{width}-@var{registry}-@var{encoding} |
| 650 | @end smallexample | 650 | @end example |
| 651 | 651 | ||
| 652 | @noindent | 652 | @noindent |
| 653 | The entries have the following meanings: | 653 | The entries have the following meanings: |
| @@ -706,9 +706,9 @@ nickname''. Certain fonts have shorter nicknames, which you can use | |||
| 706 | instead of a normal font specification. For instance, @samp{6x13} is | 706 | instead of a normal font specification. For instance, @samp{6x13} is |
| 707 | equivalent to | 707 | equivalent to |
| 708 | 708 | ||
| 709 | @smallexample | 709 | @example |
| 710 | -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1 | 710 | -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1 |
| 711 | @end smallexample | 711 | @end example |
| 712 | 712 | ||
| 713 | @cindex client-side fonts | 713 | @cindex client-side fonts |
| 714 | @cindex server-side fonts | 714 | @cindex server-side fonts |
| @@ -1160,9 +1160,9 @@ enable mouse support. You must have the gpm server installed and | |||
| 1160 | running on your system in order for this to work. | 1160 | running on your system in order for this to work. |
| 1161 | 1161 | ||
| 1162 | @iftex | 1162 | @iftex |
| 1163 | @pxref{MS-DOS Mouse,,,emacs-xtra,Specialized Emacs Features}, | 1163 | @xref{MS-DOS Mouse,,,emacs-xtra,Specialized Emacs Features}, |
| 1164 | @end iftex | 1164 | @end iftex |
| 1165 | @ifnottex | 1165 | @ifnottex |
| 1166 | @pxref{MS-DOS Mouse}, | 1166 | @xref{MS-DOS Mouse}, |
| 1167 | @end ifnottex | 1167 | @end ifnottex |
| 1168 | for information about mouse support on MS-DOS. | 1168 | for information about mouse support on MS-DOS. |
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 72583f25c8b..b0ee5bd5f2f 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi | |||
| @@ -711,7 +711,7 @@ commit can include both file additions and edits to existing files. | |||
| 711 | 711 | ||
| 712 | On a locking-based version control system (@pxref{VCS Merging}), | 712 | On a locking-based version control system (@pxref{VCS Merging}), |
| 713 | registering a file leaves it unlocked and read-only. Type @kbd{C-x v | 713 | registering a file leaves it unlocked and read-only. Type @kbd{C-x v |
| 714 | v} if you wish to start editing it. | 714 | v} to start editing it. |
| 715 | 715 | ||
| 716 | @node Old Revisions | 716 | @node Old Revisions |
| 717 | @subsection Examining And Comparing Old Revisions | 717 | @subsection Examining And Comparing Old Revisions |
| @@ -1729,7 +1729,7 @@ find-tag @key{RET} bidule @key{RET}} will just search for any tag | |||
| 1729 | @code{bidule}. | 1729 | @code{bidule}. |
| 1730 | 1730 | ||
| 1731 | @item | 1731 | @item |
| 1732 | In assembler code, labels appearing at the beginning of a line, | 1732 | In assembler code, labels appearing at the start of a line, |
| 1733 | followed by a colon, are tags. | 1733 | followed by a colon, are tags. |
| 1734 | 1734 | ||
| 1735 | @item | 1735 | @item |
diff --git a/doc/emacs/modes.texi b/doc/emacs/modes.texi index 52ecd37fcf2..a48299768a8 100644 --- a/doc/emacs/modes.texi +++ b/doc/emacs/modes.texi | |||
| @@ -65,8 +65,7 @@ process (@pxref{Interactive Shell}). | |||
| 65 | first visit a file or create a buffer (@pxref{Choosing Modes}). You | 65 | first visit a file or create a buffer (@pxref{Choosing Modes}). You |
| 66 | can explicitly select a new major mode by using an @kbd{M-x} command. | 66 | can explicitly select a new major mode by using an @kbd{M-x} command. |
| 67 | Take the name of the mode and add @code{-mode} to get the name of the | 67 | Take the name of the mode and add @code{-mode} to get the name of the |
| 68 | command to select that mode. Thus, you can enter Lisp mode with | 68 | command to select that mode (e.g., @kbd{M-x lisp-mode} enters Lisp mode). |
| 69 | @kbd{M-x lisp-mode}. | ||
| 70 | 69 | ||
| 71 | @vindex major-mode | 70 | @vindex major-mode |
| 72 | The value of the buffer-local variable @code{major-mode} is a symbol | 71 | The value of the buffer-local variable @code{major-mode} is a symbol |
| @@ -81,9 +80,9 @@ change this default value via the Customization interface (@pxref{Easy | |||
| 81 | Customization}), or by adding a line like this to your init file | 80 | Customization}), or by adding a line like this to your init file |
| 82 | (@pxref{Init File}): | 81 | (@pxref{Init File}): |
| 83 | 82 | ||
| 84 | @smallexample | 83 | @example |
| 85 | (setq-default major-mode 'text-mode) | 84 | (setq-default major-mode 'text-mode) |
| 86 | @end smallexample | 85 | @end example |
| 87 | 86 | ||
| 88 | @noindent | 87 | @noindent |
| 89 | If the default value of @code{major-mode} is @code{nil}, the major | 88 | If the default value of @code{major-mode} is @code{nil}, the major |
| @@ -216,8 +215,7 @@ in individual buffers. @xref{Faces}. | |||
| 216 | @findex linum-mode | 215 | @findex linum-mode |
| 217 | @cindex Linum mode | 216 | @cindex Linum mode |
| 218 | @item | 217 | @item |
| 219 | Linum mode displays each line's line number in the window's left | 218 | Linum mode displays each line's line number in the window's left margin. |
| 220 | margin. Its mode command is @code{linum-mode}. | ||
| 221 | 219 | ||
| 222 | @item | 220 | @item |
| 223 | Outline minor mode provides similar facilities to the major mode | 221 | Outline minor mode provides similar facilities to the major mode |
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi index cffcb7573ff..b0b35bf14b5 100644 --- a/doc/emacs/mule.texi +++ b/doc/emacs/mule.texi | |||
| @@ -991,12 +991,11 @@ and asks you to choose one of those coding systems. | |||
| 991 | behaves a bit differently. It additionally checks whether the | 991 | behaves a bit differently. It additionally checks whether the |
| 992 | @c What determines this? | 992 | @c What determines this? |
| 993 | most-preferred coding system is recommended for use in MIME messages; | 993 | most-preferred coding system is recommended for use in MIME messages; |
| 994 | if not, Emacs tells you that the most-preferred coding system is not | 994 | if not, it informs you of this fact and prompts you for another coding |
| 995 | recommended and prompts you for another coding system. This is so you | 995 | system. This is so you won't inadvertently send a message encoded in |
| 996 | won't inadvertently send a message encoded in a way that your | 996 | a way that your recipient's mail software will have difficulty |
| 997 | recipient's mail software will have difficulty decoding. (You can | 997 | decoding. (You can still use an unsuitable coding system if you enter |
| 998 | still use an unsuitable coding system if you type its name in response | 998 | its name at the prompt.) |
| 999 | to the question.) | ||
| 1000 | 999 | ||
| 1001 | @c It seems that select-message-coding-system does this. | 1000 | @c It seems that select-message-coding-system does this. |
| 1002 | @c Both sendmail.el and smptmail.el call it; i.e. smtpmail.el still | 1001 | @c Both sendmail.el and smptmail.el call it; i.e. smtpmail.el still |
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 23f808b93ea..b7f21e8a93c 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | @cindex program editing | 9 | @cindex program editing |
| 10 | 10 | ||
| 11 | This chapter describes Emacs features for facilitating editing | 11 | This chapter describes Emacs features for facilitating editing |
| 12 | programs. Some of these features can: | 12 | programs. Some of the things these features can do are: |
| 13 | 13 | ||
| 14 | @itemize @bullet | 14 | @itemize @bullet |
| 15 | @item | 15 | @item |
| @@ -128,8 +128,7 @@ IDL/Pike/AWK (@pxref{Top, , CC Mode, ccmode, CC Mode}), and IDLWAVE | |||
| 128 | @ifnotinfo | 128 | @ifnotinfo |
| 129 | The Emacs distribution contains Info manuals for the major modes for | 129 | The Emacs distribution contains Info manuals for the major modes for |
| 130 | Ada, C/C++/Objective C/Java/Corba IDL/Pike/AWK, and IDLWAVE. For | 130 | Ada, C/C++/Objective C/Java/Corba IDL/Pike/AWK, and IDLWAVE. For |
| 131 | Fortran mode, see the ``Fortran'' section in the Info version of the | 131 | Fortran mode, @pxref{Fortran,,, emacs-xtra, Specialized Emacs Features}. |
| 132 | Emacs manual, which is not included in this printed version. | ||
| 133 | @end ifnotinfo | 132 | @end ifnotinfo |
| 134 | 133 | ||
| 135 | @node Defuns | 134 | @node Defuns |
| @@ -186,15 +185,13 @@ delimiter from starting a defun. Here's an example: | |||
| 186 | highlights confusing opening delimiters (those that ought to be | 185 | highlights confusing opening delimiters (those that ought to be |
| 187 | quoted) in bold red. | 186 | quoted) in bold red. |
| 188 | 187 | ||
| 188 | @vindex open-paren-in-column-0-is-defun-start | ||
| 189 | If you need to override this convention, you can do so by setting | 189 | If you need to override this convention, you can do so by setting |
| 190 | this user option: | 190 | the variable @code{open-paren-in-column-0-is-defun-start}. |
| 191 | |||
| 192 | @defvar open-paren-in-column-0-is-defun-start | ||
| 193 | If this user option is set to @code{t} (the default), opening | 191 | If this user option is set to @code{t} (the default), opening |
| 194 | parentheses or braces at column zero always start defuns. When it's | 192 | parentheses or braces at column zero always start defuns. When it is |
| 195 | @code{nil}, defuns are found by searching for parens or braces at the | 193 | @code{nil}, defuns are found by searching for parens or braces at the |
| 196 | outermost level. | 194 | outermost level. |
| 197 | @end defvar | ||
| 198 | 195 | ||
| 199 | Usually, you should leave this option at its default value of | 196 | Usually, you should leave this option at its default value of |
| 200 | @code{t}. If your buffer contains parentheses or braces in column | 197 | @code{t}. If your buffer contains parentheses or braces in column |
| @@ -1553,8 +1550,8 @@ after the mode name: | |||
| 1553 | @kindex C-c C-l @r{(C mode)} | 1550 | @kindex C-c C-l @r{(C mode)} |
| 1554 | @findex c-toggle-electric-state | 1551 | @findex c-toggle-electric-state |
| 1555 | Toggle electric action (@code{c-toggle-electric-state}). With a | 1552 | Toggle electric action (@code{c-toggle-electric-state}). With a |
| 1556 | prefix argument, this command enables electric action if the argument | 1553 | positive prefix argument, this command enables electric action, with a |
| 1557 | is positive, disables it if it is negative. | 1554 | negative one it disables it. |
| 1558 | @end table | 1555 | @end table |
| 1559 | 1556 | ||
| 1560 | Electric characters insert newlines only when, in addition to the | 1557 | Electric characters insert newlines only when, in addition to the |
| @@ -1591,8 +1588,7 @@ preprocessor commands. | |||
| 1591 | @findex c-hungry-delete-backwards | 1588 | @findex c-hungry-delete-backwards |
| 1592 | @kindex C-c C-@key{DEL} (C Mode) | 1589 | @kindex C-c C-@key{DEL} (C Mode) |
| 1593 | @kindex C-c @key{DEL} (C Mode) | 1590 | @kindex C-c @key{DEL} (C Mode) |
| 1594 | @code{c-hungry-delete-backwards}---Delete the entire block of whitespace | 1591 | Delete the entire block of whitespace preceding point (@code{c-hungry-delete-backwards}). |
| 1595 | preceding point. | ||
| 1596 | 1592 | ||
| 1597 | @item C-c C-d | 1593 | @item C-c C-d |
| 1598 | @itemx C-c C-@key{DELETE} | 1594 | @itemx C-c C-@key{DELETE} |
| @@ -1601,8 +1597,7 @@ preceding point. | |||
| 1601 | @kindex C-c C-d (C Mode) | 1597 | @kindex C-c C-d (C Mode) |
| 1602 | @kindex C-c C-@key{DELETE} (C Mode) | 1598 | @kindex C-c C-@key{DELETE} (C Mode) |
| 1603 | @kindex C-c @key{DELETE} (C Mode) | 1599 | @kindex C-c @key{DELETE} (C Mode) |
| 1604 | @code{c-hungry-delete-forward}---Delete the entire block of whitespace | 1600 | Delete the entire block of whitespace after point (@code{c-hungry-delete-forward}). |
| 1605 | following point. | ||
| 1606 | @end table | 1601 | @end table |
| 1607 | 1602 | ||
| 1608 | As an alternative to the above commands, you can enable @dfn{hungry | 1603 | As an alternative to the above commands, you can enable @dfn{hungry |
| @@ -1615,9 +1610,7 @@ preceding whitespace, not just one space, and a single @kbd{C-c C-d} | |||
| 1615 | @item M-x c-toggle-hungry-state | 1610 | @item M-x c-toggle-hungry-state |
| 1616 | @findex c-toggle-hungry-state | 1611 | @findex c-toggle-hungry-state |
| 1617 | Toggle the hungry-delete feature | 1612 | Toggle the hungry-delete feature |
| 1618 | (@code{c-toggle-hungry-state})@footnote{This command had the binding | 1613 | (@code{c-toggle-hungry-state}). With a prefix argument, |
| 1619 | @kbd{C-c C-d} in earlier versions of Emacs. @kbd{C-c C-d} is now | ||
| 1620 | bound to @code{c-hungry-delete-forward}.}. With a prefix argument, | ||
| 1621 | this command turns the hungry-delete feature on if the argument is | 1614 | this command turns the hungry-delete feature on if the argument is |
| 1622 | positive, and off if it is negative. | 1615 | positive, and off if it is negative. |
| 1623 | @end table | 1616 | @end table |
| @@ -1656,11 +1649,11 @@ needs a binding to be useful. The following code will bind it to | |||
| 1656 | @kbd{C-j}. We use @code{c-initialization-hook} here to make sure | 1649 | @kbd{C-j}. We use @code{c-initialization-hook} here to make sure |
| 1657 | the keymap is loaded before we try to change it. | 1650 | the keymap is loaded before we try to change it. |
| 1658 | 1651 | ||
| 1659 | @smallexample | 1652 | @example |
| 1660 | (defun my-bind-clb () | 1653 | (defun my-bind-clb () |
| 1661 | (define-key c-mode-base-map "\C-j" 'c-context-line-break)) | 1654 | (define-key c-mode-base-map "\C-j" 'c-context-line-break)) |
| 1662 | (add-hook 'c-initialization-hook 'my-bind-clb) | 1655 | (add-hook 'c-initialization-hook 'my-bind-clb) |
| 1663 | @end smallexample | 1656 | @end example |
| 1664 | 1657 | ||
| 1665 | @item C-M-h | 1658 | @item C-M-h |
| 1666 | Put mark at the end of a function definition, and put point at the | 1659 | Put mark at the end of a function definition, and put point at the |
diff --git a/doc/emacs/rmail.texi b/doc/emacs/rmail.texi index 6221bbac1a8..3938712a5e9 100644 --- a/doc/emacs/rmail.texi +++ b/doc/emacs/rmail.texi | |||
| @@ -1232,9 +1232,9 @@ rmail-epa-decrypt} to decrypt it, using the EasyPG library | |||
| 1232 | Address mode: | 1232 | Address mode: |
| 1233 | 1233 | ||
| 1234 | @c FIXME goto-addr.el commentary says to use goto-address instead. | 1234 | @c FIXME goto-addr.el commentary says to use goto-address instead. |
| 1235 | @smallexample | 1235 | @example |
| 1236 | (add-hook 'rmail-show-message-hook 'goto-address-mode) | 1236 | (add-hook 'rmail-show-message-hook 'goto-address-mode) |
| 1237 | @end smallexample | 1237 | @end example |
| 1238 | 1238 | ||
| 1239 | @noindent | 1239 | @noindent |
| 1240 | Then you can browse these URLs by clicking on them with @kbd{Mouse-2} | 1240 | Then you can browse these URLs by clicking on them with @kbd{Mouse-2} |
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index e56b00e2723..90f4732079b 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi | |||
| @@ -379,8 +379,8 @@ delimited once again. The reason @kbd{C-x C-p} includes only the | |||
| 379 | following page delimiter in the region is to ensure that. | 379 | following page delimiter in the region is to ensure that. |
| 380 | 380 | ||
| 381 | A numeric argument to @kbd{C-x C-p} specifies which page to go to, | 381 | A numeric argument to @kbd{C-x C-p} specifies which page to go to, |
| 382 | relative to the current one. Zero means the current page. One means | 382 | relative to the current one. Zero means the current page, one |
| 383 | the next page, and @minus{}1 means the previous one. | 383 | the next page, and @minus{}1 the previous one. |
| 384 | 384 | ||
| 385 | @kindex C-x l | 385 | @kindex C-x l |
| 386 | @findex count-lines-page | 386 | @findex count-lines-page |
| @@ -412,7 +412,7 @@ beginning of a line. | |||
| 412 | specified width. Emacs does filling in two ways. In Auto Fill mode, | 412 | specified width. Emacs does filling in two ways. In Auto Fill mode, |
| 413 | inserting text with self-inserting characters also automatically fills | 413 | inserting text with self-inserting characters also automatically fills |
| 414 | it. There are also explicit fill commands that you can use when editing | 414 | it. There are also explicit fill commands that you can use when editing |
| 415 | text leaves it unfilled. | 415 | text. |
| 416 | 416 | ||
| 417 | @menu | 417 | @menu |
| 418 | * Auto Fill:: Auto Fill mode breaks long lines automatically. | 418 | * Auto Fill:: Auto Fill mode breaks long lines automatically. |
| @@ -1240,6 +1240,7 @@ quad click: exit all folds and hide text. | |||
| 1240 | @end itemize | 1240 | @end itemize |
| 1241 | @end table | 1241 | @end table |
| 1242 | 1242 | ||
| 1243 | @c FIXME not marked as a user variable | ||
| 1243 | @vindex foldout-mouse-modifiers | 1244 | @vindex foldout-mouse-modifiers |
| 1244 | You can specify different modifier keys (instead of | 1245 | You can specify different modifier keys (instead of |
| 1245 | @kbd{Control-Meta-}) by setting @code{foldout-mouse-modifiers}; but if | 1246 | @kbd{Control-Meta-}) by setting @code{foldout-mouse-modifiers}; but if |
| @@ -1248,7 +1249,7 @@ it in order for this to take effect. | |||
| 1248 | 1249 | ||
| 1249 | To use the Foldout package, you can type @kbd{M-x load-library | 1250 | To use the Foldout package, you can type @kbd{M-x load-library |
| 1250 | @key{RET} foldout @key{RET}}; or you can arrange for to do that | 1251 | @key{RET} foldout @key{RET}}; or you can arrange for to do that |
| 1251 | automatically by putting this in your init file (@pxref{Init File}): | 1252 | automatically by putting the following in your init file: |
| 1252 | 1253 | ||
| 1253 | @example | 1254 | @example |
| 1254 | (eval-after-load "outline" '(require 'foldout)) | 1255 | (eval-after-load "outline" '(require 'foldout)) |
| @@ -1307,8 +1308,8 @@ with @kbd{M-<left>} (@code{org-metaleft}) and @kbd{M-<right>} | |||
| 1307 | if invoked on a body line. | 1308 | if invoked on a body line. |
| 1308 | 1309 | ||
| 1309 | The following subsections give basic instructions for using Org mode | 1310 | The following subsections give basic instructions for using Org mode |
| 1310 | as an organizer and as an authoring system. @xref{Top,The Org Mode | 1311 | as an organizer and as an authoring system. For details, @pxref{Top, |
| 1311 | Manual,,org, The Org Manual}, for details. | 1312 | The Org Mode Manual, Introduction, org, The Org Manual}. |
| 1312 | 1313 | ||
| 1313 | @menu | 1314 | @menu |
| 1314 | * Org Organizer:: Managing TODO lists and agendas. | 1315 | * Org Organizer:: Managing TODO lists and agendas. |
| @@ -1886,8 +1887,8 @@ the tag at point. | |||
| 1886 | @kindex C-c / @r{(SGML mode)} | 1887 | @kindex C-c / @r{(SGML mode)} |
| 1887 | @findex sgml-close-tag | 1888 | @findex sgml-close-tag |
| 1888 | Insert a close tag for the innermost unterminated tag | 1889 | Insert a close tag for the innermost unterminated tag |
| 1889 | (@code{sgml-close-tag}). If called from within a tag or a comment, | 1890 | (@code{sgml-close-tag}). If called within a tag or a comment, |
| 1890 | close this element instead of inserting a close tag. | 1891 | close it instead of inserting a close tag. |
| 1891 | 1892 | ||
| 1892 | @item C-c 8 | 1893 | @item C-c 8 |
| 1893 | @kindex C-c 8 @r{(SGML mode)} | 1894 | @kindex C-c 8 @r{(SGML mode)} |
| @@ -1948,10 +1949,10 @@ always insert explicit closing tags as well. | |||
| 1948 | @cindex nroff | 1949 | @cindex nroff |
| 1949 | @findex nroff-mode | 1950 | @findex nroff-mode |
| 1950 | @vindex nroff-mode-hook | 1951 | @vindex nroff-mode-hook |
| 1951 | Nroff mode is a major mode derived from Text mode, which is | 1952 | Nroff mode, a major mode derived from Text mode, is |
| 1952 | specialized for editing nroff files (e.g.@: Unix man pages). Type | 1953 | specialized for editing nroff files (e.g.@: Unix man pages). Type |
| 1953 | @kbd{M-x nroff-mode} to enter this mode. Entering Nroff mode runs the | 1954 | @kbd{M-x nroff-mode} to enter this mode. Entering Nroff mode runs the |
| 1954 | hook @code{text-mode-hook}, followed by @code{nroff-mode-hook} | 1955 | hook @code{text-mode-hook}, then @code{nroff-mode-hook} |
| 1955 | (@pxref{Hooks}). | 1956 | (@pxref{Hooks}). |
| 1956 | 1957 | ||
| 1957 | In Nroff mode, nroff command lines are treated as paragraph | 1958 | In Nroff mode, nroff command lines are treated as paragraph |
| @@ -2209,7 +2210,7 @@ for the right or left margin of a paragraph or a part of a paragraph. | |||
| 2209 | These margins also affect fill commands such as @kbd{M-q} | 2210 | These margins also affect fill commands such as @kbd{M-q} |
| 2210 | (@pxref{Filling}). | 2211 | (@pxref{Filling}). |
| 2211 | 2212 | ||
| 2212 | The Indentation submenu of Text Properties provides four commands | 2213 | The Indentation submenu of Text Properties offers commands |
| 2213 | for specifying indentation: | 2214 | for specifying indentation: |
| 2214 | 2215 | ||
| 2215 | @table @code | 2216 | @table @code |
| @@ -2292,10 +2293,9 @@ commands do nothing on text with this setting. You can, however, | |||
| 2292 | still indent the left margin. | 2293 | still indent the left margin. |
| 2293 | @end table | 2294 | @end table |
| 2294 | 2295 | ||
| 2296 | @vindex default-justification | ||
| 2295 | You can also specify justification styles using the Justification | 2297 | You can also specify justification styles using the Justification |
| 2296 | submenu in the Text Properties menu. | 2298 | submenu in the Text Properties menu. |
| 2297 | |||
| 2298 | @vindex default-justification | ||
| 2299 | The default justification style is specified by the per-buffer | 2299 | The default justification style is specified by the per-buffer |
| 2300 | variable @code{default-justification}. Its value should be one of the | 2300 | variable @code{default-justification}. Its value should be one of the |
| 2301 | symbols @code{left}, @code{right}, @code{full}, @code{center}, or | 2301 | symbols @code{left}, @code{right}, @code{full}, @code{center}, or |
| @@ -2578,10 +2578,12 @@ to @code{nil}. | |||
| 2578 | @findex table-insert-row | 2578 | @findex table-insert-row |
| 2579 | @kbd{M-x table-insert-row} inserts a row of cells before the current | 2579 | @kbd{M-x table-insert-row} inserts a row of cells before the current |
| 2580 | table row. The current row, together with point, is pushed down past | 2580 | table row. The current row, together with point, is pushed down past |
| 2581 | the new row. To insert rows after the last row at the bottom of a | 2581 | the new row. To insert a row after the last row at the bottom of a |
| 2582 | table, invoke this command with point below the table, just below the | 2582 | table, invoke this command with point below the table, just below the |
| 2583 | bottom edge. A numeric prefix argument specifies the number of rows | 2583 | bottom edge. You can insert more than one row at a time by using a |
| 2584 | to insert. | 2584 | numeric prefix argument. |
| 2585 | |||
| 2586 | @c A numeric prefix argument specifies the number of rows to insert. | ||
| 2585 | 2587 | ||
| 2586 | @findex table-insert-column | 2588 | @findex table-insert-column |
| 2587 | Similarly, @kbd{M-x table-insert-column} inserts a column of cells | 2589 | Similarly, @kbd{M-x table-insert-column} inserts a column of cells |
diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog index 40ec77a5151..1191b0de919 100644 --- a/doc/lispintro/ChangeLog +++ b/doc/lispintro/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2012-05-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp-intro.texi (Making Errors): Don't mention Emacs 20. | ||
| 4 | (Void Function, Wrong Type of Argument, Recursion with list) | ||
| 5 | (Simple Extension): Assume a non-ancient Emacs. | ||
| 6 | (Void Variable, Switching Buffers): Improve page breaks. | ||
| 7 | |||
| 8 | * emacs-lisp-intro.texi: Update GNU Press contact details. | ||
| 9 | |||
| 1 | 2012-05-04 Glenn Morris <rgm@gnu.org> | 10 | 2012-05-04 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure. | 12 | * Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure. |
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index b2b30978144..1c9cd213830 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi | |||
| @@ -234,27 +234,27 @@ Copyright @copyright{} 1990-1995, 1997, 2001-2012 Free Software Foundation, Inc. | |||
| 234 | @iftex | 234 | @iftex |
| 235 | Published by the:@* | 235 | Published by the:@* |
| 236 | 236 | ||
| 237 | GNU Press, @hfill @uref{http://www.gnupress.org}@* | 237 | GNU Press, @hfill @uref{http://www.fsf.org/campaigns/gnu-press/}@* |
| 238 | a division of the @hfill General: @email{press@@gnu.org}@* | 238 | a division of the @hfill email: @email{sales@@fsf.org}@* |
| 239 | Free Software Foundation, Inc. @hfill Orders:@w{ } @email{sales@@gnu.org}@* | 239 | Free Software Foundation, Inc. @hfill Tel: +1 (617) 542-5942@* |
| 240 | 51 Franklin Street, Fifth Floor @hfill Tel: +1 (617) 542-5942@* | 240 | 51 Franklin Street, Fifth Floor @hfill Fax: +1 (617) 542-2652@* |
| 241 | Boston, MA 02110-1301 USA @hfill Fax: +1 (617) 542-2652@* | 241 | Boston, MA 02110-1301 USA |
| 242 | @end iftex | 242 | @end iftex |
| 243 | 243 | ||
| 244 | @ifnottex | 244 | @ifnottex |
| 245 | Published by the: | 245 | Published by the: |
| 246 | 246 | ||
| 247 | @example | 247 | @example |
| 248 | GNU Press, Website: http://www.gnupress.org | 248 | GNU Press, http://www.fsf.org/campaigns/gnu-press/ |
| 249 | a division of the General: press@@gnu.org | 249 | a division of the email: sales@@fsf.org |
| 250 | Free Software Foundation, Inc. Orders: sales@@gnu.org | 250 | Free Software Foundation, Inc. Tel: +1 (617) 542-5942 |
| 251 | 51 Franklin Street, Fifth Floor Tel: +1 (617) 542-5942 | 251 | 51 Franklin Street, Fifth Floor Fax: +1 (617) 542-2652 |
| 252 | Boston, MA 02110-1301 USA Fax: +1 (617) 542-2652 | 252 | Boston, MA 02110-1301 USA |
| 253 | @end example | 253 | @end example |
| 254 | @end ifnottex | 254 | @end ifnottex |
| 255 | 255 | ||
| 256 | @sp 1 | 256 | @sp 1 |
| 257 | @c Printed copies are available for $30 each.@* | 257 | @c Printed copies are available from @uref{http://shop.fsf.org/} for $35 each.@* |
| 258 | ISBN 1-882114-43-4 | 258 | ISBN 1-882114-43-4 |
| 259 | 259 | ||
| 260 | Permission is granted to copy, distribute and/or modify this document | 260 | Permission is granted to copy, distribute and/or modify this document |
| @@ -1426,6 +1426,7 @@ C-e}: | |||
| 1426 | (this is an unquoted list) | 1426 | (this is an unquoted list) |
| 1427 | @end smallexample | 1427 | @end smallexample |
| 1428 | 1428 | ||
| 1429 | @ignore | ||
| 1429 | @noindent | 1430 | @noindent |
| 1430 | What you see depends on which version of Emacs you are running. GNU | 1431 | What you see depends on which version of Emacs you are running. GNU |
| 1431 | Emacs version 22 provides more information than version 20 and before. | 1432 | Emacs version 22 provides more information than version 20 and before. |
| @@ -1436,6 +1437,10 @@ earlier, version 20 result. | |||
| 1436 | @noindent | 1437 | @noindent |
| 1437 | In GNU Emacs version 22, a @file{*Backtrace*} window will open up and | 1438 | In GNU Emacs version 22, a @file{*Backtrace*} window will open up and |
| 1438 | you will see the following in it: | 1439 | you will see the following in it: |
| 1440 | @end ignore | ||
| 1441 | |||
| 1442 | A @file{*Backtrace*} window will open up and you should see the | ||
| 1443 | following in it: | ||
| 1439 | 1444 | ||
| 1440 | @smallexample | 1445 | @smallexample |
| 1441 | @group | 1446 | @group |
| @@ -1514,19 +1519,24 @@ evaluating @code{(+ 2 2)}, we can infer that the symbol @code{+} must | |||
| 1514 | have a set of instructions for the computer to obey and those | 1519 | have a set of instructions for the computer to obey and those |
| 1515 | instructions must be to add the numbers that follow the @code{+}. | 1520 | instructions must be to add the numbers that follow the @code{+}. |
| 1516 | 1521 | ||
| 1517 | @need 1250 | 1522 | It is possible to prevent Emacs entering the debugger in cases like |
| 1518 | In GNU Emacs version 20, and in earlier versions, you will see only | 1523 | this. We do not explain how to do that here, but we will mention what |
| 1519 | one line of error message; it will appear in the echo area and look | 1524 | the result looks like, because you may encounter a similar situation |
| 1520 | like this: | 1525 | if there is a bug in some Emacs code that you are using. In such |
| 1526 | cases, you will see only one line of error message; it will appear in | ||
| 1527 | the echo area and look like this: | ||
| 1521 | 1528 | ||
| 1522 | @smallexample | 1529 | @smallexample |
| 1523 | Symbol's function definition is void:@: this | 1530 | Symbol's function definition is void:@: this |
| 1524 | @end smallexample | 1531 | @end smallexample |
| 1525 | 1532 | ||
| 1526 | @noindent | 1533 | @noindent |
| 1534 | @ignore | ||
| 1527 | (Also, your terminal may beep at you---some do, some don't; and others | 1535 | (Also, your terminal may beep at you---some do, some don't; and others |
| 1528 | blink. This is just a device to get your attention.) The message goes | 1536 | blink. This is just a device to get your attention.) |
| 1529 | away as soon as you type another key, even just to move the cursor. | 1537 | @end ignore |
| 1538 | The message goes away as soon as you type a key, even just to | ||
| 1539 | move the cursor. | ||
| 1530 | 1540 | ||
| 1531 | We know the meaning of the word @samp{Symbol}. It refers to the first | 1541 | We know the meaning of the word @samp{Symbol}. It refers to the first |
| 1532 | atom of the list, the word @samp{this}. The word @samp{function} | 1542 | atom of the list, the word @samp{this}. The word @samp{function} |
| @@ -1862,8 +1872,7 @@ Try evaluating this: | |||
| 1862 | 1872 | ||
| 1863 | @need 1250 | 1873 | @need 1250 |
| 1864 | @noindent | 1874 | @noindent |
| 1865 | In GNU Emacs version 22, you will create a @file{*Backtrace*} buffer | 1875 | You will create a @file{*Backtrace*} buffer that says: |
| 1866 | that says: | ||
| 1867 | 1876 | ||
| 1868 | @smallexample | 1877 | @smallexample |
| 1869 | @group | 1878 | @group |
| @@ -1929,7 +1938,7 @@ Debugger entered--Lisp error: (void-variable +) | |||
| 1929 | @end smallexample | 1938 | @end smallexample |
| 1930 | 1939 | ||
| 1931 | @noindent | 1940 | @noindent |
| 1932 | (As with the other times we entered the debugger, you can quit by | 1941 | (Again, you can quit the debugger by |
| 1933 | typing @kbd{q} in the @file{*Backtrace*} buffer.) | 1942 | typing @kbd{q} in the @file{*Backtrace*} buffer.) |
| 1934 | 1943 | ||
| 1935 | This backtrace is different from the very first error message we saw, | 1944 | This backtrace is different from the very first error message we saw, |
| @@ -1943,7 +1952,7 @@ interpreter to evaluate the @code{+} and look for the value of the | |||
| 1943 | variable instead of the function definition. We did this by placing the | 1952 | variable instead of the function definition. We did this by placing the |
| 1944 | cursor right after the symbol rather than after the parenthesis of the | 1953 | cursor right after the symbol rather than after the parenthesis of the |
| 1945 | enclosing list as we did before. As a consequence, the Lisp interpreter | 1954 | enclosing list as we did before. As a consequence, the Lisp interpreter |
| 1946 | evaluated the preceding s-expression, which in this case was the | 1955 | evaluated the preceding s-expression, which in this case was |
| 1947 | @code{+} by itself. | 1956 | @code{+} by itself. |
| 1948 | 1957 | ||
| 1949 | Since @code{+} does not have a value bound to it, just the function | 1958 | Since @code{+} does not have a value bound to it, just the function |
| @@ -2183,8 +2192,7 @@ is that @code{+} has tried to add the 2 to the value returned by | |||
| 2183 | could not carry out its addition. | 2192 | could not carry out its addition. |
| 2184 | 2193 | ||
| 2185 | @need 1250 | 2194 | @need 1250 |
| 2186 | In GNU Emacs version 22, you will create and enter a | 2195 | You will create and enter a @file{*Backtrace*} buffer that says: |
| 2187 | @file{*Backtrace*} buffer that says: | ||
| 2188 | 2196 | ||
| 2189 | @noindent | 2197 | @noindent |
| 2190 | @smallexample | 2198 | @smallexample |
| @@ -2912,7 +2920,7 @@ rather, to save typing, you probably only typed @kbd{RET} if the | |||
| 2912 | default buffer was @file{*scratch*}, or if it was different, then you | 2920 | default buffer was @file{*scratch*}, or if it was different, then you |
| 2913 | typed just part of the name, such as @code{*sc}, pressed your | 2921 | typed just part of the name, such as @code{*sc}, pressed your |
| 2914 | @kbd{TAB} key to cause it to expand to the full name, and then typed | 2922 | @kbd{TAB} key to cause it to expand to the full name, and then typed |
| 2915 | your @kbd{RET} key.} when prompted in the minibuffer for the name of | 2923 | @kbd{RET}.} when prompted in the minibuffer for the name of |
| 2916 | the buffer to which you wanted to switch. The keystrokes, @kbd{C-x | 2924 | the buffer to which you wanted to switch. The keystrokes, @kbd{C-x |
| 2917 | b}, cause the Lisp interpreter to evaluate the interactive function | 2925 | b}, cause the Lisp interpreter to evaluate the interactive function |
| 2918 | @code{switch-to-buffer}. As we said before, this is how Emacs works: | 2926 | @code{switch-to-buffer}. As we said before, this is how Emacs works: |
| @@ -2922,10 +2930,7 @@ different keystrokes call or run different functions. For example, | |||
| 2922 | 2930 | ||
| 2923 | By writing @code{switch-to-buffer} in an expression, and giving it a | 2931 | By writing @code{switch-to-buffer} in an expression, and giving it a |
| 2924 | buffer to switch to, we can switch buffers just the way @kbd{C-x b} | 2932 | buffer to switch to, we can switch buffers just the way @kbd{C-x b} |
| 2925 | does. | 2933 | does: |
| 2926 | |||
| 2927 | @need 1000 | ||
| 2928 | Here is the Lisp expression: | ||
| 2929 | 2934 | ||
| 2930 | @smallexample | 2935 | @smallexample |
| 2931 | (switch-to-buffer (other-buffer)) | 2936 | (switch-to-buffer (other-buffer)) |
| @@ -7722,6 +7727,7 @@ retrieved. @xref{Yanking, , Yanking Text Back}. | |||
| 7722 | @section @code{zap-to-char} | 7727 | @section @code{zap-to-char} |
| 7723 | @findex zap-to-char | 7728 | @findex zap-to-char |
| 7724 | 7729 | ||
| 7730 | @c FIXME remove obsolete stuff | ||
| 7725 | The @code{zap-to-char} function changed little between GNU Emacs | 7731 | The @code{zap-to-char} function changed little between GNU Emacs |
| 7726 | version 19 and GNU Emacs version 22. However, @code{zap-to-char} | 7732 | version 19 and GNU Emacs version 22. However, @code{zap-to-char} |
| 7727 | calls another function, @code{kill-region}, which enjoyed a major | 7733 | calls another function, @code{kill-region}, which enjoyed a major |
| @@ -11508,9 +11514,10 @@ The example of a @code{while} loop that printed the elements of a list | |||
| 11508 | of numbers can be written recursively. Here is the code, including | 11514 | of numbers can be written recursively. Here is the code, including |
| 11509 | an expression to set the value of the variable @code{animals} to a list. | 11515 | an expression to set the value of the variable @code{animals} to a list. |
| 11510 | 11516 | ||
| 11511 | If you are using GNU Emacs 20 or before, this example must be copied | 11517 | If you are reading this in Info in Emacs, you can evaluate this |
| 11512 | to the @file{*scratch*} buffer and each expression must be evaluated | 11518 | expression directly in Info. Otherwise, you must copy the example |
| 11513 | there. Use @kbd{C-u C-x C-e} to evaluate the | 11519 | to the @file{*scratch*} buffer and evaluate each expression there. |
| 11520 | Use @kbd{C-u C-x C-e} to evaluate the | ||
| 11514 | @code{(print-elements-recursively animals)} expression so that the | 11521 | @code{(print-elements-recursively animals)} expression so that the |
| 11515 | results are printed in the buffer; otherwise the Lisp interpreter will | 11522 | results are printed in the buffer; otherwise the Lisp interpreter will |
| 11516 | try to squeeze the results into the one line of the echo area. | 11523 | try to squeeze the results into the one line of the echo area. |
| @@ -11519,9 +11526,6 @@ Also, place your cursor immediately after the last closing parenthesis | |||
| 11519 | of the @code{print-elements-recursively} function, before the comment. | 11526 | of the @code{print-elements-recursively} function, before the comment. |
| 11520 | Otherwise, the Lisp interpreter will try to evaluate the comment. | 11527 | Otherwise, the Lisp interpreter will try to evaluate the comment. |
| 11521 | 11528 | ||
| 11522 | If you are using a more recent version of Emacs, you can evaluate this | ||
| 11523 | expression directly in Info. | ||
| 11524 | |||
| 11525 | @findex print-elements-recursively | 11529 | @findex print-elements-recursively |
| 11526 | @smallexample | 11530 | @smallexample |
| 11527 | @group | 11531 | @group |
| @@ -17949,7 +17953,7 @@ the following conditional: | |||
| 17949 | @end group | 17953 | @end group |
| 17950 | @end smallexample | 17954 | @end smallexample |
| 17951 | 17955 | ||
| 17952 | For example, in contrast to version 20, more recent versions blink | 17956 | For example, recent versions blink |
| 17953 | their cursors by default. I hate such blinking, as well as other | 17957 | their cursors by default. I hate such blinking, as well as other |
| 17954 | features, so I placed the following in my @file{.emacs} | 17958 | features, so I placed the following in my @file{.emacs} |
| 17955 | file@footnote{When I start instances of Emacs that do not load my | 17959 | file@footnote{When I start instances of Emacs that do not load my |
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 77f47cdaae4..2d1134c6a89 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2012-05-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * objects.texi (Process Type, Overlay Type): Tweak page-breaks. | ||
| 4 | |||
| 5 | * intro.texi (Caveats): Copyedit. | ||
| 6 | (Lisp History): Convert inforef to xref. | ||
| 7 | (Lisp History, Printing Notation, Version Info): Improve page-breaks. | ||
| 8 | |||
| 9 | * text.texi (Auto Filling): Don't mention Emacs 19. | ||
| 10 | |||
| 11 | * commands.texi (Event Input Misc): Don't mention unread-command-char. | ||
| 12 | * numbers.texi (Predicates on Numbers): Don't mention Emacs 18. | ||
| 13 | |||
| 14 | * elisp.texi (DATE): Forgot to change the month in 2012-04-21 change. | ||
| 15 | |||
| 16 | 2012-05-04 Glenn Morris <rgm@gnu.org> | ||
| 17 | |||
| 18 | * lists.texi (List-related Predicates, List Variables): | ||
| 19 | Tweak page-breaks. | ||
| 20 | (Sets And Lists): Convert inforef to xref. | ||
| 21 | |||
| 1 | 2012-05-04 Glenn Morris <rgm@gnu.org> | 22 | 2012-05-04 Glenn Morris <rgm@gnu.org> |
| 2 | 23 | ||
| 3 | * Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure. | 24 | * Makefile.in (INFO_EXT, INFO_OPTS): New, set by configure. |
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index dea838462bb..50c345b5b15 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi | |||
| @@ -2703,6 +2703,7 @@ This function converts the string or vector @var{key} to a list of | |||
| 2703 | individual events, which you can put in @code{unread-command-events}. | 2703 | individual events, which you can put in @code{unread-command-events}. |
| 2704 | @end defun | 2704 | @end defun |
| 2705 | 2705 | ||
| 2706 | @ignore | ||
| 2706 | @defvar unread-command-char | 2707 | @defvar unread-command-char |
| 2707 | This variable holds a character to be read as command input. | 2708 | This variable holds a character to be read as command input. |
| 2708 | A value of -1 means ``empty''. | 2709 | A value of -1 means ``empty''. |
| @@ -2711,6 +2712,7 @@ This variable is mostly obsolete now that you can use | |||
| 2711 | @code{unread-command-events} instead; it exists only to support programs | 2712 | @code{unread-command-events} instead; it exists only to support programs |
| 2712 | written for Emacs versions 18 and earlier. | 2713 | written for Emacs versions 18 and earlier. |
| 2713 | @end defvar | 2714 | @end defvar |
| 2715 | @end ignore | ||
| 2714 | 2716 | ||
| 2715 | @defun input-pending-p | 2717 | @defun input-pending-p |
| 2716 | @cindex waiting for command key input | 2718 | @cindex waiting for command key input |
diff --git a/doc/lispref/elisp.texi b/doc/lispref/elisp.texi index cbec93c4f6c..5e0356ff1ff 100644 --- a/doc/lispref/elisp.texi +++ b/doc/lispref/elisp.texi | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | @c (See comments for EDITION in emacs.texi) | 9 | @c (See comments for EDITION in emacs.texi) |
| 10 | @set VERSION 3.1 | 10 | @set VERSION 3.1 |
| 11 | @include emacsver.texi | 11 | @include emacsver.texi |
| 12 | @set DATE July 2012 | 12 | @set DATE May 2012 |
| 13 | 13 | ||
| 14 | @c in general, keep the following line commented out, unless doing a | 14 | @c in general, keep the following line commented out, unless doing a |
| 15 | @c copy of this manual that will be published. The manual should go | 15 | @c copy of this manual that will be published. The manual should go |
diff --git a/doc/lispref/intro.texi b/doc/lispref/intro.texi index 698bc8c125b..282d01c3504 100644 --- a/doc/lispref/intro.texi +++ b/doc/lispref/intro.texi | |||
| @@ -73,7 +73,7 @@ real-life example for a function or group of functions, please make an | |||
| 73 | effort to write it up and send it in. Please reference any comments to | 73 | effort to write it up and send it in. Please reference any comments to |
| 74 | the chapter name, section name, and function name, as appropriate, since | 74 | the chapter name, section name, and function name, as appropriate, since |
| 75 | page numbers and chapter and section numbers will change and we may have | 75 | page numbers and chapter and section numbers will change and we may have |
| 76 | trouble finding the text you are talking about. Also state the number | 76 | trouble finding the text you are talking about. Also state the version |
| 77 | of the edition you are criticizing. | 77 | of the edition you are criticizing. |
| 78 | @end iftex | 78 | @end iftex |
| 79 | @ifnottex | 79 | @ifnottex |
| @@ -120,10 +120,10 @@ worry about it; this manual is self-contained. | |||
| 120 | 120 | ||
| 121 | @pindex cl | 121 | @pindex cl |
| 122 | A certain amount of Common Lisp emulation is available via the | 122 | A certain amount of Common Lisp emulation is available via the |
| 123 | @file{cl} library. @inforef{Top, Overview, cl}. | 123 | @file{cl} library. @xref{Top,, Overview, cl, Common Lisp Extensions}. |
| 124 | 124 | ||
| 125 | Emacs Lisp is not at all influenced by Scheme; but the GNU project has | 125 | Emacs Lisp is not at all influenced by Scheme; but the GNU project has |
| 126 | an implementation of Scheme, called Guile. We use Guile in all new GNU | 126 | an implementation of Scheme, called Guile. We use it in all new GNU |
| 127 | software that calls for extensibility. | 127 | software that calls for extensibility. |
| 128 | 128 | ||
| 129 | @node Conventions | 129 | @node Conventions |
| @@ -257,7 +257,7 @@ displayed in the echo area. | |||
| 257 | 257 | ||
| 258 | Examples in this manual indicate printed text with @samp{@print{}}, | 258 | Examples in this manual indicate printed text with @samp{@print{}}, |
| 259 | irrespective of where that text goes. The value returned by | 259 | irrespective of where that text goes. The value returned by |
| 260 | evaluating the form (here @code{bar}) follows on a separate line with | 260 | evaluating the form follows on a separate line with |
| 261 | @samp{@result{}}. | 261 | @samp{@result{}}. |
| 262 | 262 | ||
| 263 | @example | 263 | @example |
| @@ -510,8 +510,6 @@ numeric components, such as @code{"22.0.91.1"}, indicates an | |||
| 510 | unreleased test version. | 510 | unreleased test version. |
| 511 | @end defvar | 511 | @end defvar |
| 512 | 512 | ||
| 513 | The following two variables have existed since Emacs version 19.23: | ||
| 514 | |||
| 515 | @defvar emacs-major-version | 513 | @defvar emacs-major-version |
| 516 | The major version number of Emacs, as an integer. For Emacs version | 514 | The major version number of Emacs, as an integer. For Emacs version |
| 517 | 23.1, the value is 23. | 515 | 23.1, the value is 23. |
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi index 423bc7b6d8a..82a796c6700 100644 --- a/doc/lispref/lists.texi +++ b/doc/lispref/lists.texi | |||
| @@ -87,7 +87,7 @@ structure made out of cons cells as a @dfn{list structure}. | |||
| 87 | whether it is a cons cell or is a list, or whether it is the | 87 | whether it is a cons cell or is a list, or whether it is the |
| 88 | distinguished object @code{nil}. (Many of these predicates can be | 88 | distinguished object @code{nil}. (Many of these predicates can be |
| 89 | defined in terms of the others, but they are used so often that it is | 89 | defined in terms of the others, but they are used so often that it is |
| 90 | worth having all of them.) | 90 | worth having them.) |
| 91 | 91 | ||
| 92 | @defun consp object | 92 | @defun consp object |
| 93 | This function returns @code{t} if @var{object} is a cons cell, @code{nil} | 93 | This function returns @code{t} if @var{object} is a cons cell, @code{nil} |
| @@ -763,8 +763,7 @@ if it already has one; otherwise, it is equivalent to @code{nil}. | |||
| 763 | 763 | ||
| 764 | The argument @var{symbol} is not implicitly quoted; | 764 | The argument @var{symbol} is not implicitly quoted; |
| 765 | @code{add-to-ordered-list} is an ordinary function, like @code{set} | 765 | @code{add-to-ordered-list} is an ordinary function, like @code{set} |
| 766 | and unlike @code{setq}. Quote the argument yourself if that is what | 766 | and unlike @code{setq}. Quote the argument yourself if necessary. |
| 767 | you want. | ||
| 768 | 767 | ||
| 769 | The ordering information is stored in a hash table on @var{symbol}'s | 768 | The ordering information is stored in a hash table on @var{symbol}'s |
| 770 | @code{list-order} property. | 769 | @code{list-order} property. |
| @@ -1269,7 +1268,7 @@ functions for sets include @code{memq} and @code{delq}, and their | |||
| 1269 | @b{Common Lisp note:} Common Lisp has functions @code{union} (which | 1268 | @b{Common Lisp note:} Common Lisp has functions @code{union} (which |
| 1270 | avoids duplicate elements) and @code{intersection} for set operations. | 1269 | avoids duplicate elements) and @code{intersection} for set operations. |
| 1271 | Although standard GNU Emacs Lisp does not have them, the @file{cl} | 1270 | Although standard GNU Emacs Lisp does not have them, the @file{cl} |
| 1272 | library provides versions. @inforef{Top, Overview, cl}. | 1271 | library provides versions. @xref{Top,, Overview, cl, Common Lisp Extensions}. |
| 1273 | @end quotation | 1272 | @end quotation |
| 1274 | 1273 | ||
| 1275 | @defun memq object list | 1274 | @defun memq object list |
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi index 02d306b3f75..f19dea69036 100644 --- a/doc/lispref/numbers.texi +++ b/doc/lispref/numbers.texi | |||
| @@ -267,8 +267,6 @@ its argument. See also @code{integer-or-marker-p} and | |||
| 267 | @defun floatp object | 267 | @defun floatp object |
| 268 | This predicate tests whether its argument is a floating point | 268 | This predicate tests whether its argument is a floating point |
| 269 | number and returns @code{t} if so, @code{nil} otherwise. | 269 | number and returns @code{t} if so, @code{nil} otherwise. |
| 270 | |||
| 271 | @code{floatp} does not exist in Emacs versions 18 and earlier. | ||
| 272 | @end defun | 270 | @end defun |
| 273 | 271 | ||
| 274 | @defun integerp object | 272 | @defun integerp object |
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index b49d2bc05fe..f43b8d803f5 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi | |||
| @@ -1567,7 +1567,6 @@ runs in a process of this sort. However, in Emacs Lisp, a process is a | |||
| 1567 | Lisp object that designates a subprocess created by the Emacs process. | 1567 | Lisp object that designates a subprocess created by the Emacs process. |
| 1568 | Programs such as shells, GDB, ftp, and compilers, running in | 1568 | Programs such as shells, GDB, ftp, and compilers, running in |
| 1569 | subprocesses of Emacs, extend the capabilities of Emacs. | 1569 | subprocesses of Emacs, extend the capabilities of Emacs. |
| 1570 | |||
| 1571 | An Emacs subprocess takes textual input from Emacs and returns textual | 1570 | An Emacs subprocess takes textual input from Emacs and returns textual |
| 1572 | output to Emacs for further manipulation. Emacs can also send signals | 1571 | output to Emacs for further manipulation. Emacs can also send signals |
| 1573 | to the subprocess. | 1572 | to the subprocess. |
| @@ -1631,7 +1630,7 @@ buffer temporarily in a different display style. Overlays have no read | |||
| 1631 | syntax, and print in hash notation, giving the buffer name and range of | 1630 | syntax, and print in hash notation, giving the buffer name and range of |
| 1632 | positions. | 1631 | positions. |
| 1633 | 1632 | ||
| 1634 | @xref{Overlays}, for how to create and use overlays. | 1633 | @xref{Overlays}, for information on how you can create and use overlays. |
| 1635 | 1634 | ||
| 1636 | @node Font Type | 1635 | @node Font Type |
| 1637 | @subsection Font Type | 1636 | @subsection Font Type |
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 1178c294892..09ea37a96ba 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -1799,12 +1799,6 @@ special is done in that case. | |||
| 1799 | The value of @code{auto-fill-function} is @code{do-auto-fill} when | 1799 | The value of @code{auto-fill-function} is @code{do-auto-fill} when |
| 1800 | Auto-Fill mode is enabled. That is a function whose sole purpose is to | 1800 | Auto-Fill mode is enabled. That is a function whose sole purpose is to |
| 1801 | implement the usual strategy for breaking a line. | 1801 | implement the usual strategy for breaking a line. |
| 1802 | |||
| 1803 | @quotation | ||
| 1804 | In older Emacs versions, this variable was named @code{auto-fill-hook}, | ||
| 1805 | but since it is not called with the standard convention for hooks, it | ||
| 1806 | was renamed to @code{auto-fill-function} in version 19. | ||
| 1807 | @end quotation | ||
| 1808 | @end defvar | 1802 | @end defvar |
| 1809 | 1803 | ||
| 1810 | @defvar normal-auto-fill-function | 1804 | @defvar normal-auto-fill-function |
diff --git a/etc/refcards/README b/etc/refcards/README index a1fa2f063b5..0372826416e 100644 --- a/etc/refcards/README +++ b/etc/refcards/README | |||
| @@ -1,8 +1,11 @@ | |||
| 1 | Some of the *.tex files need special versions of TeX to typeset them. | 1 | To generate these refcards, you need to install the TeX document |
| 2 | The files cs-*.tex and sk-*.tex need csTeX, a special version of TeX | 2 | production system. For example, http://www.tug.org/texlive/ . |
| 3 | tailored to typesetting Czech and Slovak documents. We provide | 3 | |
| 4 | generated files for these documents, so that you could print them | 4 | All modern GNU/Linux distributions provide TeX packages, so the |
| 5 | without installing the modified TeX versions. | 5 | easiest way is just to install those. Your distribution may have |
| 6 | split some of the files needed to process non-English output into | ||
| 7 | separate, optional packages such as: texlive-lang-cyrillic, | ||
| 8 | texlive-lang-czechslovak, texlive-lang-german, and texlive-lang-polish. | ||
| 6 | 9 | ||
| 7 | 10 | ||
| 8 | COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES | 11 | COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES |
| @@ -12,5 +15,5 @@ it is reproduced here for convenience. | |||
| 12 | 15 | ||
| 13 | File: gnus-logo.eps, gnus-logo.pdf | 16 | File: gnus-logo.eps, gnus-logo.pdf |
| 14 | Author: Luis Fernandes <elf@ee.ryerson.ca> | 17 | Author: Luis Fernandes <elf@ee.ryerson.ca> |
| 15 | Copyright (C) 2001-2012 Free Software Foundation, Inc. | 18 | Copyright (C) 2001-2012 Free Software Foundation, Inc. |
| 16 | License: GNU General Public License version 3 or later (see COPYING) | 19 | License: GNU General Public License version 3 or later (see COPYING) |
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 79c4e0e10cb..cf7494cb5d5 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-05-05 Jim Meyering <meyering@redhat.com> | ||
| 2 | |||
| 3 | * lib-src/pop.c (pop_stat, pop_list, pop_multi_first, pop_last): | ||
| 4 | NUL-terminate the error buffer (Bug#11372). | ||
| 5 | |||
| 1 | 2012-05-02 Juanma Barranquero <lekktu@gmail.com> | 6 | 2012-05-02 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * emacsclient.c (min): Undef before redefining it. | 8 | * emacsclient.c (min): Undef before redefining it. |
diff --git a/lib-src/pop.c b/lib-src/pop.c index 37494d17a44..c4c7f2b4e2f 100644 --- a/lib-src/pop.c +++ b/lib-src/pop.c | |||
| @@ -346,6 +346,7 @@ pop_stat (popserver server, int *count, int *size) | |||
| 346 | if (0 == strncmp (fromserver, "-ERR", 4)) | 346 | if (0 == strncmp (fromserver, "-ERR", 4)) |
| 347 | { | 347 | { |
| 348 | strncpy (pop_error, fromserver, ERROR_MAX); | 348 | strncpy (pop_error, fromserver, ERROR_MAX); |
| 349 | pop_error[ERROR_MAX-1] = '\0'; | ||
| 349 | } | 350 | } |
| 350 | else | 351 | else |
| 351 | { | 352 | { |
| @@ -447,7 +448,10 @@ pop_list (popserver server, int message, int **IDs, int **sizes) | |||
| 447 | if (strncmp (fromserver, "+OK ", 4)) | 448 | if (strncmp (fromserver, "+OK ", 4)) |
| 448 | { | 449 | { |
| 449 | if (! strncmp (fromserver, "-ERR", 4)) | 450 | if (! strncmp (fromserver, "-ERR", 4)) |
| 450 | strncpy (pop_error, fromserver, ERROR_MAX); | 451 | { |
| 452 | strncpy (pop_error, fromserver, ERROR_MAX); | ||
| 453 | pop_error[ERROR_MAX-1] = '\0'; | ||
| 454 | } | ||
| 451 | else | 455 | else |
| 452 | { | 456 | { |
| 453 | strcpy (pop_error, | 457 | strcpy (pop_error, |
| @@ -687,6 +691,7 @@ pop_multi_first (popserver server, const char *command, char **response) | |||
| 687 | if (0 == strncmp (*response, "-ERR", 4)) | 691 | if (0 == strncmp (*response, "-ERR", 4)) |
| 688 | { | 692 | { |
| 689 | strncpy (pop_error, *response, ERROR_MAX); | 693 | strncpy (pop_error, *response, ERROR_MAX); |
| 694 | pop_error[ERROR_MAX-1] = '\0'; | ||
| 690 | return (-1); | 695 | return (-1); |
| 691 | } | 696 | } |
| 692 | else if (0 == strncmp (*response, "+OK", 3)) | 697 | else if (0 == strncmp (*response, "+OK", 3)) |
| @@ -860,6 +865,7 @@ pop_last (popserver server) | |||
| 860 | if (! strncmp (fromserver, "-ERR", 4)) | 865 | if (! strncmp (fromserver, "-ERR", 4)) |
| 861 | { | 866 | { |
| 862 | strncpy (pop_error, fromserver, ERROR_MAX); | 867 | strncpy (pop_error, fromserver, ERROR_MAX); |
| 868 | pop_error[ERROR_MAX-1] = '\0'; | ||
| 863 | return (-1); | 869 | return (-1); |
| 864 | } | 870 | } |
| 865 | else if (strncmp (fromserver, "+OK ", 4)) | 871 | else if (strncmp (fromserver, "+OK ", 4)) |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fcefb166ecb..76d3e2482c3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-05-04 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * select.el (xselect--encode-string): Always use utf-8 for TEXT on | ||
| 4 | Nextstep. | ||
| 5 | |||
| 1 | 2012-05-05 Ransom Williams <auvergnerw@gmail.com> (tiny change) | 6 | 2012-05-05 Ransom Williams <auvergnerw@gmail.com> (tiny change) |
| 2 | 7 | ||
| 3 | * files.el (file-auto-mode-skip): New var. | 8 | * files.el (file-auto-mode-skip): New var. |
diff --git a/lisp/select.el b/lisp/select.el index 3948fcc5456..d3153a0ce0e 100644 --- a/lisp/select.el +++ b/lisp/select.el | |||
| @@ -228,24 +228,30 @@ two markers or an overlay. Otherwise, it is nil." | |||
| 228 | ;; But avoid modifying the string if it's a buffer name etc. | 228 | ;; But avoid modifying the string if it's a buffer name etc. |
| 229 | (unless can-modify (setq str (substring str 0))) | 229 | (unless can-modify (setq str (substring str 0))) |
| 230 | (remove-text-properties 0 (length str) '(composition nil) str) | 230 | (remove-text-properties 0 (length str) '(composition nil) str) |
| 231 | ;; TEXT is a polymorphic target. Select the actual type | 231 | ;; For X selections, TEXT is a polymorphic target; choose |
| 232 | ;; from `UTF8_STRING', `COMPOUND_TEXT', `STRING', and | 232 | ;; the actual type from `UTF8_STRING', `COMPOUND_TEXT', |
| 233 | ;; `C_STRING'. | 233 | ;; `STRING', and `C_STRING'. On Nextstep, always use UTF-8 |
| 234 | (if (eq type 'TEXT) | 234 | ;; (see ns_string_to_pasteboard_internal in nsselect.m). |
| 235 | (if (not (multibyte-string-p str)) | 235 | (when (eq type 'TEXT) |
| 236 | (setq type 'C_STRING) | 236 | (cond |
| 237 | (let (non-latin-1 non-unicode eight-bit) | 237 | ((featurep 'ns) |
| 238 | (mapc #'(lambda (x) | 238 | (setq type 'UTF8_STRING)) |
| 239 | (if (>= x #x100) | 239 | ((not (multibyte-string-p str)) |
| 240 | (if (< x #x110000) | 240 | (setq type 'C_STRING)) |
| 241 | (setq non-latin-1 t) | 241 | (t |
| 242 | (if (< x #x3FFF80) | 242 | (let (non-latin-1 non-unicode eight-bit) |
| 243 | (setq non-unicode t) | 243 | (mapc #'(lambda (x) |
| 244 | (setq eight-bit t))))) | 244 | (if (>= x #x100) |
| 245 | str) | 245 | (if (< x #x110000) |
| 246 | (setq type (if non-unicode 'COMPOUND_TEXT | 246 | (setq non-latin-1 t) |
| 247 | (if non-latin-1 'UTF8_STRING | 247 | (if (< x #x3FFF80) |
| 248 | (if eight-bit 'C_STRING 'STRING))))))) | 248 | (setq non-unicode t) |
| 249 | (setq eight-bit t))))) | ||
| 250 | str) | ||
| 251 | (setq type (if non-unicode 'COMPOUND_TEXT | ||
| 252 | (if non-latin-1 'UTF8_STRING | ||
| 253 | (if eight-bit 'C_STRING | ||
| 254 | 'STRING)))))))) | ||
| 249 | (cond | 255 | (cond |
| 250 | ((eq type 'UTF8_STRING) | 256 | ((eq type 'UTF8_STRING) |
| 251 | (if (or (not coding) | 257 | (if (or (not coding) |
diff --git a/src/ChangeLog b/src/ChangeLog index 8063c8d8166..a4d7bb64919 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-05-05 Jim Meyering <meyering@redhat.com> | ||
| 2 | |||
| 3 | * w32font.c (fill_in_logfont): NUL-terminate a string (Bug#11372). | ||
| 4 | |||
| 1 | 2012-05-04 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2012-05-04 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * data.c (PUT_ERROR): New macro. | 7 | * data.c (PUT_ERROR): New macro. |
diff --git a/src/w32font.c b/src/w32font.c index dab9f4c61b4..8badace9635 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -2045,8 +2045,11 @@ fill_in_logfont (FRAME_PTR f, LOGFONT *logfont, Lisp_Object font_spec) | |||
| 2045 | /* Font families are interned, but allow for strings also in case of | 2045 | /* Font families are interned, but allow for strings also in case of |
| 2046 | user input. */ | 2046 | user input. */ |
| 2047 | else if (SYMBOLP (tmp)) | 2047 | else if (SYMBOLP (tmp)) |
| 2048 | strncpy (logfont->lfFaceName, | 2048 | { |
| 2049 | SDATA (ENCODE_SYSTEM (SYMBOL_NAME (tmp))), LF_FACESIZE); | 2049 | strncpy (logfont->lfFaceName, |
| 2050 | SDATA (ENCODE_SYSTEM (SYMBOL_NAME (tmp))), LF_FACESIZE); | ||
| 2051 | logfont->lfFaceName[LF_FACESIZE-1] = '\0'; | ||
| 2052 | } | ||
| 2050 | } | 2053 | } |
| 2051 | 2054 | ||
| 2052 | tmp = AREF (font_spec, FONT_ADSTYLE_INDEX); | 2055 | tmp = AREF (font_spec, FONT_ADSTYLE_INDEX); |