diff options
| author | Richard M. Stallman | 1998-08-26 21:05:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-08-26 21:05:38 +0000 |
| commit | 2eb4136ff5d38469b5e04cd638590565c447fc82 (patch) | |
| tree | c23e19e94616b1ae125be850d8989b83e343ac7f | |
| parent | cd75b81a1ef6750ebaa1dc8ee7788c7823322051 (diff) | |
| download | emacs-2eb4136ff5d38469b5e04cd638590565c447fc82.tar.gz emacs-2eb4136ff5d38469b5e04cd638590565c447fc82.zip | |
*** empty log message ***
| -rw-r--r-- | etc/FAQ | 57 | ||||
| -rw-r--r-- | lispref/commands.texi | 19 | ||||
| -rw-r--r-- | lispref/nonascii.texi | 12 |
3 files changed, 47 insertions, 41 deletions
| @@ -713,7 +713,6 @@ On-line Help, Printed Manuals, Other Sources of Help | |||
| 713 | distribution, and also the latest versions are available individually via | 713 | distribution, and also the latest versions are available individually via |
| 714 | anonymous FTP (prep.ai.mit.edu:pub/gnu/GNUinfo/): | 714 | anonymous FTP (prep.ai.mit.edu:pub/gnu/GNUinfo/): |
| 715 | 715 | ||
| 716 | APPLE -- Why the FSF doesn't support GNU Emacs on Apple computers | ||
| 717 | DISTRIB -- GNU Emacs Availability Information, | 716 | DISTRIB -- GNU Emacs Availability Information, |
| 718 | including the popular "Free Software Foundation Order Form" | 717 | including the popular "Free Software Foundation Order Form" |
| 719 | FTP -- How to get GNU Software by Internet FTP or by UUCP | 718 | FTP -- How to get GNU Software by Internet FTP or by UUCP |
| @@ -922,31 +921,9 @@ Common Things People Want To Do | |||
| 922 | Use "C-h v" (M-x describe-variable) to check the value of variables which | 921 | Use "C-h v" (M-x describe-variable) to check the value of variables which |
| 923 | you are trying to set or use. | 922 | you are trying to set or use. |
| 924 | 923 | ||
| 925 | 28: How do I make Emacs display the current line (or column) number? | 924 | 28: How do I make Emacs display the current column number? |
| 926 | |||
| 927 | To find out what line of the buffer you are on right now, do "M-x | ||
| 928 | what-line". Use "M-x goto-line" to go to a specific line. To find the | ||
| 929 | current column number, type "M-ESC (current-column)". | ||
| 930 | |||
| 931 | If you use these commands often, you might want to bind them to a key. | ||
| 932 | See question 104 for instructions on how to do that. | ||
| 933 | |||
| 934 | Typing "C-x l" (or M-x count-lines-page) will also tell you what line you | ||
| 935 | are on, provided the buffer isn't separated into "pages" with C-l | ||
| 936 | characters. In that case, it will only tell you what line of the current | ||
| 937 | "page" you are on. | ||
| 938 | 925 | ||
| 939 | To have Emacs automatically display the current line number of the point | 926 | Do M-x column-number-mode. |
| 940 | in the mode line, do "M-x line-number-mode". You can also put the form | ||
| 941 | |||
| 942 | (setq line-number-mode t) | ||
| 943 | |||
| 944 | in your .emacs file to achieve this whenever you start Emacs. Note that | ||
| 945 | Emacs will not display the line number if the buffer is larger than the | ||
| 946 | value of the variable line-number-display-limit. | ||
| 947 | |||
| 948 | None of the vi emulation modes provide the `set number' capability of vi | ||
| 949 | (as far as we know). | ||
| 950 | 927 | ||
| 951 | 29: How do I turn on abbrevs by default just in mode XXX? | 928 | 29: How do I turn on abbrevs by default just in mode XXX? |
| 952 | 929 | ||
| @@ -971,7 +948,7 @@ Common Things People Want To Do | |||
| 971 | 948 | ||
| 972 | If you want auto-fill mode on in all major modes, do this: | 949 | If you want auto-fill mode on in all major modes, do this: |
| 973 | 950 | ||
| 974 | (setq-default auto-fill-hook 'do-auto-fill) | 951 | (setq-default auto-fill-function 'do-auto-fill) |
| 975 | 952 | ||
| 976 | 31: How do I make Emacs use a certain major mode for certain files? | 953 | 31: How do I make Emacs use a certain major mode for certain files? |
| 977 | 954 | ||
| @@ -1340,7 +1317,7 @@ Common Things People Want To Do | |||
| 1340 | * Typing "C-x C-e" in any buffer evaluates the Lisp form immediately | 1317 | * Typing "C-x C-e" in any buffer evaluates the Lisp form immediately |
| 1341 | before point and prints its value in the echo area. | 1318 | before point and prints its value in the echo area. |
| 1342 | 1319 | ||
| 1343 | * Typing M-ESC or M-x eval-expression allows you to type a Lisp form in | 1320 | * Typing M-: or M-x eval-expression allows you to type a Lisp form in |
| 1344 | the minibuffer which will be evaluated. | 1321 | the minibuffer which will be evaluated. |
| 1345 | 1322 | ||
| 1346 | * You can use M-x load-file to have Emacs evaluate all the Lisp forms in | 1323 | * You can use M-x load-file to have Emacs evaluate all the Lisp forms in |
| @@ -2058,12 +2035,24 @@ Finding/Getting Emacs and Related Packages | |||
| 2058 | 2035 | ||
| 2059 | 88: Where can I get Emacs for my Apple computer? | 2036 | 88: Where can I get Emacs for my Apple computer? |
| 2060 | 2037 | ||
| 2061 | The FSF is a participant in a boycott of Apple because of Apple's "look | 2038 | There used to be a boycott of Apple because of its "look and feel" |
| 2062 | and feel" copyright suits. See the file etc/APPLE for more details. | 2039 | lawsuit. The lawsuit failed, and the boycott is over. |
| 2063 | Because of this boycott, the FSF doesn't include support in GNU software | 2040 | Currently the GNU project treats Apple like other computer companies. |
| 2064 | for Apple computers such as the Macintosh. | 2041 | |
| 2065 | 2042 | Since the Mac operating system is very different from Unix and GNU, | |
| 2066 | Please don't help people port or develop software for Apple computers. | 2043 | support for it would be a big job. And this job would be tangential |
| 2044 | to the GNU project's goals. Meanwhile, we don't have the resources | ||
| 2045 | to do all we want to do on supporting Emacs for GNU-like systems. | ||
| 2046 | So if we had to do work on support for the Macintosh, that would | ||
| 2047 | directly harm the GNU project. | ||
| 2048 | |||
| 2049 | Of course, the same is true for MSDOS and Windows NT. We decided to | ||
| 2050 | incorporate support for those systems because the code was very modular, | ||
| 2051 | because volunteers not only wrote all the code but also investigate | ||
| 2052 | all the bugs reported on those systems, and because we hoped that we | ||
| 2053 | will be able to raise funds for GNU using these versions, and in this | ||
| 2054 | way these ports will make up for the effort that they took. (We still | ||
| 2055 | hope so, but it has not happened yet.) | ||
| 2067 | 2056 | ||
| 2068 | 89: Where do I get Emacs that runs on VMS under DECwindows? | 2057 | 89: Where do I get Emacs that runs on VMS under DECwindows? |
| 2069 | 2058 | ||
| @@ -2918,7 +2907,7 @@ Mail and News | |||
| 2918 | 2907 | ||
| 2919 | * Emacs normally only reads the `.mailrc' file once per session, when you | 2908 | * Emacs normally only reads the `.mailrc' file once per session, when you |
| 2920 | start to compose your first mail message. If you edit .mailrc, you can | 2909 | start to compose your first mail message. If you edit .mailrc, you can |
| 2921 | type "M-ESC (build-mail-aliases) RET" to make Emacs reread .mailrc. | 2910 | type "M-: (build-mail-aliases) RET" to make Emacs reread .mailrc. |
| 2922 | (You have to include the parentheses where they are shown!) | 2911 | (You have to include the parentheses where they are shown!) |
| 2923 | 2912 | ||
| 2924 | * Emacs does not interpret vendor-specific additions to the format of the | 2913 | * Emacs does not interpret vendor-specific additions to the format of the |
diff --git a/lispref/commands.texi b/lispref/commands.texi index 893dcd3c142..0c1c7669bf9 100644 --- a/lispref/commands.texi +++ b/lispref/commands.texi | |||
| @@ -1846,17 +1846,22 @@ from the terminal---not counting those generated by keyboard macros. | |||
| 1846 | The lowest level functions for command input are those that read a | 1846 | The lowest level functions for command input are those that read a |
| 1847 | single event. | 1847 | single event. |
| 1848 | 1848 | ||
| 1849 | @defun read-event | 1849 | @defun read-event &optional prompt suppress-input-method |
| 1850 | This function reads and returns the next event of command input, waiting | 1850 | This function reads and returns the next event of command input, waiting |
| 1851 | if necessary until an event is available. Events can come directly from | 1851 | if necessary until an event is available. Events can come directly from |
| 1852 | the user or from a keyboard macro. | 1852 | the user or from a keyboard macro. |
| 1853 | 1853 | ||
| 1854 | The function @code{read-event} does not display any message to indicate | 1854 | If @var{prompt} is non-@code{nil}, it should be a string to display in |
| 1855 | it is waiting for input; use @code{message} first, if you wish to | 1855 | the echo area as a prompt. Otherwise, @code{read-event} does not |
| 1856 | display one. If you have not displayed a message, @code{read-event} | 1856 | display any message to indicate it is waiting for input; instead, it |
| 1857 | prompts by echoing: it displays descriptions of the events that led to | 1857 | prompts by echoing: it displays descriptions of the events that led to |
| 1858 | or were read by the current command. @xref{The Echo Area}. | 1858 | or were read by the current command. @xref{The Echo Area}. |
| 1859 | 1859 | ||
| 1860 | If @var{suppress-input-method} is non-@code{nil}, then the current input | ||
| 1861 | method is disabled for reading this event. If you want to read an event | ||
| 1862 | without input-method processing, always do it this way; don't try binding | ||
| 1863 | @code{input-method-function} (see below). | ||
| 1864 | |||
| 1860 | If @code{cursor-in-echo-area} is non-@code{nil}, then @code{read-event} | 1865 | If @code{cursor-in-echo-area} is non-@code{nil}, then @code{read-event} |
| 1861 | moves the cursor temporarily to the echo area, to the end of any message | 1866 | moves the cursor temporarily to the echo area, to the end of any message |
| 1862 | displayed there. Otherwise @code{read-event} does not move the cursor. | 1867 | displayed there. Otherwise @code{read-event} does not move the cursor. |
| @@ -1917,6 +1922,12 @@ passing the event as an argument. | |||
| 1917 | @defvar input-method-function | 1922 | @defvar input-method-function |
| 1918 | If this is non-@code{nil}, its value specifies the current input method | 1923 | If this is non-@code{nil}, its value specifies the current input method |
| 1919 | function. | 1924 | function. |
| 1925 | |||
| 1926 | @strong{Note:} Don't bind this variable with @code{let}. It is often | ||
| 1927 | buffer-local, and if you bind it around reading input (which is exactly | ||
| 1928 | when you @emph{would} bind it), switching buffers asynchronously while | ||
| 1929 | Emacs is waiting will cause the value to be restored in the wrong | ||
| 1930 | buffer. | ||
| 1920 | @end defvar | 1931 | @end defvar |
| 1921 | 1932 | ||
| 1922 | The input method function should return a list of events which should | 1933 | The input method function should return a list of events which should |
diff --git a/lispref/nonascii.texi b/lispref/nonascii.texi index 9bd51e2b5c8..fb089fae206 100644 --- a/lispref/nonascii.texi +++ b/lispref/nonascii.texi | |||
| @@ -606,6 +606,9 @@ value shortly after the function call which stores the value you are | |||
| 606 | interested in. | 606 | interested in. |
| 607 | @end defvar | 607 | @end defvar |
| 608 | 608 | ||
| 609 | The variable @code{selection-coding-system} specifies how to encode | ||
| 610 | selections for the window system. @xref{Window System Selections}. | ||
| 611 | |||
| 609 | @node Lisp and Coding Systems | 612 | @node Lisp and Coding Systems |
| 610 | @subsection Coding Systems in Lisp | 613 | @subsection Coding Systems in Lisp |
| 611 | 614 | ||
| @@ -985,8 +988,10 @@ decoded text. To make explicit decoding useful, the contents of | |||
| 985 | @subsection Terminal I/O Encoding | 988 | @subsection Terminal I/O Encoding |
| 986 | 989 | ||
| 987 | Emacs can decode keyboard input using a coding system, and encode | 990 | Emacs can decode keyboard input using a coding system, and encode |
| 988 | terminal output. This kind of decoding and encoding does not set | 991 | terminal output. This is useful for terminals that transmit or display |
| 989 | @code{last-coding-system-used}. | 992 | text using a particular encoding such as Latin-1. Emacs does not set |
| 993 | @code{last-coding-system-used} for encoding or decoding for the | ||
| 994 | terminal. | ||
| 990 | 995 | ||
| 991 | @defun keyboard-coding-system | 996 | @defun keyboard-coding-system |
| 992 | @tindex keyboard-coding-system | 997 | @tindex keyboard-coding-system |
| @@ -1144,4 +1149,5 @@ told, the arguments to @var{activate-func} are @var{input-method} and | |||
| 1144 | the @var{args}. | 1149 | the @var{args}. |
| 1145 | @end defvar | 1150 | @end defvar |
| 1146 | 1151 | ||
| 1147 | 1152 | The fundamental interface to input methods is through the | |
| 1153 | variable @code{input-method-function}. @xref{Reading One Event}. | ||