📄 onews.3
字号:
Gosling Emacs. The previous bindings are saved and can be restored using`set-gnu-bindings'.* Emulation of a display terminal.Within Emacs it is now possible to run programs (such as emacs orsupdup) which expect to do output to a visual display terminal.See the function `terminal-emulator' for more information.* New support for keypads and function keys.There is now a first attempt at terminal-independent support forkeypad and function keys.Emacs now defines a standard set of key-names for function and keypadkeys, and provides standard hooks for defining them. Most of thestandard key-names have default definitions built into Emacs; you canoverride these in a terminal-independent manner. The default definitionsand the conventions for redefining them are in the file `lisp/keypad.el'.These keys on the terminal normally work by sending sequences ofcharacters starting with ESC. The exact sequences used vary fromterminal to terminal. Emacs interprets them in two stages:in the first stage, terminal-dependent sequences are mapped intothe standard key-names; then second stage maps the standard key-namesinto their definitions in a terminal-independent fashion.The terminal-specific file `term/$TERM.el' now is responsible only forestablishing the mapping from the terminal's escape sequences intostandard key-names. It no longer knows what Emacs commands areassigned to the standard key-names.One other change in terminal-specific files: if the value of the TERMvariable contains a hyphen, only the part before the first hyphen isused in forming the name of the terminal-specific file. Thus, forterminal type `aaa-48', the file loaded is now `term/aaa.el' ratherthan `term/aaa-48.el'.* New startup command line options.`-i FILE' or `-insert FILE' in the command line to Emacs tells Emacs toinsert the contents of FILE into the current buffer at that point incommand line processing. This is like using the command M-x insert-file.`-funcall', `-load', `-user' and `-no-init-file' are new synonyms for`-f', `-l', `-u' and `-q'.`-nw' means don't use a window system. If you are using a terminalemulator on the X window system and you want to run Emacs to work throughthe terminal emulator instead of working directly with the window system,use this switch.* Buffer-sorting commands.Various M-x commands whose names start with `sort-' sort parts ofthe region:sort-lines divides the region into lines and sorts them alphabetically.sort-pages divides into pages and sorts them alphabetically.sort-paragraphs divides into paragraphs and sorts them alphabetically.sort-fields divides into lines and sorts them alphabetically according to one field in the line. The numeric argument specifies which field (counting from field 1 at the beginning of the line). Fields in a line are separated by whitespace.sort-numeric-fields is similar but converts the specified fields to numbers and sorts them numerically.sort-columns divides into lines and sorts them according to the contents of a specified range of columns.Refer to the self-documentation of these commands for full usage information.* Changes in various commands.** `tags-query-replace' and `tags-search' change.These functions now display the name of the file being searched at the moment.** `occur' output now serves as a menu. `occur-menu' command deleted.`M-x occur' now allows you to move quickly to any of the occurrenceslisted. Select the `*Occur*' buffer that contains the output of `occur',move point to the occurrence you want, and type C-c C-c.This will move point to the same occurrence in the buffer that theoccurrences were found in.The command `occur-menu' is thus obsolete, and has been deleted.One way to get a list of matching lines without line numbers is tocopy the text to another buffer and use the command `keep-lines'.** Incremental search changes.Ordinary and regexp incremental searches now have distinct defaultsearch strings. Thus, regexp searches recall only previous regexpsearches.If you exit an incremental search when the search string is empty,the old default search string is kept. The default does not becomeempty.Reversing the direction of an incremental search with C-s or C-rwhen the search string is empty now does not get the default searchstring. It leaves the search string empty. A second C-s or C-rwill get the default search string. As a result, you can do a reverseincremental regexp search with C-M-s C-r.If you add a `*', `?' or `\|' to an incremental search regexp,point will back up if that is appropriate. For example, ifyou have searched for `ab' and add a `*', point moves to thefirst match for `ab*', which may be before the match for `ab'that was previously found.If an incremental search is failing and you ask to repeat it,it will start again from the beginning of the buffer (or the end,if it is a backward search).The search-controlling parameters `isearch-slow-speed' and`isearch-slow-window-lines' have now been renamed to start with`search' instead of `isearch'. Now all the parameters' names startwith `search'.If `search-slow-window-lines' is negative, the slow search windowis put at the top of the screen, and the absolute value or thenegative number specifies the height of it.** Undo changesThe undo command now will mark the buffer as unmodified only when it isidentical to the contents of the visited file.** C-M-v in minibuffer.If while in the minibuffer you request help in a way that uses awindow to display something, then until you exit the minibuffer C-M-vin the minibuffer window scrolls the window of help.For example, if you request a list of possible completions, C-M-v canbe used reliably to scroll the completion list.** M-TAB command.Meta-TAB performs completion on the Emacs Lisp symbol names. The sexpin the buffer before point is compared against all existing nontrivialLisp symbols and completed as far as is uniquely determined by them.Nontrivial symbols are those with either function definitions, valuesor properties.If there are multiple possibilities for the very next character, alist of possible completions is displayed.** Dynamic abbreviation package.The new command Meta-/ expands an abbreviation in the buffer before pointby searching the buffer for words that start with the abbreviation.** Changes in saving kbd macros.The commands `write-kbd-macro' and `append-kbd-macro' have beendeleted. The way to save a keyboard macro is to use the new command`insert-kbd-macro', which inserts Lisp code to define the macro asit is currently defined into the buffer before point. Visit a Lispfile such as your Emacs init file `~/.emacs', insert the macrodefinition (perhaps deleting an old definition for the same macro)and then save the file.** C-x ' command.The new command C-x ' (expand-abbrev) expands the word before point asan abbrev, even if abbrev-mode is not turned on.** Sending to inferior Lisp.The command C-M-x in Lisp mode, which sends the current defun toan inferior Lisp process, now works by writing the text into a temporaryfile and actually sending only a `load'-form to load the file.As a result, it avoids the Unix bugs that used to strike when thetext was above a certain length.With a prefix argument, this command now makes the inferior Lisp bufferappear on the screen and scrolls it so that the bottom is showing.Two variables `inferior-lisp-load-command' and `inferior-lisp-prompt',exist to customize these feature for different Lisp implementations.** C-x p now disabled.The command C-x p, a nonrecomended command which narrows to the currentpage, is now initially disabled like C-x n.* Dealing with files.** C-x C-v generalizedThis command is now allowed even if the current buffer is not visitinga file. As usual, it kills the current buffer and replaces it with anewly found file.** M-x recover-file improved; auto save file names changed.M-x recover-file now checks whether the last auto-save file is morerecent than the real visited file before offering to read in theauto-save file. If the auto-save file is newer, a directory listingcontaining the two files is displayed while you are asked whether youwant the auto save file.Visiting a file also makes this check. If the auto-save file is more recent,a message is printed suggesting that you consider using M-x recover file.Auto save file names now by default have a `#' at the end as wellas at the beginning. This is so that `*.c' in a shell commandwill never match auto save files.On VMS, auto save file names are made by appending `_$' at the frontand `$' at the end.When you change the visited file name of a buffer, the auto save fileis now renamed to belong to the new visited file name.You can customize the way auto save file names are made by redefiningthe two functions `make-auto-save-file-name' and `auto-save-file-name-p',both of which are defined in `files.el'.** Modifying a buffer whose file is changed on disk is detected instantly.On systems where clash detection (locking of files being edited) isimplemented, Emacs also checks the first time you modify a bufferwhether the file has changed on disk since it was last visited or saved.If it has, you are asked to confirm that you want to change the buffer.** Exiting Emacs offers to save `*mail*'.Emacs can now know about buffers that it should offer to save on exiteven though they are not visiting files. This is done for any bufferwhich has a non-nil local value of `buffer-offer-save'. By default,Mail mode provides such a local value.** Backup file changes.If a backup file cannot be written in the directory of the visited filedue to fascist file protection, a backup file is now written in your homedirectory as `~/%backup%~'. Only one such file is made, ever, so onlythe most recently made such backup is available.When backup files are made by copying, the last-modification time of theoriginal file is now preserved in the backup copy.** Visiting remote files.On an internet host, you can now visit and save files on any otherinternet host directly from Emacs with the commands M-x ftp-find-fileand M-x ftp-write-file. Specify an argument of the form HOST:FILENAME.Since standard internet FTP is used, the other host may be any kindof machine and is not required to have any special facilities.The first time any one remote host is accessed, you will be asked togive the user name and password for use on that host. FTP is reinvokedeach time you ask to use it, but previously specified user names andpasswords are remembered automatically.** Dired `g' command.`g' in Dired mode is equivalent to M-x revert-buffer; it causes thecurrent contents of the same directory to be read in.* Changes in major modes.** C mode indentation change.The binding of Linefeed is no longer changed by C mode. It once againhas its normal meaning, which is to insert a newline and then indentafterward.The old definition did one additional thing: it reindented the linebefore the new newline. This has been removed because it made thecommand twice as slow. The only time it was really useful was after theinsertion of an `else', since the fact of starting with `else' may changethe way that line is indented. Now you will have to type TAB againyourself to reindent the `else' properly.If the variable `c-tab-always-indent' is set to `nil', the TAB commandin C mode, with no argument, will just insert a tab character if thereis non-whitespace preceding point on the current line. Giving it aprefix argument will force reindentation of the line (as well asof the compound statement that begins after point, if any).** Fortran mode now exists.This mode provides commands for motion and indentation of Fortran code,plus built-in abbrevs for Fortran keywords. For details, see the manualor the on-line documentation of the command `fortran-mode'.** Scribe mode now exists.This mode does something useful for editing files of Scribe input.It is used automatically for files with names ending in ".mss".** Modula2 and Prolog modes now exist.These modes are for editing programs in the languages of the same names.They can be selected with M-x modula-2-mode and M-x prolog-mode.** Telnet mode changes.The telnet mode special commands have now been assigned to C-c keys.Most of them are the same as in Shell mode.** Picture mode changes.The special picture-mode commands to specify the direction of cursormotion after insertion have been moved to C-c keys. The commands tospecify diagonal motion were already C-c keys; they are unchanged.The keys to specify horizontal or vertical motion are nowC-c < (left), C-c > (right), C-c ^ (up) and C-c . (down).** Nroff mode comments.Comments are now supported in Nroff mode. The standard comment commandssuch as M-; and C-x ; know how to insert, align and delete commentsthat start with backslash-doublequote.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -