📄 onews.2
字号:
user variables only, and completion is limited to the space ofuser variables.The function `read-variable' also now accepts and completesover user variables only.* CBREAK mode input is the default in Unix 4.3 bsd.In Berkeley 4.3 Unix, there are sufficient features for Emacs towork fully correctly using CBREAK mode and not using SIGIO.Therefore, this mode is the default when running under 4.3.This mode corresponds to `nil' as the first argument to`set-input-mode'. You can still select either mode by callingthat function.* Information on memory usage.The new variable `data-bytes-used' contains the numberof bytes of impure space allocated in Emacs.`data-bytes-free' contains the number of additional bytesEmacs could allocate. Note that space formerly allocatedand freed again still counts as `used', since it is stillin Emacs's address space.* No limit on size of output from `format'.The string output from `format' used to be truncated to100 characters in length. Now it can have any length.* New errors `void-variable' and `void-function' replace `void-symbol'.This change makes it possible to have error messages thatclearly distinguish undefined variables from undefined functions.It also allows `condition-case' to handle one case without the other.* `replace-match' handling of `\'.In `replace-match', when the replacement is not literal,`\' in the replacement string is always treated as anescape marker. The only two special `\' constructsare `\&' and `\DIGIT', so `\' followed by anything other than`&' or a digit has no effect. `\\' is necessary to includea `\' in the replacement text.This level of escaping is comparable with what goes on ina regular expression. It is over and above the level of `\'escaping that goes on when strings are read in Lisp syntax.* New error `invalid-regexp'.A regexp search signals this type of error if the argument doesnot meet the rules for regexp syntax.* `kill-emacs' with argument.If the argument is a number, it is returned as the exit status codeof the Emacs process. If the argument is a string, its contentsare stuffed as pending terminal input, to be read by another programafter Emacs is dead.* New fifth argument to `subst-char-in-region'.This argument is optional and defaults to `nil'. If it is not `nil',then the substitutions made by this function are not recordedin the Undo mechanism.This feature should be used with great care. It is now usedby Outline mode to make lines visible or invisible.* ` *Backtrace*' buffer renamed to `*Backtrace*'.As a result, you can now reselect this buffer easily if you switch toanother while in the debugger.Exiting from the debugger kills the `*Backtrace*' buffer, so you willnot try to give commands in it when no longer really in the debugger.* New function `switch-to-buffer-other-window'.This is the new primitive to select a specified buffer (theargument) in another window. It is not quite the same as`pop-to-buffer', because it is guaranteed to create anotherwindow (assuming there is room on the screen) so that it canleave the current window's old buffer displayed as well.All functions to select a buffer in another window shoulddo so by calling this new function.* New variable `minibuffer-help-form'.At entry to the minibuffer, the variable `help-form' is boundto the value of `minibuffer-help-form'.`help-form' is expected at all times to contain either `nil'or an expression to be executed when C-h is typed (overridingteh definition of C-h as a command). `minibuffer-help-form'can be used to provide a different default way of handlingC-h while in the minibuffer.* New \{...} documentation construct.It is now possible to set up the documentation string fora major mode in such a way that it always describes the contentsof the major mode's keymap, as it has been customized.To do this, include in the documentation string the characters `\{'followed by the name of the variable containing the keymap,terminated with `}'. (The `\' at the beginning probably needs tobe quoted with a second `\', to include it in the doc string.)This construct is normally used on a line by itself, with no blanklines before or after.For example, the documentation string for the function `c-mode' contains ... Paragraphs are separated by blank lines only. Delete converts tabs to spaces as it moves back. \\{c-mode-map} Variables controlling indentation style: ...* New character syntax class "punctuation".Punctuation characters behave like whitespace in word andlist parsing, but can be distinguished in regexps and in thefunction `char-syntax'. Punctuation syntax is represented bya period in `modify-syntax-entry'.* `auto-mode-alist' no longer needs entries for backup-file names,Backup suffixes of all kinds are now stripped from a file's namebefore searching `auto-mode-alist'.Changes in Emacs 16* No special code for Ambassadors, VT-100's and Concept-100's.Emacs now controls these terminals based on the termcap entry, likeall other terminals. Formerly it did not refer to the termcap entriesfor those terminal types, and often the termcap entries for thoseterminals are wrong or inadequate. If you experience worse behavioron these terminals than in version 15, you can probably correct it byfixing up the termcap entry. See ./TERMS for more info.See ./TERMS in any case if you find that some terminal does not workright with Emacs now.* Minibuffer default completion character is TAB (and not ESC).So that ESC can be used in minibuffer for more useful prefix commands.* C-z suspends Emacs in all modes.Formerly, C-z was redefined for other purposes by certain modes,such as Buffer Menu mode. Now other keys are used for those purposes,to keep the meaning of C-z uniform.* C-x ESC (repeat-complex-command) allows editing the command it repeats.Instead of asking for confirmation to re-execute a command from thecommand history, the command is placed, in its Lisp form, into theminibuffer for editing. You can confirm by typing RETURN, change somearguments and then confirm, or abort with C-g.* Incremental search does less redisplay on slow terminals.If the terminal baud rate is <= the value of `isearch-slow-speed',incremental searching outside the text on the screen createsa single-line window and uses that to display the line on whicha match has been found. Exiting or quitting the search restoresthe previous window configuration and redisplays the window youwere searching in.The initial value of `isearch-slow-speed' is 1200.This feature is courtesy of crl@purdue.* Recursive minibuffers not allowed.If the minibuffer window is selected, most commands that woulduse the minibuffer gets an error instead. (Specific commandsmay override this feature and therefore still be allowed.)Strictly speaking, recursive entry to the minibuffer is stillpossible, because you can switch to another window afterentering the minibuffer, and then minibuffer-using commandsare allowed. This is still allowed by a deliberate decision:if you know enough to switch windows while in the minibuffer,you can probably understand recursive minibuffers.This may be overridden by binding the variable`enable-recursive-minibuffers' to t.* New major mode Emacs-Lisp mode, for editing Lisp code to run in Emacs.The mode in which emacs lisp files is edited is now called emacs-lisp-modeand is distinct from lisp-mode. The latter is intended for use withlisps external to emacs.The hook which is funcalled (if non-nil) on entry to elisp-mode is nowcalled emacs-lisp-mode-hook. A consequence of this changes is that.emacs init files which set the value of lisp-mode-hook may need to bechanged to use the new names.* Correct matching of parentheses is checked on insertion.When you insert a close-paren, the matching open-parenis checked for validity. The close paren must be the kindof close-paren that the open-paren says it should match.Otherwise, a warning message is printed. close-paren immediatelypreceded by quoting backslash syntax character is not matched. This feature was originally written by shane@mit-ajax.* M-x list-command-history* M-x command-history-mode* M-x electric-command-history`list-command-history' displays forms from the command history subjectto user controlled filtering and limit on number of forms. It leavesthe buffer in `command-history-mode'. M-x command-history-moderecomputes the command history each time it is invoked via`list-command-history'. It is like Emacs-Lisp mode except that charactersdon't insert themselves and provision is made for re-evaluating anexpression from the list. `electric-command-history' pops up a typeout window with the command history displayed. If the very nextcharacter is Space, the window goes away and the previous windowconfiguration is restored. Otherwise you can move around in thehistory and select an expression for evaluation *inside* the bufferwhich invoked `electric-command-history'. The original windowconfiguration is restored on exit unless the command selected changesit.* M-x edit-pictureEnters a temporary major mode (the previous major mode is rememberedand can is restored on exit) designed for editing pictures and tables.Printing characters replace rather than insert themselves with motionafterwards that is user controlled (you can specify any of the 8compass directions). Special commands for movement are provided.Special commands for hacking tabs and tab stops are provided. Specialcommands for killing rectangles and overlaying them are provided. Seethe documentation of function edit-picture for more details.Calls value of `edit-picture-hook' on entry if non-nil.* Stupid C-s/C-q `flow control' supported.Do (set-input-mode nil t) to tell Emacs to use CBREAK mode and interpretC-s and C-q as flow control commands. (set-input-mode t nil) switchesback to interrupt-driven input. (set-input-mode nil nil) uses CBREAKmode but no `flow control'; this may make it easier to run Emacs undercertain debuggers that have trouble dealing with inferiors that use SIGIO.CBREAK mode has certain inherent disadvantages, which are why it isnot the default: Meta-keys are ignored; CBREAK mode discards the 8th bit of input characters. Control-G as keyboard input discards buffered output, and therefore can cause incorrect screen updating.The use of `flow control' has its own additional disadvantage: thecharacters C-s and C-q are not available as editing commands. You canpartially compensate for this by setting up a keyboard-translate-table(see file ONEWS) that maps two other characters (such as C-^ and C-\) intoC-s and C-q. Of course, C-^ and C-\ are commonly used as escapecharacters in remote-terminal programs. You really can't win exceptby getting rid of this sort of `flow control.'The configuration switch CBREAK_INPUT is now eliminated.INTERRUPT_INPUT exists only to specify the default mode of operation;#define it to make interrupt-driven input the default.* Completion of directory names provides a slash.If file name completion yields the name of a directory,a slash is appended to it.* Undo can clear modified-flag.If you undo changes in a buffer back to a state in which thebuffer was not considered "modified", then it is labelled asonce again "unmodified".* M-x run-lisp.This command creates an inferior Lisp process whose input and outputappear in the Emacs buffer named `*lisp*'. That buffer uses a major modecalled inferior-lisp-mode, which has many of the commands of lisp-modeand those of shell-mode. Calls the value of shell-mode-hook andlisp-mode-hook, in that order, if non-nil.Meanwhile, in lisp-mode, the command C-M-x is defined tosend the current defun as input to the `*lisp*' subprocess.* Mode line says `Narrow' when buffer is clipped.If a buffer has a clipping restriction (made by `narrow-to-region')then its mode line contains the word `Narrow' after the major andminor modes.* Mode line says `Abbrev' when abbrev mode is on.* add-change-log-entry takes prefix argumentGiving a prefix argument makes it prompt for login name, full name,and site name, with defaults. Otherwise the defaults are usedwith no confirmation.* M-x view-buffer and M-x view-fileview-buffer selects the named buffer, view-file finds the named file; theresulting buffer is placed into view-mode (a recursive edit). The normalemacs commands are not available. Instead a set of special commands isprovided which faclitate moving around in the buffer, searching andscrolling by screenfuls. Exiting view-mode returns to the buffer in whichthe view-file or view-buffer command was given.Type ? or h when viewing for a complete list of view commands.Each calls value of `view-hook' if non-nil on entry.written by shane@mit-ajax.* New key commands in dired.`v' views (like more) the file on the current line.`#' marks auto-save files for deletion.`~' marks backup files for deletion.`r' renames a file and updates the directory listing if thefile is renamed to same directory.`c' copies a file and updates the directory listing if the file iscopied to the same directory.* New function `electric-buffer-list'.This pops up a buffer describing the set of emacs buffers.Immediately typing space makes the buffer list go away and returnsto the buffer and window which were previously selected.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -